export interface TSchema {} export declare function IsKind(value: unknown, kind: Kind): value is { ['~kind']: Kind; }; export declare function IsSchema(value: unknown): value is TSchema; export interface TSchemaOptions { /** * Allows for additional, unlisted properties to be included, typically for extensibility. */ [key: PropertyKey]: unknown; /** * Specifies the URI of a JSON Schema that the current schema adheres to. */ $schema?: string; /** * A URI that serves as a unique identifier for the schema. */ $id?: string; /** * A short explanation about the purpose of the data described by the schema. */ title?: string; /** * A detailed explanation of the data described by the schema. */ description?: string; /** * A default value for the data, used when no value is provided. */ default?: unknown; /** * Provides one or more examples of valid data conforming to the schema. */ examples?: unknown; /** * Indicates that the data should only be readable and not modified. */ readOnly?: boolean; /** * Indicates that the data should only be writable and not read back. */ writeOnly?: boolean; /** * A schema to apply conditionally: if the data validates against this schema, 'then' applies. */ if?: TSchema; /** * A schema to apply if the data validates against the 'if' schema. */ then?: TSchema; /** * A schema to apply if the data does not validate against the 'if' schema. */ else?: TSchema; } export interface TObjectOptions extends TSchemaOptions { /** * Defines whether additional properties are allowed beyond those explicitly defined in `properties`. */ additionalProperties?: TSchema | boolean; /** * The minimum number of properties required in the object. */ minProperties?: number; /** * The maximum number of properties allowed in the object. */ maxProperties?: number; /** * Defines conditional requirements for properties. */ dependencies?: Record; /** * Specifies properties that *must* be present if a given property is present. */ dependentRequired?: Record; /** * Defines schemas that apply if a specific property is present. */ dependentSchemas?: Record; /** * Maps regular expressions to schemas properties matching a pattern must validate against the schema. */ patternProperties?: Record; /** * A schema that all property names within the object must validate against. */ propertyNames?: TSchema; } export interface TArrayOptions extends TSchemaOptions { /** * The minimum number of items allowed in the array. */ minItems?: number; /** * The maximum number of items allowed in the array. */ maxItems?: number; /** * A schema that at least one item in the array must validate against. */ contains?: TSchema; /** * The minimum number of array items that must validate against the `contains` schema. */ minContains?: number; /** * The maximum number of array items that may validate against the `contains` schema. */ maxContains?: number; /** * An array of schemas, where each schema in `prefixItems` validates against items at corresponding positions from the beginning of the array. */ prefixItems?: TSchema[]; /** * If `true`, all items in the array must be unique. */ uniqueItems?: boolean; } export interface TTupleOptions extends TArrayOptions { /** * A schema to apply to any items in the array that were not validated by `prefixItems` or `items`. If `false`, no additional items are allowed. */ unevaluatedItems?: TSchema | boolean; } export interface TIntersectOptions extends TSchemaOptions { /** * A schema to apply to any properties in the object that were not validated by other keywords like `properties`, `patternProperties`, or `additionalProperties`. If `false`, no additional properties are allowed. */ unevaluatedProperties?: TSchema | boolean; } export interface TNumberOptions extends TSchemaOptions { /** * Specifies an exclusive upper limit for the number (number must be less than this value). */ exclusiveMaximum?: number | bigint; /** * Specifies an exclusive lower limit for the number (number must be greater than this value). */ exclusiveMinimum?: number | bigint; /** * Specifies an inclusive upper limit for the number (number must be less than or equal to this value). */ maximum?: number | bigint; /** * Specifies an inclusive lower limit for the number (number must be greater than or equal to this value). */ minimum?: number | bigint; /** * Specifies that the number must be a multiple of this value. */ multipleOf?: number | bigint; } export type TFormat = 'date-time' | 'date' | 'duration' | 'email' | 'hostname' | 'idn-email' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'iri-reference' | 'iri' | 'json-pointer-uri-fragment' | 'json-pointer' | 'json-string' | 'regex' | 'relative-json-pointer' | 'time' | 'uri-reference' | 'uri-template' | 'uri' | 'url' | 'uuid' | ({} & string); export interface TStringOptions extends TSchemaOptions { /** * Specifies the expected string format. May also be a custom format string. */ format?: TFormat; /** * Specifies the minimum number of characters allowed in the string. * Must be a non-negative integer. */ minLength?: number; /** * Specifies the maximum number of characters allowed in the string. * Must be a non-negative integer. */ maxLength?: number; /** * Specifies a regular expression pattern that the string value must match. * Can be provided as a string (ECMA-262 regex syntax) or a `RegExp` object. */ pattern?: string | RegExp; } /** Represents a deferred action. */ export interface TDeferred extends TSchema { '~kind': 'Deferred'; type: 'deferred'; action: Action; parameters: Types; options: TSchemaOptions; } /** Creates a Deferred action. */ export declare function Deferred(action: Action, parameters: [...Types], options: TSchemaOptions): TDeferred; /** Returns true if the given value is a TDeferred. */ export declare function IsDeferred(value: unknown): value is TDeferred; export type StaticCodec = (Direction extends 'Decode' ? Decoded : StaticType>); export type TDecodeCallback = (input: Encoded) => Decoded; export type TEncodeCallback = (input: Decoded) => Encoded; export type TCodec = Type & { '~codec': { encode: TDecodeCallback; decode: TEncodeCallback; }; }; export declare class EncodeBuilder { private readonly type; private readonly decode; constructor(type: Type, decode: globalThis.Function); Encode(callback: TEncodeCallback): TCodec; } export declare class DecodeBuilder { private readonly type; constructor(type: Type); Decode>(callback: Callback): EncodeBuilder>; } /** Creates a bi-directional Codec. Codec functions are called on Value.Decode and Value.Encode. */ export declare function Codec(type: Type): DecodeBuilder>; /** Createsa uni-directional Codec with Decode only. The Decode function is called on Value.Decode */ export declare function Decode, unknown>>(type: Type, callback: Callback): TCodec>; /** Creates a uni-directional Codec with Encode only. The Encode function is called on Value.Encode */ export declare function Encode(type: Type, callback: TEncodeCallback, unknown>): TCodec; export declare function IsCodec(value: unknown): value is TCodec; export type StaticAny = any; /** Represents a Any type. */ export interface TAny extends TSchema { '~kind': 'Any'; } /** Creates a Any type. */ export declare function Any(options?: TSchemaOptions): TAny; /** Returns true if the given value is a TAny. */ export declare function IsAny(value: unknown): value is TAny; export type TImmutable = (Type & { '~immutable': true; }); /** Applies an Immutable modifier to the given type. */ export declare function Immutable(type: Type): TAddImmutable; /** Returns true if the given value is a TImmutable */ export declare function IsImmutable(value: unknown): value is TImmutable; export type StaticArray[] : StaticType[]> = Result; /** Represents an Array type. */ export interface TArray extends TSchema { '~kind': 'Array'; type: 'array'; items: Type; } /** Creates an Array type. */ export declare function _Array_(items: Type, options?: TArrayOptions): TArray; /** Returns true if the given value is a TArray. */ export declare function IsArray(value: unknown): value is TArray; /** Extracts options from a TArray. */ export declare function ArrayOptions(type: TArray): TArrayOptions; export declare const BigIntPattern = "-?(?:0|[1-9][0-9]*)n"; export type StaticBigInt = bigint; /** Represents a BigInt type. */ interface TBigInt$1 extends TSchema { '~kind': 'BigInt'; type: 'bigint'; } /** Creates a BigInt type. */ declare function BigInt$1(options?: TNumberOptions): TBigInt$1; /** Returns true if the given value is a TBigInt. */ export declare function IsBigInt(value: unknown): value is TBigInt$1; export type StaticBoolean = boolean; /** Represents a Boolean type. */ export interface TBoolean extends TSchema { '~kind': 'Boolean'; type: 'boolean'; } /** Creates a Boolean type. */ export declare function Boolean(options?: TSchemaOptions): TBoolean; /** Returns true if the given value is a TBoolean. */ export declare function IsBoolean(value: unknown): value is TBoolean; /** Creates a deferred AddReadonly action. */ export type TAddReadonlyDeferred = (TDeferred<'AddReadonly', [Type]>); /** Creates a deferred AddReadonly action. */ export declare function AddReadonlyDeferred(type: Type, options?: TSchemaOptions): TAddReadonlyDeferred; /** Applies an AddReadonly action to a type. */ export type TAddReadonly = (TAddReadonlyAction); /** Applies an AddReadonly action to a type. */ export declare function AddReadonly(type: Type, options?: TSchemaOptions): TAddReadonly; type TReadonly$1 = (Type & { '~readonly': true; }); /** Applies an Readonly property modifier to the given type. */ declare function Readonly$2(type: Type): TAddReadonly; /** Returns true if the given value is a TReadonly */ export declare function IsReadonly(value: unknown): value is TReadonly$1; type TAddReadonlyAction> = Result; type TAddReadonlyInstantiate> = TAddReadonlyAction; export type StaticUnknown = unknown; /** Represents an Unknown type. */ export interface TUnknown extends TSchema { '~kind': 'Unknown'; } /** Creates an Unknown type. */ export declare function Unknown(options?: TSchemaOptions): TUnknown; /** Returns true if the given value is TUnknown. */ export declare function IsUnknown(value: unknown): value is TUnknown; /** Represents a Generic parameter. */ interface TParameter$1 extends TSchema { '~kind': 'Parameter'; name: Name; extends: Extends; equals: Equals; } /** Creates a Parameter type. */ declare function Parameter$1(name: Name, extends_: Extends, equals: Equals): TParameter$1; /** Creates a Parameter type. */ declare function Parameter$1(name: Name, extends_: Extends): TParameter$1; /** Creates a Parameter type. */ declare function Parameter$1(name: Name): TParameter$1; /** Returns true if the given value is TParameter. */ export declare function IsParameter(value: unknown): value is TParameter$1; export type StaticObject> = Result; /** Represents an Object type. */ export interface TObject extends TSchema { '~kind': 'Object'; type: 'object'; properties: Properties; required: TRequiredArray; } /** Creates an Object type. */ declare function _Object_$1(properties: Properties, options?: TObjectOptions): TObject; /** Returns true if the given value is TObject. */ export declare function IsObject(value: unknown): value is TObject; /** Extracts options from a TObject. */ export declare function ObjectOptions(type: TObject): TObjectOptions; type CyclicStackLength = (Stack extends [infer Left, ...infer Right] ? Buffer['length'] extends MaxLength ? false : CyclicStackLength : true); type CyclicGuard = (Ref extends Stack[number] ? CyclicStackLength : true); type StaticGuardedRef = (CyclicGuard extends true ? StaticType<[...Stack, Ref], Direction, Context, This, Type> : any); export type StaticRef : StaticGuardedRef> = Result; /** Represents a type reference. */ export interface TRef extends TSchema { '~kind': 'Ref'; $ref: Ref; } /** Creates a Ref type. */ export declare function Ref(ref: Ref, options?: TSchemaOptions): TRef; /** Returns true if the given value is TRef. */ export declare function IsRef(value: unknown): value is TRef; /** Represents a callable Generic type. */ export interface TGeneric extends TSchema { '~kind': 'Generic'; type: 'generic'; parameters: Parameters; expression: Expression; } /** Creates a Generic type. */ export declare function Generic(parameters: [...Parameters], expression: Expression): TGeneric; /** Returns true if the given value is a TGeneric. */ export declare function IsGeneric(value: unknown): value is TGeneric; export declare const NeverPattern = "(?!)"; export type StaticNever = never; /** Represents a Never type. */ export interface TNever extends TSchema { '~kind': 'Never'; not: {}; } /** Creates a Never type. */ export declare function Never(options?: TSchemaOptions): TNever; /** Returns true if the given value is TNever. */ export declare function IsNever(value: unknown): value is TNever; /** Applies a Refine check to the given type. */ export type TRefineAdd = ('~refine' extends keyof Type ? Type : TRefine); /** Applies a Refine check to the given type. */ export declare function RefineAdd(type: Type, refinement: TRefinement): TRefineAdd; /** Represents a type with embedded Refine check. */ export type TRefine = (Type & { '~refine': TRefinement[]; }); export type TRefineCheckCallback = (value: Value) => boolean; export type TRefineErrorCallback = (value: Value) => string; export interface TRefinement { check: TRefineCheckCallback; error: TRefineErrorCallback; } /** Refines a type with an explicit check */ export declare function Refine>(type: Type, check: TRefineCheckCallback, error: TRefineErrorCallback): TRefineAdd; /** Refines a type with an explicit check */ export declare function Refine>(type: Type, check: TRefineCheckCallback): TRefineAdd; /** Returns true if the given value is a TRefinement. */ export declare function IsRefinement(value: unknown): value is TRefinement; /** Returns true if the given value is a TRefine. */ export declare function IsRefine(value: unknown): value is TRefine; export type StaticCyclic : never)> = Result; /** Represents a Cyclic type. */ export interface TCyclic extends TSchema { '~kind': 'Cyclic'; $defs: Defs; $ref: Ref; } /** Creates a Cyclic type. */ export declare function Cyclic($defs: Defs, $ref: Ref, options?: TSchemaOptions): TCyclic; /** Returns true if the given value is a TCyclic. */ export declare function IsCyclic(value: unknown): value is TCyclic; /** Extracts options from a TCyclic. */ export declare function CyclicOptions(type: TCyclic): TSchemaOptions; export type TTupleToIntersect = T extends [infer I] ? I : T extends [infer I, ...infer R] ? I & TTupleToIntersect : never; export type TTupleToUnion = { [K in keyof T]: T[K]; }[number]; export type TUnionToIntersect = (U extends unknown ? (arg: U) => 0 : never) extends ((arg: infer I) => 0) ? I : never; export type TUnionLast = TUnionToIntersect 0 : never> extends ((x: infer L) => 0) ? L : never; export type TUnionToTuple> = [U] extends [never] ? Result : TUnionToTuple, [Extract, ...Result]>; export type TTypeScriptEnumLike = Record; export declare function IsTypeScriptEnumLike(value: unknown): value is TTypeScriptEnumLike; type TReduceEnumValues = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? TReduceEnumValues : Result); export type TTypeScriptEnumToEnumValues>, Elements extends TEnumValue[] = TReduceEnumValues> = Elements; export declare function TypeScriptEnumToEnumValues(type: Type): TTypeScriptEnumToEnumValues; export type StaticEnum = (Values[number]); export type TEnumValue = string | number; /** Returns true if the given value is a EnumValue */ export declare function IsEnumValue(value: unknown): value is TEnumValue; /** Represents an Enum type. */ export interface TEnum extends TSchema { '~kind': 'Enum'; enum: Values; } /** Creates an Enum type. */ export declare function Enum(values: readonly [...Values], options?: TSchemaOptions): TEnum; /** Creates an Enum type from a TypeScript enum declaration. */ export declare function Enum(value: Enum, options?: TSchemaOptions): TEnum>; /** Returns true if the given value is a TEnum. */ export declare function IsEnum(value: unknown): value is TEnum; /** Represents a Identifier. */ export interface TIdentifier extends TSchema { '~kind': 'Identifier'; type: 'identifier'; name: Name; } /** Creates an Identifier. */ export declare function Identifier(name: Name): TIdentifier; /** Returns true if the given value is a TIdentifier. */ export declare function IsIdentifier(value: unknown): value is TIdentifier; export type StaticDependent, StaticThen extends unknown = StaticType, StaticElse extends unknown = StaticType, Result extends unknown = (StaticIf & StaticThen) | Exclude> = Result; /** Represents a Dependent Type */ interface TDependent$1 extends TSchema { '~kind': 'Dependent'; if: If; then: Then; else: Else; } /** Creates a Dependent type */ declare function Dependent$1(if_: If, then_: Then, else_: Else, options?: TSchemaOptions): TDependent$1; /** Returns true if the given value is TDependent. */ export declare function IsDependent(value: unknown): value is TDependent$1; /** Extracts options from a IsDependent. */ export declare function DependentOptions(type: TDependent$1): TSchemaOptions; /** Represents an Infer instruction. */ export interface TInfer extends TSchema { '~kind': 'Infer'; type: 'infer'; name: Name; extends: Extends; } /** Creates an Infer instruction. */ export declare function Infer(name: Name, extends_: Extends): TInfer; /** Creates an Infer instruction. */ export declare function Infer(name: Name): TInfer; /** Returns true if the given value is TInfer. */ export declare function IsInfer(value: unknown): value is TInfer; export declare const IntegerPattern = "-?(?:0|[1-9][0-9]*)"; export type StaticInteger = number; /** Represents an integer type. */ interface TInteger$1 extends TSchema { '~kind': 'Integer'; type: 'integer'; } /** Creates a Integer type. */ declare function Integer$1(options?: TNumberOptions): TInteger$1; /** Returns true if the given value is TInteger. */ export declare function IsInteger(value: unknown): value is TInteger$1; export type StaticIntersect = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? StaticIntersect> : Result); /** Represents a logical Intersect type. */ export interface TIntersect extends TSchema { '~kind': 'Intersect'; allOf: Types; } /** Creates a Intersect type. */ export declare function Intersect(types: [...Types], options?: TIntersectOptions): TIntersect; /** Returns true if the given value is TIntersect. */ export declare function IsIntersect(value: unknown): value is TIntersect; /** Extracts options from a TIntersect. */ export declare function IntersectOptions(type: TIntersect): TIntersectOptions; export declare class InvalidLiteralValue extends Error { readonly cause: { value: unknown; }; constructor(value: unknown); } export type StaticLiteral = (Value); export type TLiteralTypeName = (Value extends bigint ? 'bigint' : Value extends boolean ? 'boolean' : Value extends number ? 'number' : Value extends string ? 'string' : never); export declare function LiteralTypeName(value: Value): TLiteralTypeName; export type TLiteralValue = string | number | boolean | bigint; /** Represents a Literal type. */ export interface TLiteral extends TSchema { '~kind': 'Literal'; type: TLiteralTypeName; const: Value; } /** Creates a Literal type. */ export declare function Literal(value: Value, options?: TSchemaOptions): TLiteral; /** Returns true if the given value is a TLiteralValue. */ export declare function IsLiteralValue(value: unknown): value is TLiteralValue; /** Returns true if the given value is TLiteral. */ export declare function IsLiteralBigInt(value: unknown): value is TLiteral; /** Returns true if the given value is TLiteral. */ export declare function IsLiteralBoolean(value: unknown): value is TLiteral; /** Returns true if the given value is TLiteral. */ export declare function IsLiteralNumber(value: unknown): value is TLiteral; /** Returns true if the given value is TLiteral. */ export declare function IsLiteralString(value: unknown): value is TLiteral; /** Returns true if the given value is TLiteral. */ export declare function IsLiteral(value: unknown): value is TLiteral; export type StaticNull = null; /** Represents a Null type. */ export interface TNull extends TSchema { '~kind': 'Null'; type: 'null'; } /** Creates a Null type. */ export declare function Null(options?: TSchemaOptions): TNull; /** Returns true if the given value is TNull. */ export declare function IsNull(value: unknown): value is TNull; export declare const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?"; export type StaticNumber = number; /** Represents a Number type. */ interface TNumber$1 extends TSchema { '~kind': 'Number'; type: 'number'; } /** Creates a Number type. */ declare function Number$1(options?: TNumberOptions): TNumber$1; /** Returns true if the given value is a TNumber. */ export declare function IsNumber(value: unknown): value is TNumber$1; export type StaticSymbol = symbol; /** Represents a Symbol type. */ export interface TSymbol extends TSchema { '~kind': 'Symbol'; type: 'symbol'; } /** Creates a Symbol type. */ export declare function Symbol(options?: TSchemaOptions): TSymbol; /** Returns true if the given value is TSymbol. */ export declare function IsSymbol(value: unknown): value is TSymbol; export declare const StringPattern = ".*"; export type StaticString = string; /** Represents a String type. */ interface TString$1 extends TSchema { '~kind': 'String'; type: 'string'; } /** Creates a String type. */ declare function String$1(options?: TStringOptions): TString$1; /** Returns true if the given value is TString. */ export declare function IsString(value: unknown): value is TString$1; export declare function TemplateLiteralCreate(pattern: Pattern): never; type TUnreachable = never; type ObjectLike$4 = Record; /** Performs an Object assign using the Left and Right object types. */ type TAssign & Right> = { [Key in keyof Assigned]: Assigned[Key]; } & {}; /** Performs an Object assign using the Left and Right object types. */ declare function Assign(left: Left, right: Right): TAssign; type ObjectLike$3 = Record; /** Returns a shallow clone of the given object. */ declare function Clone(value: Value): Value; type ObjectLike$2 = Record; /** Creates an object with hidden, enumerable, and optional property sets. */ declare function Create(hidden: ObjectLike$2, enumerable: ObjectLike$2, options?: ObjectLike$2): ObjectLike$2; type ObjectLike$1 = Record; /** Discards property keys from the given object. */ declare function Discard(value: ObjectLike$1, propertyKeys: PropertyKey[]): ObjectLike$1; interface TMetrics { /** The number of times Assign() was called */ assign: number; /** The number of times Create() was called */ create: number; /** The number of times Clone() was called */ clone: number; /** The number of times Discard() was called */ discard: number; /** The number of times Update() was called */ update: number; } /** TypeBox instantiation metrics */ declare const Metrics: TMetrics; type ObjectLike = Record; /** Updates an existing type with additional hidden and enumerable properties while preserving property configuration. */ declare function Update(current: ObjectLike, hidden: ObjectLike, enumerable: ObjectLike): ObjectLike; declare namespace memory_d_exports { export { Assign, Clone, Create, Discard, Metrics, TAssign, TMetrics, Update }; } declare namespace mapping_d_exports { export { BaseMapping, DependentMapping, ElementBaseMapping, ElementListMapping, ElementMapping, ElementNamedMapping, ExportKeywordMapping, ExprMapping, ExprPipeMapping, ExprReadonlyMapping, ExprTailMapping, ExprTermMapping, ExprTermTailMapping, ExtendsMapping, FactorMapping, GenericCallArgumentListMapping, GenericCallArgumentsMapping, GenericCallMapping, GenericParameterEqualsMapping, GenericParameterExtendsEqualsMapping, GenericParameterExtendsMapping, GenericParameterIdentifierMapping, GenericParameterListMapping, GenericParameterMapping, GenericParametersMapping, GenericTypeMapping, IndexArrayMapping, InferTypeMapping, InterfaceDeclarationGenericMapping, InterfaceDeclarationHeritageListMapping, InterfaceDeclarationHeritageMapping, InterfaceDeclarationMapping, KeyOfMapping, KeywordAnyMapping, KeywordBigIntMapping, KeywordBooleanMapping, KeywordIntegerMapping, KeywordNeverMapping, KeywordNullMapping, KeywordNumberMapping, KeywordObjectMapping, KeywordStringMapping, KeywordSymbolMapping, KeywordThisMapping, KeywordUndefinedMapping, KeywordUnknownMapping, KeywordVoidMapping, LiteralBigIntMapping, LiteralBooleanMapping, LiteralNumberMapping, LiteralStringMapping, MappedAsMapping, MappedOptionalMapping, MappedReadonlyMapping, ModuleDeclarationDelimiterMapping, ModuleDeclarationListMapping, ModuleDeclarationMapping, ModuleMapping, OptionalMapping, OptionalSemiColonMapping, ParameterBaseMapping, ParameterListMapping, ParameterMapping, ParameterOptionalMapping, ParameterReadonlyMapping, ParameterReadonlyOptionalMapping, ParameterTypeMapping, PatternBaseMapping, PatternBigIntMapping, PatternBodyMapping, PatternGroupMapping, PatternIntegerMapping, PatternMapping, PatternNeverMapping, PatternNumberMapping, PatternStringMapping, PatternTermMapping, PatternTextMapping, PatternUnionMapping, PropertiesMapping, PropertyDelimiterMapping, PropertyKeyIdentMapping, PropertyKeyIndexMapping, PropertyKeyMapping, PropertyKeyNumberMapping, PropertyKeyQuotedMapping, PropertyListMapping, PropertyMapping, ReadonlyMapping, ReferenceMapping, ScriptMapping, TBaseMapping, TDependentMapping, TElementBaseMapping, TElementListMapping, TElementMapping, TElementNamedMapping, TExportKeywordMapping, TExprMapping, TExprPipeMapping, TExprReadonlyMapping, TExprTailMapping, TExprTermMapping, TExprTermTailMapping, TExtendsMapping, TFactorMapping, TGenericCallArgumentListMapping, TGenericCallArgumentsMapping, TGenericCallMapping, TGenericParameterEqualsMapping, TGenericParameterExtendsEqualsMapping, TGenericParameterExtendsMapping, TGenericParameterIdentifierMapping, TGenericParameterListMapping, TGenericParameterMapping, TGenericParametersMapping, TGenericTypeMapping, TIndexArrayMapping, TInferTypeMapping, TInterfaceDeclarationGenericMapping, TInterfaceDeclarationHeritageListMapping, TInterfaceDeclarationHeritageMapping, TInterfaceDeclarationMapping, TKeyOfMapping, TKeywordAnyMapping, TKeywordBigIntMapping, TKeywordBooleanMapping, TKeywordIntegerMapping, TKeywordNeverMapping, TKeywordNullMapping, TKeywordNumberMapping, TKeywordObjectMapping, TKeywordStringMapping, TKeywordSymbolMapping, TKeywordThisMapping, TKeywordUndefinedMapping, TKeywordUnknownMapping, TKeywordVoidMapping, TLiteralBigIntMapping, TLiteralBooleanMapping, TLiteralNumberMapping, TLiteralStringMapping, TMappedAsMapping, TMappedOptionalMapping, TMappedReadonlyMapping, TModuleDeclarationDelimiterMapping, TModuleDeclarationListMapping, TModuleDeclarationMapping, TModuleMapping, TOptionalMapping, TOptionalSemiColonMapping, TParameterBaseMapping, TParameterListMapping, TParameterMapping, TParameterOptionalMapping, TParameterReadonlyMapping, TParameterReadonlyOptionalMapping, TParameterTypeMapping, TPatternBaseMapping, TPatternBigIntMapping, TPatternBodyMapping, TPatternGroupMapping, TPatternIntegerMapping, TPatternMapping, TPatternNeverMapping, TPatternNumberMapping, TPatternStringMapping, TPatternTermMapping, TPatternTextMapping, TPatternUnionMapping, TPropertiesMapping, TPropertyDelimiterMapping, TPropertyKeyIdentMapping, TPropertyKeyIndexMapping, TPropertyKeyMapping, TPropertyKeyNumberMapping, TPropertyKeyQuotedMapping, TPropertyListMapping, TPropertyMapping, TReadonlyMapping, TReferenceMapping, TScriptMapping, TTemplateBodyMapping, TTemplateInterpolateMapping, TTemplateLiteralMapping, TTemplateLiteralTypesMapping, TTemplateSpanMapping, TTypeAliasDeclarationGenericMapping, TTypeAliasDeclarationMapping, TTypeMapping, TWithArrayMapping, TWithBigIntMapping, TWithBooleanMapping, TWithElementListMapping, TWithMapping, TWithNullMapping, TWithNumberMapping, TWithObjectMapping, TWithPropertyListMapping, TWithPropertyMapping, TWithStringMapping, TWithUndefinedMapping, TWithValueMapping, T_Constructor_Mapping, T_Function_Mapping, T_Mapped_Mapping, T_Object_Mapping, T_Tuple_Mapping, TemplateBodyMapping, TemplateInterpolateMapping, TemplateLiteralMapping, TemplateLiteralTypesMapping, TemplateSpanMapping, TypeAliasDeclarationGenericMapping, TypeAliasDeclarationMapping, TypeMapping, WithArrayMapping, WithBigIntMapping, WithBooleanMapping, WithElementListMapping, WithMapping, WithNullMapping, WithNumberMapping, WithObjectMapping, WithPropertyListMapping, WithPropertyMapping, WithStringMapping, WithUndefinedMapping, WithValueMapping, _Constructor_Mapping, _Function_Mapping, _Mapped_Mapping, _Object_Mapping, _Tuple_Mapping }; } type TIntrinsicOrCall = ([Target, Parameters] extends ['Array', [infer Type extends TSchema]] ? TArray : [Target, Parameters] extends ['Capitalize', [infer Type extends TSchema]] ? TCapitalizeDeferred : [Target, Parameters] extends ['ConstructorParameters', [infer Type extends TSchema]] ? TConstructorParametersDeferred : [Target, Parameters] extends ['Evaluate', [infer Type extends TSchema]] ? TEvaluateDeferred : [Target, Parameters] extends ['Exclude', [infer Left extends TSchema, infer Right extends TSchema]] ? TExcludeDeferred : [Target, Parameters] extends ['Extract', [infer Left extends TSchema, infer Right extends TSchema]] ? TExtractDeferred : [Target, Parameters] extends ['Index', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TIndexDeferred : [Target, Parameters] extends ['InstanceType', [infer Type extends TSchema]] ? TInstanceTypeDeferred : [Target, Parameters] extends ['KeyOf', [infer Type extends TSchema]] ? TKeyOfDeferred : [Target, Parameters] extends ['Lowercase', [infer Type extends TSchema]] ? TLowercaseDeferred : [Target, Parameters] extends ['NonNullable', [infer Type extends TSchema]] ? TNonNullableDeferred : [Target, Parameters] extends ['Omit', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TOmitDeferred : [Target, Parameters] extends ['Parameters', [infer Type extends TSchema]] ? TParametersDeferred : [Target, Parameters] extends ['Partial', [infer Type extends TSchema]] ? TPartialDeferred : [Target, Parameters] extends ['Pick', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TPickDeferred : [Target, Parameters] extends ['Readonly', [infer Type extends TSchema]] ? TReadonlyObjectDeferred : [Target, Parameters] extends ['Record', [infer Key extends TSchema, infer Value extends TSchema]] ? TRecordDeferred : [Target, Parameters] extends ['Required', [infer Type extends TSchema]] ? TRequiredDeferred : [Target, Parameters] extends ['ReturnType', [infer Type extends TSchema]] ? TReturnTypeDeferred : [Target, Parameters] extends ['Uncapitalize', [infer Type extends TSchema]] ? TUncapitalizeDeferred : [Target, Parameters] extends ['Uppercase', [infer Type extends TSchema]] ? TUppercaseDeferred : TCallConstruct, Parameters>); type TDelimitedDecode = (Input extends [infer Left extends [unknown, unknown], ...infer Right extends [unknown, unknown][]] ? TDelimitedDecode : Result); type TDelimited = (Input extends [infer Left extends unknown, infer Right extends [unknown, unknown][], infer _ extends unknown[]] ? [Left, ...TDelimitedDecode] : []); type TGenericParameterExtendsEqualsMapping = (Input extends [infer Name extends string, 'extends', infer Extends extends TSchema, '=', infer Equals extends TSchema] ? TParameter$1 : never); declare function GenericParameterExtendsEqualsMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type TGenericParameterExtendsMapping = (Input extends [infer Name extends string, 'extends', infer Extends extends TSchema] ? TParameter$1 : never); declare function GenericParameterExtendsMapping(input: [unknown, unknown, unknown]): unknown; type TGenericParameterEqualsMapping = (Input extends [infer Name extends string, '=', infer Equals extends TSchema] ? TParameter$1 : never); declare function GenericParameterEqualsMapping(input: [unknown, unknown, unknown]): unknown; type TGenericParameterIdentifierMapping> = Result; declare function GenericParameterIdentifierMapping(input: string): unknown; type TGenericParameterMapping = (Input); declare function GenericParameterMapping(input: unknown): unknown; type TGenericParameterListMapping = (TDelimited); declare function GenericParameterListMapping(input: [unknown, unknown, unknown] | []): unknown; type TGenericParametersMapping = (Input extends ['<', infer Parameters extends TParameter$1[], '>'] ? Parameters : never); declare function GenericParametersMapping(input: [unknown, unknown, unknown]): unknown; type TGenericCallArgumentListMapping = (TDelimited); declare function GenericCallArgumentListMapping(input: [unknown, unknown, unknown] | []): unknown; type TGenericCallArgumentsMapping = (Input extends ['<', infer Arguments extends TSchema[], '>'] ? Arguments : never); declare function GenericCallArgumentsMapping(input: [unknown, unknown, unknown]): unknown; type TGenericCallMapping : never> = Result; declare function GenericCallMapping(input: [unknown, unknown]): unknown; type TOptionalSemiColonMapping = null; declare function OptionalSemiColonMapping(input: [unknown] | []): unknown; type TKeywordStringMapping = (TString$1); declare function KeywordStringMapping(input: 'string'): unknown; type TKeywordNumberMapping = (TNumber$1); declare function KeywordNumberMapping(input: 'number'): unknown; type TKeywordBooleanMapping = (TBoolean); declare function KeywordBooleanMapping(input: 'boolean'): unknown; type TKeywordUndefinedMapping = (TUndefined); declare function KeywordUndefinedMapping(input: 'undefined'): unknown; type TKeywordNullMapping = (TNull); declare function KeywordNullMapping(input: 'null'): unknown; type TKeywordIntegerMapping = (TInteger$1); declare function KeywordIntegerMapping(input: 'integer'): unknown; type TKeywordBigIntMapping = (TBigInt$1); declare function KeywordBigIntMapping(input: 'bigint'): unknown; type TKeywordUnknownMapping = (TUnknown); declare function KeywordUnknownMapping(input: 'unknown'): unknown; type TKeywordAnyMapping = (TAny); declare function KeywordAnyMapping(input: 'any'): unknown; type TKeywordObjectMapping = (TObject<{}>); declare function KeywordObjectMapping(input: 'object'): unknown; type TKeywordNeverMapping = (TNever); declare function KeywordNeverMapping(input: 'never'): unknown; type TKeywordSymbolMapping = (TSymbol); declare function KeywordSymbolMapping(input: 'symbol'): unknown; type TKeywordVoidMapping = (TVoid); declare function KeywordVoidMapping(input: 'void'): unknown; type TKeywordThisMapping = (TThis); declare function KeywordThisMapping(input: 'this'): unknown; type TLiteralBigIntMapping = (Input extends `${infer Value extends bigint}` ? TLiteral : never); declare function LiteralBigIntMapping(input: string): unknown; type TLiteralBooleanMapping = (Input extends 'true' ? TLiteral : TLiteral); declare function LiteralBooleanMapping(input: 'true' | 'false'): unknown; type TLiteralNumberMapping = (Input extends `${infer Value extends number}` ? TLiteral : never); declare function LiteralNumberMapping(input: string): unknown; type TLiteralStringMapping = (Input extends TLiteralValue ? TLiteral : never); declare function LiteralStringMapping(input: string): unknown; type TTemplateInterpolateMapping = Input extends ['${', infer Type extends TSchema, '}'] ? Type : never; declare function TemplateInterpolateMapping(input: [unknown, unknown, unknown]): unknown; type TTemplateSpanMapping> = Result; declare function TemplateSpanMapping(input: string): unknown; type TTemplateBodyMapping = (Input extends [infer Text extends TSchema, infer Type extends TSchema, infer Rest extends TSchema[]] ? [Text, Type, ...Rest] : Input extends [infer Text extends TSchema] ? [Text] : []); declare function TemplateBodyMapping(input: [unknown, unknown, unknown] | [unknown]): unknown; type TTemplateLiteralTypesMapping = Result; declare function TemplateLiteralTypesMapping(input: [unknown, unknown, unknown]): unknown; type TTemplateLiteralMapping = (Input extends (infer Types extends TSchema[]) ? TTemplateLiteralDeferred : never); declare function TemplateLiteralMapping(input: unknown): unknown; type TDependentMapping = (Input extends ['if', infer If extends TSchema, 'then', infer Then extends TSchema, 'else', infer Else extends TSchema] ? TDependent$1 : Input extends ['if', infer If extends TSchema, 'then', infer Then extends TSchema] ? TDependent$1 : never); declare function DependentMapping(input: [unknown, unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown]): unknown; type TKeyOfMapping = (Input extends [unknown] ? true : false); declare function KeyOfMapping(input: [unknown] | []): unknown; type TIndexArrayMappingReduce = (Input extends [infer Left extends unknown, ...infer Right extends unknown[]] ? Left extends ['[', infer Type extends TSchema, ']'] ? TIndexArrayMappingReduce : TIndexArrayMappingReduce : Result); type TIndexArrayMapping = (Input extends unknown[] ? TIndexArrayMappingReduce : []); declare function IndexArrayMapping(input: ([unknown, unknown, unknown] | [unknown, unknown])[]): unknown; type TExtendsMapping = (Input extends ['extends', infer Type extends TSchema, '?', infer True extends TSchema, ':', infer False extends TSchema] ? [Type, True, False] : []); declare function ExtendsMapping(input: [unknown, unknown, unknown, unknown, unknown, unknown] | []): unknown; type TBaseMapping = (Input extends ['(', infer Type extends TSchema, ')'] ? Type : Input extends (infer Type extends TSchema) ? Type : never); declare function BaseMapping(input: [unknown, unknown, unknown] | unknown): unknown; type TWithMapping = (Input extends ['with', infer WithObject extends Record] ? WithObject : []); declare function WithMapping(input: [unknown, unknown] | []): unknown; type TFactorIndexArray = (IndexArray extends [infer Left extends TSchema[], ...infer Right extends unknown[]] ? (Left extends [infer Indexer extends TSchema] ? TFactorIndexArray, Right> : Left extends [] ? TFactorIndexArray, Right> : TNever) : Type); type TFactorExtends = (Extends extends [infer Right extends TSchema, infer True extends TSchema, infer False extends TSchema] ? TConditionalDeferred : Type); type TFactorWith = (With extends Record ? TWithDeferred : Type); type TFactorMapping = (Input extends [infer KeyOf extends boolean, infer Type extends TSchema, infer IndexArray extends unknown[], infer Extend extends unknown[], infer WithClause extends unknown] ? TFactorWith>, Extend> : TFactorExtends, Extend>, WithClause> : never); declare function FactorMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type TExprBinaryMapping = (Rest extends [infer Operator extends unknown, infer Right extends TSchema, infer Next extends unknown[]] ? (TExprBinaryMapping extends (infer Schema extends TSchema) ? (Operator extends '&' ? (Schema extends TIntersect ? TIntersect<[Left, ...Types]> : TIntersect<[Left, Schema]>) : Operator extends '|' ? (Schema extends TUnion ? TUnion<[Left, ...Types]> : TUnion<[Left, Schema]>) : never) : never) : Left); type TExprTermTailMapping = (Input); declare function ExprTermTailMapping(input: [unknown, unknown, unknown] | []): unknown; type TExprTermMapping = (Input extends [infer Left extends TSchema, infer Rest extends unknown[]] ? TExprBinaryMapping : []); declare function ExprTermMapping(input: [unknown, unknown]): unknown; type TExprTailMapping = (Input); declare function ExprTailMapping(input: [unknown, unknown, unknown] | []): unknown; type TExprMapping = (Input extends [infer Left extends TSchema, infer Rest extends unknown[]] ? TExprBinaryMapping : []); declare function ExprMapping(input: [unknown, unknown]): unknown; type TExprReadonlyMapping = (Input extends ['readonly', infer Type extends TSchema] ? TAddImmutableDeferred : never); declare function ExprReadonlyMapping(input: [unknown, unknown]): unknown; type TExprPipeMapping = (Input extends ['|', infer Type extends TSchema] ? Type : never); declare function ExprPipeMapping(input: [unknown, unknown]): unknown; type TGenericTypeMapping = (Input extends [infer Arguments extends TParameter$1[], '=', infer Type extends TSchema] ? TGeneric : never); declare function GenericTypeMapping(input: [unknown, unknown, unknown]): unknown; type TInferTypeMapping = (Input extends ['infer', infer Name extends string, 'extends', infer Type extends TSchema] ? TInfer : Input extends ['infer', infer Name extends string] ? TInfer : never); declare function InferTypeMapping(input: [unknown, unknown, unknown, unknown] | [unknown, unknown]): unknown; type TTypeMapping = (Input); declare function TypeMapping(input: unknown): unknown; type TPropertyKeyNumberMapping = (`${Input}`); declare function PropertyKeyNumberMapping(input: string): unknown; type TPropertyKeyIdentMapping = (Input); declare function PropertyKeyIdentMapping(input: string): unknown; type TPropertyKeyQuotedMapping = (Input); declare function PropertyKeyQuotedMapping(input: string): unknown; type TPropertyKeyIndexMapping = (Input extends ['[', string, ':', TInteger$1, ']'] ? TIntegerKey : Input extends ['[', string, ':', TNumber$1, ']'] ? TNumberKey : Input extends ['[', string, ':', TString$1, ']'] ? TStringKey : Input extends ['[', string, ':', TSymbol, ']'] ? TStringKey : never); declare function PropertyKeyIndexMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type TPropertyKeyMapping = (Input); declare function PropertyKeyMapping(input: unknown): unknown; type TReadonlyMapping = (Input extends [unknown] ? true : false); declare function ReadonlyMapping(input: [unknown] | []): unknown; type TOptionalMapping = (Input extends [unknown] ? true : false); declare function OptionalMapping(input: [unknown] | []): unknown; type TPropertyMapping = (Input extends [infer IsReadonly extends boolean, infer Key extends string, infer IsOptional extends boolean, string, infer Type extends TSchema] ? { [_ in Key]: ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyDeferred> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyDeferred : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalDeferred : Type); } : never); declare function PropertyMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type TPropertyDelimiterMapping = (Input); declare function PropertyDelimiterMapping(input: [unknown, unknown] | [unknown]): unknown; type TPropertyListMapping = (TDelimited); declare function PropertyListMapping(input: [unknown, unknown, unknown] | []): unknown; type TPropertiesReduce = (PropertiesList extends [infer Left extends TProperties, ...infer Right extends TProperties[]] ? (Left extends { [_ in TIntegerKey]: TSchema; } ? TPropertiesReduce]> : Left extends { [_ in TNumberKey]: TSchema; } ? TPropertiesReduce]> : Left extends { [_ in TStringKey]: TSchema; } ? TPropertiesReduce]> : TPropertiesReduce, Result[1]]>) : { [Key in keyof Result]: Result[Key]; }); type TPropertiesMapping : [{}, {}]> = Result; declare function PropertiesMapping(input: [unknown, unknown, unknown]): unknown; type T_Object_Mapping = (Input extends [infer Properties extends TProperties, infer _PatternProperties extends TProperties] ? TObject : never); declare function _Object_Mapping(input: unknown): unknown; type TElementNamedMapping = (Input extends [string, '?', ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred> : Input extends [string, /**/ ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred : Input extends [string, '?', ':', /* */ infer Type extends TSchema] ? TAddOptionalDeferred : Input extends [string, /**/ ':', /* */ infer Type extends TSchema] ? Type : never); declare function ElementNamedMapping(input: [unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown] | [unknown, unknown, unknown]): unknown; type TElementBaseMapping = (Input extends [infer IsReadonly extends boolean, infer Type extends TSchema, infer IsOptional extends boolean] ? ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyDeferred> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyDeferred : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalDeferred : Type) : Input); declare function ElementBaseMapping(input: unknown | [unknown, unknown, unknown]): unknown; type TElementMapping = (Input extends ['...', infer Type extends TSchema] ? TRest : Input extends [infer Type extends TSchema] ? Type : never); declare function ElementMapping(input: [unknown, unknown] | [unknown]): unknown; type TElementListMapping = (TDelimited); declare function ElementListMapping(input: [unknown, unknown, unknown] | []): unknown; type T_Tuple_Mapping = (Input extends ['[', infer Types extends TSchema[], ']'] ? TTuple : never); declare function _Tuple_Mapping(input: [unknown, unknown, unknown]): unknown; type TParameterReadonlyOptionalMapping = (Input extends [string, '?', ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred> : never); declare function ParameterReadonlyOptionalMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type TParameterReadonlyMapping = (Input extends [string, ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred : never); declare function ParameterReadonlyMapping(input: [unknown, unknown, unknown, unknown]): unknown; type TParameterOptionalMapping = (Input extends [string, '?', ':', infer Type extends TSchema] ? TAddOptionalDeferred : never); declare function ParameterOptionalMapping(input: [unknown, unknown, unknown, unknown]): unknown; type TParameterTypeMapping = (Input extends [string, ':', infer Type extends TSchema] ? Type : never); declare function ParameterTypeMapping(input: [unknown, unknown, unknown]): unknown; type TParameterBaseMapping = (Input); declare function ParameterBaseMapping(input: unknown): unknown; type TParameterMapping = (Input extends ['...', infer Type extends TSchema] ? TRest : Input extends [infer Type extends TSchema] ? Type : never); declare function ParameterMapping(input: [unknown, unknown] | [unknown]): unknown; type TParameterListMapping = (TDelimited); declare function ParameterListMapping(input: [unknown, unknown, unknown] | []): unknown; type T_Function_Mapping = (Input extends ['(', infer ParameterList extends TSchema[], ')', '=>', infer ReturnType extends TSchema] ? TFunction : never); declare function _Function_Mapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type T_Constructor_Mapping = (Input extends ['new', '(', infer ParameterList extends TSchema[], ')', '=>', infer InstanceType extends TSchema] ? TConstructor : never); declare function _Constructor_Mapping(input: [unknown, unknown, unknown, unknown, unknown, unknown]): unknown; type TModifierOperation = 'add' | 'remove' | 'none'; type TApplyReadonly = (Readonly extends 'remove' ? TRemoveReadonlyDeferred : Readonly extends 'add' ? TAddReadonlyDeferred : Type); type TMappedReadonlyMapping = (Input extends ['-', 'readonly'] ? 'remove' : Input extends ['+', 'readonly'] ? 'add' : Input extends ['readonly'] ? 'add' : 'none'); declare function MappedReadonlyMapping(input: [unknown, unknown] | [unknown] | []): unknown; type TApplyOptional = (Optional extends 'remove' ? TRemoveOptionalDeferred : Optional extends 'add' ? TAddOptionalDeferred : Type); type TMappedOptionalMapping = (Input extends ['-', '?'] ? 'remove' : Input extends ['+', '?'] ? 'add' : Input extends ['?'] ? 'add' : 'none'); declare function MappedOptionalMapping(input: [unknown, unknown] | [unknown] | []): unknown; type TMappedAsMapping = (Input extends ['as', infer Type extends TSchema] ? [Type] : []); declare function MappedAsMapping(input: [unknown, unknown] | []): unknown; type T_Mapped_Mapping = (Input extends ['{', infer Readonly extends TModifierOperation, '[', infer Key extends string, 'in', infer Type extends TSchema, infer As extends TSchema[], ']', infer Optional extends TModifierOperation, ':', infer Property extends TSchema, null, '}'] ? (As extends [infer As extends TSchema] ? TMappedDeferred, Type, As, TApplyReadonly>> : TMappedDeferred, Type, TRef, TApplyReadonly>>) : never); declare function _Mapped_Mapping(input: [unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown]): unknown; type TReferenceMapping> = Result; declare function ReferenceMapping(input: string): unknown; type TWithBigIntMapping = (Input extends `${infer Value extends bigint}` ? Value : never); declare function WithBigIntMapping(input: string): unknown; type TWithNumberMapping = (Input extends `${infer Value extends number}` ? Value : never); declare function WithNumberMapping(input: string): unknown; type TWithBooleanMapping = (Input extends 'true' ? true : false); declare function WithBooleanMapping(input: 'true' | 'false'): unknown; type TWithStringMapping = (Input); declare function WithStringMapping(input: string): unknown; type TWithNullMapping = (null); declare function WithNullMapping(input: 'null'): unknown; type TWithUndefinedMapping = undefined; declare function WithUndefinedMapping(input: 'undefined'): unknown; type TWithPropertyMapping = (Input extends [infer Key extends string, ':', infer Value extends unknown] ? { [_ in Key]: Value; } : never); declare function WithPropertyMapping(input: [unknown, unknown, unknown]): unknown; type TWithPropertyListMapping = (TDelimited); declare function WithPropertyListMapping(input: [unknown, unknown, unknown] | []): unknown; type TWithObjectMappingReduce[], Result extends Record = {}> = (PropertyList extends [infer Left extends Record, ...infer Right extends Record[]] ? TWithObjectMappingReduce> : { [Key in keyof Result]: Result[Key]; }); type TWithObjectMapping = (Input extends ['{', infer PropertyList extends Record[], '}'] ? TWithObjectMappingReduce : {}); declare function WithObjectMapping(input: [unknown, unknown, unknown]): unknown; type TWithElementListMapping = (TDelimited); declare function WithElementListMapping(input: [unknown, unknown, unknown] | []): unknown; type TWithArrayMapping = (Input extends ['[', infer Elements extends unknown[], ']'] ? Elements : never); declare function WithArrayMapping(input: [unknown, unknown, unknown]): unknown; type TWithValueMapping = (Input); declare function WithValueMapping(input: unknown): unknown; type TPatternBigIntMapping = (TBigInt$1); declare function PatternBigIntMapping(input: '-?(?:0|[1-9][0-9]*)n'): unknown; type TPatternStringMapping = (TString$1); declare function PatternStringMapping(input: '.*'): unknown; type TPatternNumberMapping = (TNumber$1); declare function PatternNumberMapping(input: '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?'): unknown; type TPatternIntegerMapping = (TInteger$1); declare function PatternIntegerMapping(input: '-?(?:0|[1-9][0-9]*)'): unknown; type TPatternNeverMapping = (TNever); declare function PatternNeverMapping(input: '(?!)'): unknown; type TPatternTextMapping> = Result; declare function PatternTextMapping(input: string): unknown; type TPatternBaseMapping = (Input); declare function PatternBaseMapping(input: unknown): unknown; type TPatternGroupMapping = (Input extends ['(', infer Body extends TSchema[], ')'] ? TUnion : never); declare function PatternGroupMapping(input: [unknown, unknown, unknown]): unknown; type TPatternUnionMapping = (Input extends [infer Term extends TSchema[], '|', infer Union extends TSchema[]] ? [...Term, ...Union] : Input extends [infer Term extends TSchema[]] ? [...Term] : []); declare function PatternUnionMapping(input: [unknown, unknown, unknown] | [unknown] | []): unknown; type TPatternTermMapping = (Input extends [infer Left extends TSchema, infer Right extends TSchema[]] ? [Left, ...Right] : never); declare function PatternTermMapping(input: [unknown, unknown]): unknown; type TPatternBodyMapping = (Input); declare function PatternBodyMapping(input: unknown): unknown; type TPatternMapping = (Input extends ['^', infer Body extends TSchema[], '$'] ? Body : never); declare function PatternMapping(input: [unknown, unknown, unknown]): unknown; type TInterfaceDeclarationHeritageListMapping = (TDelimited); declare function InterfaceDeclarationHeritageListMapping(input: [unknown, unknown, unknown] | []): unknown; type TInterfaceDeclarationHeritageMapping = (Input extends ['extends', infer Heritage extends TSchema[]] ? Heritage : []); declare function InterfaceDeclarationHeritageMapping(input: [unknown, unknown] | []): unknown; type TInterfaceDeclarationGenericMapping = (Input extends ['interface', infer Name extends string, infer Parameters extends TParameter$1[], infer Heritage extends TSchema[], infer Properties extends [TProperties, TProperties]] ? { [_ in Name]: TGeneric>; } : never); declare function InterfaceDeclarationGenericMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type TInterfaceDeclarationMapping = (Input extends ['interface', infer Name extends string, infer Heritage extends TSchema[], infer Properties extends [TProperties, TProperties]] ? { [_ in Name]: TInterfaceDeferred; } : never); declare function InterfaceDeclarationMapping(input: [unknown, unknown, unknown, unknown]): unknown; type TTypeAliasDeclarationGenericMapping = (Input extends ['type', infer Name extends string, infer Parameters extends TParameter$1[], '=', infer Type extends TSchema] ? { [_ in Name]: TGeneric; } : never); declare function TypeAliasDeclarationGenericMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown; type TTypeAliasDeclarationMapping = (Input extends ['type', infer Name extends string, '=', infer Type extends TSchema] ? { [_ in Name]: Type; } : never); declare function TypeAliasDeclarationMapping(input: [unknown, unknown, unknown, unknown]): unknown; type TExportKeywordMapping = (null); declare function ExportKeywordMapping(input: [unknown] | []): unknown; type TModuleDeclarationDelimiterMapping = (Input); declare function ModuleDeclarationDelimiterMapping(input: [unknown, unknown] | [unknown]): unknown; type TModuleDeclarationListMapping = (TDelimited); declare function ModuleDeclarationListMapping(input: [unknown, unknown, unknown] | []): unknown; type TModuleDeclarationMapping = (Input extends [null, infer ModuleDeclaration extends TProperties, null] ? ModuleDeclaration : never); declare function ModuleDeclarationMapping(input: [unknown, unknown, unknown]): unknown; type TModuleMapping = (Input extends [infer ModuleDeclaration extends TProperties, infer ModuleDeclarationList extends TProperties[]] ? TModuleDeferred[0]>> : never); declare function ModuleMapping(input: [unknown, unknown]): unknown; type TScriptMapping = (Input); declare function ScriptMapping(input: unknown): unknown; type TTakeVariant = (Input extends `${Variant}${infer Rest extends string}` ? [Variant, Rest] : []); /** Takes one of the given variants or fail */ type TTake = (Variants extends [infer ValueLeft extends string, ...infer ValueRight extends string[]] ? TTakeVariant extends [infer Take extends string, infer Rest extends string] ? [Take, Rest] : TTake : []); declare namespace char_d_exports { export { Alpha, Digit, DollarSign, Dot, Hyphen, NewLine, NonZero, TAlpha, TDigit, TDollarSign, TDot, THyphen, TNewLine, TNonZero, TTabSpace, TUnderScore, TWhiteSpace, TZero, TabSpace, UnderScore, WhiteSpace, Zero }; } type TAlpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; declare const Alpha: TAlpha; type TZero = typeof Zero; type TNonZero = ['1', '2', '3', '4', '5', '6', '7', '8', '9']; type TDigit = [TZero, ...TNonZero]; declare const Zero = "0"; declare const NonZero: TNonZero; declare const Digit: TDigit; declare const WhiteSpace = " "; declare const NewLine = "\n"; declare const TabSpace = "\t"; declare const UnderScore = "_"; declare const Dot = "."; declare const DollarSign = "$"; declare const Hyphen = "-"; type TWhiteSpace = typeof WhiteSpace; type TNewLine = typeof NewLine; type TTabSpace = typeof TabSpace; type TUnderScore = typeof UnderScore; type TDot = typeof Dot; type TDollarSign = typeof DollarSign; type THyphen = typeof Hyphen; type LineComment = typeof LineComment; type OpenComment = typeof OpenComment; type CloseComment = typeof CloseComment; declare const LineComment = "//"; declare const OpenComment = "/*"; declare const CloseComment = "*/"; type TDiscardMultiLineComment = (Input extends `${string}${CloseComment}${infer Rest extends string}` ? Rest : ''); type TDiscardLineComment = (Input extends `${string}${TNewLine}${infer Rest extends string}` ? TTrimWhitespace<`${TNewLine}${Rest}`> : ''); type W4 = `${W3}${W3}`; type W3 = `${W2}${W2}`; type W2 = `${W1}${W1}`; type W1 = `${W0}${W0}`; type W0 = ` `; type TTrimWhitespace = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrimWhitespace> : Input extends `${LineComment}${infer Rest extends string}` ? TTrimWhitespace> : Input extends `${W4}${infer Rest extends string}` ? TTrimWhitespace : Input extends `${W3}${infer Rest extends string}` ? TTrimWhitespace : Input extends `${W1}${infer Rest extends string}` ? TTrimWhitespace : Input extends `${W0}${infer Rest extends string}` ? TTrimWhitespace : Input); type TTrim = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrim> : Input extends `${LineComment}${infer Rest extends string}` ? TTrim> : Input extends `${TNewLine}${infer Rest extends string}` ? TTrim : Input extends `${TTabSpace}${infer Rest extends string}` ? TTrim : Input extends `${W4}${infer Rest extends string}` ? TTrim : Input extends `${W3}${infer Rest extends string}` ? TTrim : Input extends `${W1}${infer Rest extends string}` ? TTrim : Input extends `${W0}${infer Rest extends string}` ? TTrim : Input); /** Matches the given Value or empty string if no match. This function never fails */ type TOptional$2 = (TTake<[Value], Input> extends [infer Optional extends string, infer Rest extends string] ? [Optional, Rest] : ['', Input]); type TIsDiscard = (Discard extends [infer Left extends string, ...infer Right extends string[]] ? Input extends Left ? true : TIsDiscard : false); /** Takes characters from the Input until no-match. The Discard set is used to omit characters from the match */ type TMany = (TTake extends [infer Char extends string, infer Rest extends string] ? TIsDiscard extends true ? TMany : TMany : [Result, Input]); type TTakeNonZero = (TTake); type TAllowedDigits$1 = [...TDigit, TUnderScore]; type TTakeDigits = (TMany); type TTakeUnsignedInteger = (TTake<[TZero], Input> extends [infer Zero extends string, infer ZeroRest extends string] ? [Zero, ZeroRest] : TTakeNonZero extends [infer NonZero extends string, infer NonZeroRest extends string] ? TTakeDigits extends [infer Digits extends string, infer DigitsRest extends string] ? [`${NonZero}${Digits}`, DigitsRest] : [] : []); /** Matches if next is a UnsignedInteger */ type TUnsignedInteger = (TTakeUnsignedInteger>); /** Matches if next is a UnsignedInteger */ declare function UnsignedInteger(input: Input): TUnsignedInteger; type TTakeSign$1 = (TOptional$2); type TTakeSignedInteger = (TTakeSign$1 extends [infer Sign extends string, infer SignRest extends string] ? TUnsignedInteger extends [infer UnsignedInteger extends string, infer UnsignedIntegerRest extends string] ? [`${Sign}${UnsignedInteger}`, UnsignedIntegerRest] : [] : []); /** Matches if next is a signed or unsigned Integer */ type TInteger = (TTakeSignedInteger>); /** Matches if next is a signed or unsigned Integer */ declare function Integer(input: Input): TInteger; type TTakeBigInt = (TInteger extends [infer Integer extends string, infer IntegerRest extends string] ? TTake<['n'], IntegerRest> extends [infer _N extends string, infer NRest extends string] ? [`${Integer}`, NRest] : [] : []); /** Matches if next is a Integer literal with trailing 'n'. Trailing 'n' is omitted in result. */ type TBigInt = (TTakeBigInt); /** Matches if next is a Integer literal with trailing 'n'. Trailing 'n' is omitted in result. */ declare function BigInt(input: Input): TBigInt; type TTakeConst = (TTake<[Const], Input>); /** Matches if next is the given Const value */ type TConst = (Const extends '' ? ['', Input] : Const extends `${infer First extends string}${string}` ? (First extends TNewLine ? TTakeConst> : First extends TWhiteSpace ? TTakeConst : TTakeConst>) : never); /** Matches if next is the given Const value */ declare function Const(const_: Const, input: Input): TConst; type TInitial = [...TAlpha, TUnderScore, TDollarSign]; type TTakeInitial$1 = (TTake); type TRemaining = [...TInitial, ...TDigit]; type TTakeRemaining = (TTake extends [infer Remaining extends string, infer RemainingRest extends string] ? TTakeRemaining : [Result, Input]); type TTakeIdent = (TTakeInitial$1 extends [infer Initial extends string, infer InitialRest extends string] ? TTakeRemaining extends [infer Remaining extends string, infer RemainingRest extends string] ? [`${Initial}${Remaining}`, RemainingRest] : [] : []); /** Matches if next is an Ident */ type TIdent = (TTakeIdent>); /** Matches if next is an Ident */ declare function Ident(input: Input): TIdent; type TAllowedDigits = [...TDigit, TUnderScore]; type TIsLeadingDot = (TTake<[TDot], Input> extends [string, string] ? true : false); type TTakeFractional = (TMany extends [infer Digits extends string, infer DigitsRest extends string] ? Digits extends '' ? [] : [Digits, DigitsRest] : []); type TLeadingDot = (TTake<[TDot], Input> extends [infer Dot extends string, infer DotRest extends string] ? TTakeFractional extends [infer Fractional extends string, infer FractionalRest extends string] ? [`0${Dot}${Fractional}`, FractionalRest] : [] : []); type TLeadingInteger = (TUnsignedInteger extends [infer Integer extends string, infer IntegerRest extends string] ? TTake<[TDot], IntegerRest> extends [infer Dot extends string, infer DotRest extends string] ? TTakeFractional extends [infer Fractional extends string, infer FractionalRest extends string] ? [`${Integer}${Dot}${Fractional}`, FractionalRest] : [`${Integer}`, DotRest] : [`${Integer}`, IntegerRest] : []); type TTakeUnsignedNumber = (TIsLeadingDot extends true ? TLeadingDot : TLeadingInteger); /** Matches if next is a UnsignedNumber */ type TUnsignedNumber = (TTakeUnsignedNumber>); /** Matches if next is a UnsignedNumber */ declare function UnsignedNumber(input: Input): TUnsignedNumber; type TTakeSign = (TOptional$2); type TTakeSignedNumber = (TTakeSign extends [infer Sign extends string, infer SignRest extends string] ? TUnsignedNumber extends [infer UnsignedInteger extends string, infer UnsignedIntegerRest extends string] ? [`${Sign}${UnsignedInteger}`, UnsignedIntegerRest] : [] : []); /** Matches if next is a signed or unsigned Number */ type TNumber = (TTakeSignedNumber>); /** Matches if next is a signed or unsigned Number */ declare function Number(input: Input): TNumber; /** Match remaining characters in the buffer until end. If no characters are in buffer, no match */ type TRest$1 = (Input extends '' ? [] : [Input, '']); /** Match remaining characters in the buffer until end. If no characters are in buffer, no match */ declare function Rest$1(input: Input): TRest$1; type TTakeOne = (Input extends `${infer Left extends string}${infer Right extends string}` ? [Left, Right] : []); type TIsInputMatchSentinal = (End extends [infer Left extends string, ...infer Right extends string[]] ? Input extends `${Left}${string}` ? true : TIsInputMatchSentinal : false); /** Match Input until but not including End. No match if End not found. */ type TUntil = (TTakeOne extends [infer One extends string, infer Rest extends string] ? TIsInputMatchSentinal extends true ? [Result, Input] : TUntil : []); /** Match Input until but not including End. No match if End not found. */ declare function Until(end: [...End], input: Input, result?: string): TUntil; type TMultiLine = (TTake<[Start], Input> extends [infer _, infer Rest extends string] ? TUntil<[End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer Rest extends string] ? [`${Until}`, Rest] : [] : [] : []); type TSingleLine = (TTake<[Start], Input> extends [infer _ extends string, infer Rest extends string] ? TUntil<[TNewLine, End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer EndRest extends string] ? [`${Until}`, EndRest] : [] : [] : []); /** Matches from Start and End capturing everything in-between. Start and End are consumed. */ type TSpan = (MultiLine extends true ? TMultiLine> : TSingleLine>); /** Matches from Start and End capturing everything in-between. Start and End are consumed. */ declare function Span(start: Start, end: End, multiLine: MultiLine, input: Input): TSpan; type TTakeInitial = (TTake); type TTakeSpan = (TSpan); type TTakeString = (TTakeInitial extends [infer Initial extends string, infer InitialRest extends string] ? TTakeSpan : []); /** Matches a literal String with the given quotes */ type TString = (TTakeString>); /** Matches a literal String with the given quotes */ declare function String(quotes: [...Quotes], input: Input): TString; /** Match Input until but not including End. No match if End not found or match is zero-length. */ type TUntil_1 = (TUntil extends [infer Until extends string, infer UntilRest extends string] ? Until extends '' ? [] : [Until, UntilRest] : []); /** Match Input until but not including End. No match if End not found or match is zero-length. */ declare function Until_1(end: [...End], input: Input): TUntil_1; declare namespace index_d_exports$3 { export { BigInt, Const, Ident, Integer, Number, Rest$1 as Rest, Span, String, TBigInt, TConst, TIdent, TInteger, TNumber, TRest$1 as TRest, TSpan, TString, TUnsignedInteger, TUnsignedNumber, TUntil, TUntil_1, UnsignedInteger, UnsignedNumber, Until, Until_1 }; } declare namespace parser_d_exports { export { Base, Dependent, Element, ElementBase, ElementList, ElementList_0, ElementNamed, ExportKeyword, Expr, ExprPipe, ExprReadonly, ExprTail, ExprTerm, ExprTermTail, Extends$1 as Extends, Factor, GenericCall, GenericCallArgumentList, GenericCallArgumentList_0, GenericCallArguments, GenericParameter, GenericParameterEquals, GenericParameterExtends, GenericParameterExtendsEquals, GenericParameterIdentifier, GenericParameterList, GenericParameterList_0, GenericParameters, GenericType, IndexArray, IndexArray_0, InferType, InterfaceDeclaration, InterfaceDeclarationGeneric, InterfaceDeclarationHeritage, InterfaceDeclarationHeritageList, InterfaceDeclarationHeritageList_0, KeyOf$1 as KeyOf, KeywordAny, KeywordBigInt, KeywordBoolean, KeywordInteger, KeywordNever, KeywordNull, KeywordNumber, KeywordObject, KeywordString, KeywordSymbol, KeywordThis, KeywordUndefined, KeywordUnknown, KeywordVoid, LiteralBigInt, LiteralBoolean, LiteralNumber, LiteralString, MappedAs, MappedOptional, MappedReadonly, Module$1 as Module, ModuleDeclaration, ModuleDeclarationDelimiter, ModuleDeclarationList, ModuleDeclarationList_0, Optional$1 as Optional, OptionalSemiColon, Parameter, ParameterBase, ParameterList, ParameterList_0, ParameterOptional, ParameterReadonly, ParameterReadonlyOptional, ParameterType, Pattern, PatternBase, PatternBigInt, PatternBody, PatternGroup, PatternInteger, PatternNever, PatternNumber, PatternString, PatternTerm, PatternText, PatternUnion, Properties, Property, PropertyDelimiter, PropertyKey$1 as PropertyKey, PropertyKeyIdent, PropertyKeyIndex, PropertyKeyNumber, PropertyKeyQuoted, PropertyList, PropertyList_0, Readonly$1 as Readonly, Reference, Script$1 as Script, TBase, TDependent, TElement, TElementBase, TElementList, TElementList_0, TElementNamed, TExportKeyword, TExpr, TExprPipe, TExprReadonly, TExprTail, TExprTerm, TExprTermTail, TExtends$1 as TExtends, TFactor, TGenericCall, TGenericCallArgumentList, TGenericCallArgumentList_0, TGenericCallArguments, TGenericParameter, TGenericParameterEquals, TGenericParameterExtends, TGenericParameterExtendsEquals, TGenericParameterIdentifier, TGenericParameterList, TGenericParameterList_0, TGenericParameters, TGenericType, TIndexArray, TIndexArray_0, TInferType, TInterfaceDeclaration, TInterfaceDeclarationGeneric, TInterfaceDeclarationHeritage, TInterfaceDeclarationHeritageList, TInterfaceDeclarationHeritageList_0, TKeyOf$1 as TKeyOf, TKeywordAny, TKeywordBigInt, TKeywordBoolean, TKeywordInteger, TKeywordNever, TKeywordNull, TKeywordNumber, TKeywordObject, TKeywordString, TKeywordSymbol, TKeywordThis, TKeywordUndefined, TKeywordUnknown, TKeywordVoid, TLiteralBigInt, TLiteralBoolean, TLiteralNumber, TLiteralString, TMappedAs, TMappedOptional, TMappedReadonly, TModule$1 as TModule, TModuleDeclaration, TModuleDeclarationDelimiter, TModuleDeclarationList, TModuleDeclarationList_0, TOptional$1 as TOptional, TOptionalSemiColon, TParameter, TParameterBase, TParameterList, TParameterList_0, TParameterOptional, TParameterReadonly, TParameterReadonlyOptional, TParameterType, TPattern, TPatternBase, TPatternBigInt, TPatternBody, TPatternGroup, TPatternInteger, TPatternNever, TPatternNumber, TPatternString, TPatternTerm, TPatternText, TPatternUnion, TProperties$1 as TProperties, TProperty, TPropertyDelimiter, TPropertyKey, TPropertyKeyIdent, TPropertyKeyIndex, TPropertyKeyNumber, TPropertyKeyQuoted, TPropertyList, TPropertyList_0, TReadonly, TReference, TScript$1 as TScript, TTemplateBody, TTemplateInterpolate, TTemplateLiteral$1 as TTemplateLiteral, TTemplateLiteralTypes, TTemplateSpan, TType, TTypeAliasDeclaration, TTypeAliasDeclarationGeneric, TWith$1 as TWith, TWithArray, TWithBigInt, TWithBoolean, TWithElementList, TWithElementList_0, TWithNull, TWithNumber, TWithObject, TWithProperty, TWithPropertyList, TWithPropertyList_0, TWithString, TWithUndefined, TWithValue, T_Constructor_, T_Function_, T_Mapped_, T_Object_, T_Tuple_, TemplateBody, TemplateInterpolate, TemplateLiteral$1 as TemplateLiteral, TemplateLiteralTypes, TemplateSpan, Type, TypeAliasDeclaration, TypeAliasDeclarationGeneric, With$1 as With, WithArray, WithBigInt, WithBoolean, WithElementList, WithElementList_0, WithNull, WithNumber, WithObject, WithProperty, WithPropertyList, WithPropertyList_0, WithString, WithUndefined, WithValue, _Constructor_, _Function_$1 as _Function_, _Mapped_, _Object_, _Tuple_ }; } type TGenericParameterExtendsEquals = (TIdent extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType extends [infer _2, infer Input extends string] ? (TConst<'=', Input> extends [infer _3, infer Input extends string] ? (TType extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsEqualsMapping<_0>, Input] : []; type TGenericParameterExtends = (TIdent extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsMapping<_0>, Input] : []; type TGenericParameterEquals = (TIdent extends [infer _0, infer Input extends string] ? (TConst<'=', Input> extends [infer _1, infer Input extends string] ? (TType extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterEqualsMapping<_0>, Input] : []; type TGenericParameterIdentifier = TIdent extends [infer _0 extends string, infer Input extends string] ? [TGenericParameterIdentifierMapping<_0>, Input] : []; type TGenericParameter = (TGenericParameterExtendsEquals extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterExtends extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterEquals extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterIdentifier extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TGenericParameterMapping<_0>, Input] : []; type TGenericParameterList_0 = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TGenericParameter extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TGenericParameterList_0 : [Result, Input]; type TGenericParameterList = ((TGenericParameter extends [infer _0, infer Input extends string] ? (TGenericParameterList_0 extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TGenericParameterListMapping<_0>, Input] : []; type TGenericParameters = (TConst<'<', Input> extends [infer _0, infer Input extends string] ? (TGenericParameterList extends [infer _1, infer Input extends string] ? (TConst<'>', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParametersMapping<_0>, Input] : []; type TGenericCallArgumentList_0 = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TGenericCallArgumentList_0 : [Result, Input]; type TGenericCallArgumentList = ((TType extends [infer _0, infer Input extends string] ? (TGenericCallArgumentList_0 extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TGenericCallArgumentListMapping<_0>, Input] : []; type TGenericCallArguments = (TConst<'<', Input> extends [infer _0, infer Input extends string] ? (TGenericCallArgumentList extends [infer _1, infer Input extends string] ? (TConst<'>', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericCallArgumentsMapping<_0>, Input] : []; type TGenericCall = (TIdent extends [infer _0, infer Input extends string] ? (TGenericCallArguments extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TGenericCallMapping<_0>, Input] : []; type TOptionalSemiColon = ((TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TOptionalSemiColonMapping<_0>, Input] : []; type TKeywordString = TConst<'string', Input> extends [infer _0 extends 'string', infer Input extends string] ? [TKeywordStringMapping<_0>, Input] : []; type TKeywordNumber = TConst<'number', Input> extends [infer _0 extends 'number', infer Input extends string] ? [TKeywordNumberMapping<_0>, Input] : []; type TKeywordBoolean = TConst<'boolean', Input> extends [infer _0 extends 'boolean', infer Input extends string] ? [TKeywordBooleanMapping<_0>, Input] : []; type TKeywordUndefined = TConst<'undefined', Input> extends [infer _0 extends 'undefined', infer Input extends string] ? [TKeywordUndefinedMapping<_0>, Input] : []; type TKeywordNull = TConst<'null', Input> extends [infer _0 extends 'null', infer Input extends string] ? [TKeywordNullMapping<_0>, Input] : []; type TKeywordInteger = TConst<'integer', Input> extends [infer _0 extends 'integer', infer Input extends string] ? [TKeywordIntegerMapping<_0>, Input] : []; type TKeywordBigInt = TConst<'bigint', Input> extends [infer _0 extends 'bigint', infer Input extends string] ? [TKeywordBigIntMapping<_0>, Input] : []; type TKeywordUnknown = TConst<'unknown', Input> extends [infer _0 extends 'unknown', infer Input extends string] ? [TKeywordUnknownMapping<_0>, Input] : []; type TKeywordAny = TConst<'any', Input> extends [infer _0 extends 'any', infer Input extends string] ? [TKeywordAnyMapping<_0>, Input] : []; type TKeywordObject = TConst<'object', Input> extends [infer _0 extends 'object', infer Input extends string] ? [TKeywordObjectMapping<_0>, Input] : []; type TKeywordNever = TConst<'never', Input> extends [infer _0 extends 'never', infer Input extends string] ? [TKeywordNeverMapping<_0>, Input] : []; type TKeywordSymbol = TConst<'symbol', Input> extends [infer _0 extends 'symbol', infer Input extends string] ? [TKeywordSymbolMapping<_0>, Input] : []; type TKeywordVoid = TConst<'void', Input> extends [infer _0 extends 'void', infer Input extends string] ? [TKeywordVoidMapping<_0>, Input] : []; type TKeywordThis = TConst<'this', Input> extends [infer _0 extends 'this', infer Input extends string] ? [TKeywordThisMapping<_0>, Input] : []; type TTemplateInterpolate = (TConst<'${', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? (TConst<'}', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TTemplateInterpolateMapping<_0>, Input] : []; type TTemplateSpan = TUntil<['${', '`'], Input> extends [infer _0 extends string, infer Input extends string] ? [TTemplateSpanMapping<_0>, Input] : []; type TTemplateBody = ((TTemplateSpan extends [infer _0, infer Input extends string] ? (TTemplateInterpolate extends [infer _1, infer Input extends string] ? (TTemplateBody extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TTemplateSpan extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TTemplateSpan extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [unknown], infer Input extends string] ? [TTemplateBodyMapping<_0>, Input] : []; type TTemplateLiteralTypes = (TConst<'`', Input> extends [infer _0, infer Input extends string] ? (TTemplateBody extends [infer _1, infer Input extends string] ? (TConst<'`', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TTemplateLiteralTypesMapping<_0>, Input] : []; type TTemplateLiteral$1 = TTemplateLiteralTypes extends [infer _0 extends unknown, infer Input extends string] ? [TTemplateLiteralMapping<_0>, Input] : []; type TDependent = ((TConst<'if', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? (TConst<'then', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? (TConst<'else', Input> extends [infer _4, infer Input extends string] ? (TType extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'if', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? (TConst<'then', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown], infer Input extends string] ? [TDependentMapping<_0>, Input] : []; type TLiteralBigInt = TBigInt extends [infer _0 extends string, infer Input extends string] ? [TLiteralBigIntMapping<_0>, Input] : []; type TLiteralBoolean = (TConst<'true', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TConst<'false', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends 'true' | 'false', infer Input extends string] ? [TLiteralBooleanMapping<_0>, Input] : []; type TLiteralNumber = TNumber extends [infer _0 extends string, infer Input extends string] ? [TLiteralNumberMapping<_0>, Input] : []; type TLiteralString = TString<['\'', '"'], Input> extends [infer _0 extends string, infer Input extends string] ? [TLiteralStringMapping<_0>, Input] : []; type TKeyOf$1 = ((TConst<'keyof', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TKeyOfMapping<_0>, Input] : []; type TIndexArray_0 = ((TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? (TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TConst<']', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0, infer Input extends string] ? TIndexArray_0 : [Result, Input]; type TIndexArray = TIndexArray_0 extends [infer _0 extends ([unknown, unknown, unknown] | [unknown, unknown])[], infer Input extends string] ? [TIndexArrayMapping<_0>, Input] : []; type TExtends$1 = ((TConst<'extends', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? (TConst<'?', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? (TConst<':', Input> extends [infer _4, infer Input extends string] ? (TType extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown] | [], infer Input extends string] ? [TExtendsMapping<_0>, Input] : []; type TBase = ((TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordString extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNumber extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBoolean extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUndefined extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNull extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordInteger extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBigInt extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUnknown extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordAny extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordObject extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNever extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordSymbol extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordVoid extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordThis extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBigInt extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBoolean extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralNumber extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralString extends [infer _0, infer Input extends string] ? [_0, Input] : TTemplateLiteral$1 extends [infer _0, infer Input extends string] ? [_0, Input] : TDependent extends [infer _0, infer Input extends string] ? [_0, Input] : T_Object_ extends [infer _0, infer Input extends string] ? [_0, Input] : T_Tuple_ extends [infer _0, infer Input extends string] ? [_0, Input] : T_Constructor_ extends [infer _0, infer Input extends string] ? [_0, Input] : T_Function_ extends [infer _0, infer Input extends string] ? [_0, Input] : T_Mapped_ extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericCall extends [infer _0, infer Input extends string] ? [_0, Input] : TReference extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | unknown, infer Input extends string] ? [TBaseMapping<_0>, Input] : []; type TWith$1 = ((TConst<'with', Input> extends [infer _0, infer Input extends string] ? (TWithObject extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [TWithMapping<_0>, Input] : []; type TFactor = (TKeyOf$1 extends [infer _0, infer Input extends string] ? (TBase extends [infer _1, infer Input extends string] ? (TIndexArray extends [infer _2, infer Input extends string] ? (TExtends$1 extends [infer _3, infer Input extends string] ? (TWith$1 extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TFactorMapping<_0>, Input] : []; type TExprTermTail = ((TConst<'&', Input> extends [infer _0, infer Input extends string] ? (TFactor extends [infer _1, infer Input extends string] ? (TExprTermTail extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TExprTermTailMapping<_0>, Input] : []; type TExprTerm = (TFactor extends [infer _0, infer Input extends string] ? (TExprTermTail extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprTermMapping<_0>, Input] : []; type TExprTail = ((TConst<'|', Input> extends [infer _0, infer Input extends string] ? (TExprTerm extends [infer _1, infer Input extends string] ? (TExprTail extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TExprTailMapping<_0>, Input] : []; type TExpr = (TExprTerm extends [infer _0, infer Input extends string] ? (TExprTail extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprMapping<_0>, Input] : []; type TExprReadonly = (TConst<'readonly', Input> extends [infer _0, infer Input extends string] ? (TExpr extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprReadonlyMapping<_0>, Input] : []; type TExprPipe = (TConst<'|', Input> extends [infer _0, infer Input extends string] ? (TExpr extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprPipeMapping<_0>, Input] : []; type TGenericType = (TGenericParameters extends [infer _0, infer Input extends string] ? (TConst<'=', Input> extends [infer _1, infer Input extends string] ? (TType extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericTypeMapping<_0>, Input] : []; type TInferType = ((TConst<'infer', Input> extends [infer _0, infer Input extends string] ? (TIdent extends [infer _1, infer Input extends string] ? (TConst<'extends', Input> extends [infer _2, infer Input extends string] ? (TExpr extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'infer', Input> extends [infer _0, infer Input extends string] ? (TIdent extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown] | [unknown, unknown], infer Input extends string] ? [TInferTypeMapping<_0>, Input] : []; type TType = (TInferType extends [infer _0, infer Input extends string] ? [_0, Input] : TExprPipe extends [infer _0, infer Input extends string] ? [_0, Input] : TExprReadonly extends [infer _0, infer Input extends string] ? [_0, Input] : TExpr extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TTypeMapping<_0>, Input] : []; type TPropertyKeyNumber = TNumber extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyNumberMapping<_0>, Input] : []; type TPropertyKeyIdent = TIdent extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyIdentMapping<_0>, Input] : []; type TPropertyKeyQuoted = TString<['\'', '"'], Input> extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyQuotedMapping<_0>, Input] : []; type TPropertyKeyIndex = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TIdent extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? ((TKeywordInteger extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNumber extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordString extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordSymbol extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _3, infer Input extends string] ? (TConst<']', Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TPropertyKeyIndexMapping<_0>, Input] : []; type TPropertyKey = (TPropertyKeyNumber extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyIdent extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyQuoted extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyIndex extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPropertyKeyMapping<_0>, Input] : []; type TReadonly = ((TConst<'readonly', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TReadonlyMapping<_0>, Input] : []; type TOptional$1 = ((TConst<'?', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TOptionalMapping<_0>, Input] : []; type TProperty = (TReadonly extends [infer _0, infer Input extends string] ? (TPropertyKey extends [infer _1, infer Input extends string] ? (TOptional$1 extends [infer _2, infer Input extends string] ? (TConst<':', Input> extends [infer _3, infer Input extends string] ? (TType extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TPropertyMapping<_0>, Input] : []; type TPropertyDelimiter = ((TConst<',', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'\n', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TPropertyDelimiterMapping<_0>, Input] : []; type TPropertyList_0 = (TPropertyDelimiter extends [infer _0, infer Input extends string] ? (TProperty extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TPropertyList_0 : [Result, Input]; type TPropertyList = ((TProperty extends [infer _0, infer Input extends string] ? (TPropertyList_0 extends [infer _1, infer Input extends string] ? ((TPropertyDelimiter extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TPropertyListMapping<_0>, Input] : []; type TProperties$1 = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TPropertyList extends [infer _1, infer Input extends string] ? (TConst<'}', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPropertiesMapping<_0>, Input] : []; type T_Object_ = TProperties$1 extends [infer _0 extends unknown, infer Input extends string] ? [T_Object_Mapping<_0>, Input] : []; type TElementNamed = ((TIdent extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _3, infer Input extends string] ? (TType extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TType extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown] | [unknown, unknown, unknown], infer Input extends string] ? [TElementNamedMapping<_0>, Input] : []; type TElementBase = (TElementNamed extends [infer _0, infer Input extends string] ? [_0, Input] : (TReadonly extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? (TOptional$1 extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown | [unknown, unknown, unknown], infer Input extends string] ? [TElementBaseMapping<_0>, Input] : []; type TElement = ((TConst<'...', Input> extends [infer _0, infer Input extends string] ? (TElementBase extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TElementBase extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TElementMapping<_0>, Input] : []; type TElementList_0 = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TElement extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TElementList_0 : [Result, Input]; type TElementList = ((TElement extends [infer _0, infer Input extends string] ? (TElementList_0 extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TElementListMapping<_0>, Input] : []; type T_Tuple_ = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TElementList extends [infer _1, infer Input extends string] ? (TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [T_Tuple_Mapping<_0>, Input] : []; type TParameterReadonlyOptional = (TIdent extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _3, infer Input extends string] ? (TType extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterReadonlyOptionalMapping<_0>, Input] : []; type TParameterReadonly = (TIdent extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterReadonlyMapping<_0>, Input] : []; type TParameterOptional = (TIdent extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterOptionalMapping<_0>, Input] : []; type TParameterType = (TIdent extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TType extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TParameterTypeMapping<_0>, Input] : []; type TParameterBase = (TParameterReadonlyOptional extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterReadonly extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterOptional extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterType extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TParameterBaseMapping<_0>, Input] : []; type TParameter = ((TConst<'...', Input> extends [infer _0, infer Input extends string] ? (TParameterBase extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TParameterBase extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TParameterMapping<_0>, Input] : []; type TParameterList_0 = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TParameter extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TParameterList_0 : [Result, Input]; type TParameterList = ((TParameter extends [infer _0, infer Input extends string] ? (TParameterList_0 extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TParameterListMapping<_0>, Input] : []; type T_Function_ = (TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TParameterList extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? (TConst<'=>', Input> extends [infer _3, infer Input extends string] ? (TType extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Function_Mapping<_0>, Input] : []; type T_Constructor_ = (TConst<'new', Input> extends [infer _0, infer Input extends string] ? (TConst<'(', Input> extends [infer _1, infer Input extends string] ? (TParameterList extends [infer _2, infer Input extends string] ? (TConst<')', Input> extends [infer _3, infer Input extends string] ? (TConst<'=>', Input> extends [infer _4, infer Input extends string] ? (TType extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Constructor_Mapping<_0>, Input] : []; type TMappedReadonly = ((TConst<'+', Input> extends [infer _0, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'-', Input> extends [infer _0, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'readonly', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown] | [], infer Input extends string] ? [TMappedReadonlyMapping<_0>, Input] : []; type TMappedOptional = ((TConst<'+', Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'-', Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'?', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown] | [], infer Input extends string] ? [TMappedOptionalMapping<_0>, Input] : []; type TMappedAs = ((TConst<'as', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [TMappedAsMapping<_0>, Input] : []; type T_Mapped_ = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TMappedReadonly extends [infer _1, infer Input extends string] ? (TConst<'[', Input> extends [infer _2, infer Input extends string] ? (TIdent extends [infer _3, infer Input extends string] ? (TConst<'in', Input> extends [infer _4, infer Input extends string] ? (TType extends [infer _5, infer Input extends string] ? (TMappedAs extends [infer _6, infer Input extends string] ? (TConst<']', Input> extends [infer _7, infer Input extends string] ? (TMappedOptional extends [infer _8, infer Input extends string] ? (TConst<':', Input> extends [infer _9, infer Input extends string] ? (TType extends [infer _10, infer Input extends string] ? (TOptionalSemiColon extends [infer _11, infer Input extends string] ? (TConst<'}', Input> extends [infer _12, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12], Input] : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Mapped_Mapping<_0>, Input] : []; type TReference = TIdent extends [infer _0 extends string, infer Input extends string] ? [TReferenceMapping<_0>, Input] : []; type TWithBigInt = TBigInt extends [infer _0 extends string, infer Input extends string] ? [TWithBigIntMapping<_0>, Input] : []; type TWithNumber = TNumber extends [infer _0 extends string, infer Input extends string] ? [TWithNumberMapping<_0>, Input] : []; type TWithBoolean = (TConst<'true', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TConst<'false', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends 'true' | 'false', infer Input extends string] ? [TWithBooleanMapping<_0>, Input] : []; type TWithString = TString<['"', '\''], Input> extends [infer _0 extends string, infer Input extends string] ? [TWithStringMapping<_0>, Input] : []; type TWithNull = TConst<'null', Input> extends [infer _0 extends 'null', infer Input extends string] ? [TWithNullMapping<_0>, Input] : []; type TWithUndefined = TConst<'undefined', Input> extends [infer _0 extends 'undefined', infer Input extends string] ? [TWithUndefinedMapping<_0>, Input] : []; type TWithProperty = (TPropertyKey extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TWithValue extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TWithPropertyMapping<_0>, Input] : []; type TWithPropertyList_0 = (TPropertyDelimiter extends [infer _0, infer Input extends string] ? (TWithProperty extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithPropertyList_0 : [Result, Input]; type TWithPropertyList = ((TWithProperty extends [infer _0, infer Input extends string] ? (TWithPropertyList_0 extends [infer _1, infer Input extends string] ? ((TPropertyDelimiter extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TWithPropertyListMapping<_0>, Input] : []; type TWithObject = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TWithPropertyList extends [infer _1, infer Input extends string] ? (TConst<'}', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TWithObjectMapping<_0>, Input] : []; type TWithElementList_0 = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TWithValue extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithElementList_0 : [Result, Input]; type TWithElementList = ((TWithValue extends [infer _0, infer Input extends string] ? (TWithElementList_0 extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TWithElementListMapping<_0>, Input] : []; type TWithArray = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TWithElementList extends [infer _1, infer Input extends string] ? (TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TWithArrayMapping<_0>, Input] : []; type TWithValue = (TWithBigInt extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNumber extends [infer _0, infer Input extends string] ? [_0, Input] : TWithBoolean extends [infer _0, infer Input extends string] ? [_0, Input] : TWithString extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNull extends [infer _0, infer Input extends string] ? [_0, Input] : TWithUndefined extends [infer _0, infer Input extends string] ? [_0, Input] : TWithObject extends [infer _0, infer Input extends string] ? [_0, Input] : TWithArray extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TWithValueMapping<_0>, Input] : []; type TPatternBigInt = TConst<'-?(?:0|[1-9][0-9]*)n', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)n', infer Input extends string] ? [TPatternBigIntMapping<_0>, Input] : []; type TPatternString = TConst<'.*', Input> extends [infer _0 extends '.*', infer Input extends string] ? [TPatternStringMapping<_0>, Input] : []; type TPatternNumber = TConst<'-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', infer Input extends string] ? [TPatternNumberMapping<_0>, Input] : []; type TPatternInteger = TConst<'-?(?:0|[1-9][0-9]*)', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)', infer Input extends string] ? [TPatternIntegerMapping<_0>, Input] : []; type TPatternNever = TConst<'(?!)', Input> extends [infer _0 extends '(?!)', infer Input extends string] ? [TPatternNeverMapping<_0>, Input] : []; type TPatternText = TUntil_1<['-?(?:0|[1-9][0-9]*)n', '.*', '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', '-?(?:0|[1-9][0-9]*)', '(?!)', '(', ')', '$', '|'], Input> extends [infer _0 extends string, infer Input extends string] ? [TPatternTextMapping<_0>, Input] : []; type TPatternBase = (TPatternBigInt extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternString extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternNumber extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternInteger extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternNever extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternGroup extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternText extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPatternBaseMapping<_0>, Input] : []; type TPatternGroup = (TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TPatternBody extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPatternGroupMapping<_0>, Input] : []; type TPatternUnion = ((TPatternTerm extends [infer _0, infer Input extends string] ? (TConst<'|', Input> extends [infer _1, infer Input extends string] ? (TPatternUnion extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TPatternTerm extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [unknown] | [], infer Input extends string] ? [TPatternUnionMapping<_0>, Input] : []; type TPatternTerm = (TPatternBase extends [infer _0, infer Input extends string] ? (TPatternBody extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TPatternTermMapping<_0>, Input] : []; type TPatternBody = (TPatternUnion extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternTerm extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPatternBodyMapping<_0>, Input] : []; type TPattern = (TConst<'^', Input> extends [infer _0, infer Input extends string] ? (TPatternBody extends [infer _1, infer Input extends string] ? (TConst<'$', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPatternMapping<_0>, Input] : []; type TInterfaceDeclarationHeritageList_0 = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TType extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TInterfaceDeclarationHeritageList_0 : [Result, Input]; type TInterfaceDeclarationHeritageList = ((TType extends [infer _0, infer Input extends string] ? (TInterfaceDeclarationHeritageList_0 extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TInterfaceDeclarationHeritageListMapping<_0>, Input] : []; type TInterfaceDeclarationHeritage = ((TConst<'extends', Input> extends [infer _0, infer Input extends string] ? (TInterfaceDeclarationHeritageList extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [TInterfaceDeclarationHeritageMapping<_0>, Input] : []; type TInterfaceDeclarationGeneric = (TConst<'interface', Input> extends [infer _0, infer Input extends string] ? (TIdent extends [infer _1, infer Input extends string] ? (TGenericParameters extends [infer _2, infer Input extends string] ? (TInterfaceDeclarationHeritage extends [infer _3, infer Input extends string] ? (TProperties$1 extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TInterfaceDeclarationGenericMapping<_0>, Input] : []; type TInterfaceDeclaration = (TConst<'interface', Input> extends [infer _0, infer Input extends string] ? (TIdent extends [infer _1, infer Input extends string] ? (TInterfaceDeclarationHeritage extends [infer _2, infer Input extends string] ? (TProperties$1 extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TInterfaceDeclarationMapping<_0>, Input] : []; type TTypeAliasDeclarationGeneric = (TConst<'type', Input> extends [infer _0, infer Input extends string] ? (TIdent extends [infer _1, infer Input extends string] ? (TGenericParameters extends [infer _2, infer Input extends string] ? (TConst<'=', Input> extends [infer _3, infer Input extends string] ? (TType extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TTypeAliasDeclarationGenericMapping<_0>, Input] : []; type TTypeAliasDeclaration = (TConst<'type', Input> extends [infer _0, infer Input extends string] ? (TIdent extends [infer _1, infer Input extends string] ? (TConst<'=', Input> extends [infer _2, infer Input extends string] ? (TType extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TTypeAliasDeclarationMapping<_0>, Input] : []; type TExportKeyword = ((TConst<'export', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TExportKeywordMapping<_0>, Input] : []; type TModuleDeclarationDelimiter = ((TConst<';', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'\n', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TModuleDeclarationDelimiterMapping<_0>, Input] : []; type TModuleDeclarationList_0 = (TModuleDeclarationDelimiter extends [infer _0, infer Input extends string] ? (TModuleDeclaration extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TModuleDeclarationList_0 : [Result, Input]; type TModuleDeclarationList = ((TModuleDeclaration extends [infer _0, infer Input extends string] ? (TModuleDeclarationList_0 extends [infer _1, infer Input extends string] ? ((TModuleDeclarationDelimiter extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TModuleDeclarationListMapping<_0>, Input] : []; type TModuleDeclaration = (TExportKeyword extends [infer _0, infer Input extends string] ? ((TInterfaceDeclarationGeneric extends [infer _0, infer Input extends string] ? [_0, Input] : TInterfaceDeclaration extends [infer _0, infer Input extends string] ? [_0, Input] : TTypeAliasDeclarationGeneric extends [infer _0, infer Input extends string] ? [_0, Input] : TTypeAliasDeclaration extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _1, infer Input extends string] ? (TOptionalSemiColon extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TModuleDeclarationMapping<_0>, Input] : []; type TModule$1 = (TModuleDeclaration extends [infer _0, infer Input extends string] ? (TModuleDeclarationList extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TModuleMapping<_0>, Input] : []; type TScript$1 = (TModule$1 extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericType extends [infer _0, infer Input extends string] ? [_0, Input] : TType extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TScriptMapping<_0>, Input] : []; declare const GenericParameterExtendsEquals: (input: string) => [unknown, string] | []; declare const GenericParameterExtends: (input: string) => [unknown, string] | []; declare const GenericParameterEquals: (input: string) => [unknown, string] | []; declare const GenericParameterIdentifier: (input: string) => [unknown, string] | []; declare const GenericParameter: (input: string) => [unknown, string] | []; declare const GenericParameterList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const GenericParameterList: (input: string) => [unknown, string] | []; declare const GenericParameters: (input: string) => [unknown, string] | []; declare const GenericCallArgumentList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const GenericCallArgumentList: (input: string) => [unknown, string] | []; declare const GenericCallArguments: (input: string) => [unknown, string] | []; declare const GenericCall: (input: string) => [unknown, string] | []; declare const OptionalSemiColon: (input: string) => [unknown, string] | []; declare const KeywordString: (input: string) => [unknown, string] | []; declare const KeywordNumber: (input: string) => [unknown, string] | []; declare const KeywordBoolean: (input: string) => [unknown, string] | []; declare const KeywordUndefined: (input: string) => [unknown, string] | []; declare const KeywordNull: (input: string) => [unknown, string] | []; declare const KeywordInteger: (input: string) => [unknown, string] | []; declare const KeywordBigInt: (input: string) => [unknown, string] | []; declare const KeywordUnknown: (input: string) => [unknown, string] | []; declare const KeywordAny: (input: string) => [unknown, string] | []; declare const KeywordObject: (input: string) => [unknown, string] | []; declare const KeywordNever: (input: string) => [unknown, string] | []; declare const KeywordSymbol: (input: string) => [unknown, string] | []; declare const KeywordVoid: (input: string) => [unknown, string] | []; declare const KeywordThis: (input: string) => [unknown, string] | []; declare const TemplateInterpolate: (input: string) => [unknown, string] | []; declare const TemplateSpan: (input: string) => [unknown, string] | []; declare const TemplateBody: (input: string) => [unknown, string] | []; declare const TemplateLiteralTypes: (input: string) => [unknown, string] | []; declare const TemplateLiteral$1: (input: string) => [unknown, string] | []; declare const Dependent: (input: string) => [unknown, string] | []; declare const LiteralBigInt: (input: string) => [unknown, string] | []; declare const LiteralBoolean: (input: string) => [unknown, string] | []; declare const LiteralNumber: (input: string) => [unknown, string] | []; declare const LiteralString: (input: string) => [unknown, string] | []; declare const KeyOf$1: (input: string) => [unknown, string] | []; declare const IndexArray_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const IndexArray: (input: string) => [unknown, string] | []; declare const Extends$1: (input: string) => [unknown, string] | []; declare const Base: (input: string) => [unknown, string] | []; declare const With$1: (input: string) => [unknown, string] | []; declare const Factor: (input: string) => [unknown, string] | []; declare const ExprTermTail: (input: string) => [unknown, string] | []; declare const ExprTerm: (input: string) => [unknown, string] | []; declare const ExprTail: (input: string) => [unknown, string] | []; declare const Expr: (input: string) => [unknown, string] | []; declare const ExprReadonly: (input: string) => [unknown, string] | []; declare const ExprPipe: (input: string) => [unknown, string] | []; declare const GenericType: (input: string) => [unknown, string] | []; declare const InferType: (input: string) => [unknown, string] | []; declare const Type: (input: string) => [unknown, string] | []; declare const PropertyKeyNumber: (input: string) => [unknown, string] | []; declare const PropertyKeyIdent: (input: string) => [unknown, string] | []; declare const PropertyKeyQuoted: (input: string) => [unknown, string] | []; declare const PropertyKeyIndex: (input: string) => [unknown, string] | []; declare const PropertyKey$1: (input: string) => [unknown, string] | []; declare const Readonly$1: (input: string) => [unknown, string] | []; declare const Optional$1: (input: string) => [unknown, string] | []; declare const Property: (input: string) => [unknown, string] | []; declare const PropertyDelimiter: (input: string) => [unknown, string] | []; declare const PropertyList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const PropertyList: (input: string) => [unknown, string] | []; declare const Properties: (input: string) => [unknown, string] | []; declare const _Object_: (input: string) => [unknown, string] | []; declare const ElementNamed: (input: string) => [unknown, string] | []; declare const ElementBase: (input: string) => [unknown, string] | []; declare const Element: (input: string) => [unknown, string] | []; declare const ElementList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const ElementList: (input: string) => [unknown, string] | []; declare const _Tuple_: (input: string) => [unknown, string] | []; declare const ParameterReadonlyOptional: (input: string) => [unknown, string] | []; declare const ParameterReadonly: (input: string) => [unknown, string] | []; declare const ParameterOptional: (input: string) => [unknown, string] | []; declare const ParameterType: (input: string) => [unknown, string] | []; declare const ParameterBase: (input: string) => [unknown, string] | []; declare const Parameter: (input: string) => [unknown, string] | []; declare const ParameterList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const ParameterList: (input: string) => [unknown, string] | []; declare const _Function_$1: (input: string) => [unknown, string] | []; declare const _Constructor_: (input: string) => [unknown, string] | []; declare const MappedReadonly: (input: string) => [unknown, string] | []; declare const MappedOptional: (input: string) => [unknown, string] | []; declare const MappedAs: (input: string) => [unknown, string] | []; declare const _Mapped_: (input: string) => [unknown, string] | []; declare const Reference: (input: string) => [unknown, string] | []; declare const WithBigInt: (input: string) => [unknown, string] | []; declare const WithNumber: (input: string) => [unknown, string] | []; declare const WithBoolean: (input: string) => [unknown, string] | []; declare const WithString: (input: string) => [unknown, string] | []; declare const WithNull: (input: string) => [unknown, string] | []; declare const WithUndefined: (input: string) => [unknown, string] | []; declare const WithProperty: (input: string) => [unknown, string] | []; declare const WithPropertyList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const WithPropertyList: (input: string) => [unknown, string] | []; declare const WithObject: (input: string) => [unknown, string] | []; declare const WithElementList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const WithElementList: (input: string) => [unknown, string] | []; declare const WithArray: (input: string) => [unknown, string] | []; declare const WithValue: (input: string) => [unknown, string] | []; declare const PatternBigInt: (input: string) => [unknown, string] | []; declare const PatternString: (input: string) => [unknown, string] | []; declare const PatternNumber: (input: string) => [unknown, string] | []; declare const PatternInteger: (input: string) => [unknown, string] | []; declare const PatternNever: (input: string) => [unknown, string] | []; declare const PatternText: (input: string) => [unknown, string] | []; declare const PatternBase: (input: string) => [unknown, string] | []; declare const PatternGroup: (input: string) => [unknown, string] | []; declare const PatternUnion: (input: string) => [unknown, string] | []; declare const PatternTerm: (input: string) => [unknown, string] | []; declare const PatternBody: (input: string) => [unknown, string] | []; declare const Pattern: (input: string) => [unknown, string] | []; declare const InterfaceDeclarationHeritageList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const InterfaceDeclarationHeritageList: (input: string) => [unknown, string] | []; declare const InterfaceDeclarationHeritage: (input: string) => [unknown, string] | []; declare const InterfaceDeclarationGeneric: (input: string) => [unknown, string] | []; declare const InterfaceDeclaration: (input: string) => [unknown, string] | []; declare const TypeAliasDeclarationGeneric: (input: string) => [unknown, string] | []; declare const TypeAliasDeclaration: (input: string) => [unknown, string] | []; declare const ExportKeyword: (input: string) => [unknown, string] | []; declare const ModuleDeclarationDelimiter: (input: string) => [unknown, string] | []; declare const ModuleDeclarationList_0: (input: string, result?: unknown[]) => [unknown[], string]; declare const ModuleDeclarationList: (input: string) => [unknown, string] | []; declare const ModuleDeclaration: (input: string) => [unknown, string] | []; declare const Module$1: (input: string) => [unknown, string] | []; declare const Script$1: (input: string) => [unknown, string] | []; /** Parses a Template into TemplateLiteral types */ export type TParseTemplateIntoTypes