import { ParseConfig, UnknownTypeError, ValidationErrorMessage } from "./common.js"; import { ArrowFunction } from "./arrowFunction.js"; import { BuiltIn } from "./builtIn.js"; import { List } from "./list.js"; import { NumericStringLiteral } from "./numericStringLiteral.js"; import { Or } from "./or.js"; import { Resolution } from "./resolution.js"; import { StringLiteral } from "./stringLiteral.js"; export declare namespace Fragment { type Definition = Def; type Validate = Def extends Or.Definition ? Or.Validate<`${First}|${Second}`, Root, TypeSet> : Def extends ArrowFunction.Definition ? ArrowFunction.Validate : Def extends List.Definition ? Validate : Def extends BuiltIn.Definition | StringLiteral.Definition | NumericStringLiteral.Definition ? Root : Def extends Resolution.Definition ? Resolution.Validate : UnknownTypeError; type Parse = Validate extends ValidationErrorMessage ? unknown : Def extends Resolution.Definition ? Resolution.Parse : Def extends Or.Definition ? Or.Parse : Def extends ArrowFunction.Definition ? ArrowFunction.Parse : Def extends List.Definition ? Parse[] : Def extends StringLiteral.Definition ? Literal : Def extends NumericStringLiteral.Definition ? Value : Def extends BuiltIn.Definition ? BuiltIn.Parse : unknown; const type: string; const parse: { meta: { type: string; inherits: () => import("./common.js").GetHandledMethods<{ type: string; inherits: () => import("./common.js").GetHandledMethods<{ type: string | number; inherits: () => import("./common.js").GetHandledMethods<{ type: string | number | { [x: string]: any; }; inherits: () => import("./common.js").GetHandledMethods<{ type: string | number | { [x: string]: any; }; inherits: () => void; handles: {}; }>; handles: {}; matches: import("./common.js").DefinitionMatcher; }>; handles: {}; matches: import("./common.js").DefinitionMatcher; }>; handles: {}; matches: import("./common.js").DefinitionMatcher; }>; handles: {}; matches: import("./common.js").DefinitionMatcher; }; } & import("./common.js").ParseFunction; const delegate: string; }