import type { brand } from "./generics.ts"; import type { CastableBase } from "./records.ts"; export declare class InternalArktypeError extends Error { } export declare const throwInternalError: (message: string) => never; export declare const throwError: (message: string, ctor?: new (message: string) => Error) => never; export declare class ParseError extends Error { readonly name = "ParseError"; } export declare const throwParseError: (message: string) => never; /** * TypeScript won't suggest strings beginning with a space as properties. * Useful for symbol-like string properties. */ export declare const noSuggest: (s: s) => noSuggest; /** * TypeScript won't suggest strings beginning with a space as properties. * Useful for symbol-like string properties. */ export type noSuggest = ` ${s}`; /** Unrendered character (U+200B) used to mark a string type */ export declare const ZeroWidthSpace = "\u200B"; /** Unrendered character (U+200B) used to mark a string type */ export type ZeroWidthSpace = typeof ZeroWidthSpace; export type ErrorMessage = `${message}${ZeroWidthSpace}`; export interface ErrorType extends CastableBase { [brand]: "ErrorType"; } export type Completion = `${text}${ZeroWidthSpace}${ZeroWidthSpace}`;