/* MAIN - REGISTRY */ type RegistrySchemas = { and: typeof import ( './nodes/and' ).default, any: typeof import ( './nodes/any' ).default, array: typeof import ( './nodes/array' ).default, bigint: typeof import ( './nodes/bigint' ).default, boolean: typeof import ( './nodes/boolean' ).default, nillable: typeof import ( './nodes/nillable' ).default, null: typeof import ( './nodes/null' ).default, nullable: typeof import ( './nodes/nullable' ).default, number: typeof import ( './nodes/number' ).default, object: typeof import ( './nodes/object' ).default, optional: typeof import ( './nodes/optional' ).default, or: typeof import ( './nodes/or' ).default, record: typeof import ( './nodes/record' ).default, string: typeof import ( './nodes/string' ).default, symbol: typeof import ( './nodes/symbol' ).default, tuple: typeof import ( './nodes/tuple' ).default, undefined: typeof import ( './nodes/undefined' ).default, unknown: typeof import ( './nodes/unknown' ).default }; /* MAIN - STATE */ type AbstractState = { default?: FullType, description?: string, title?: string }; type AndState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, options: Schema[] }; type AnyState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe }; type ArrayState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, items?: FunctionMaybe>, max?: FunctionMaybe, min?: FunctionMaybe }; type BigIntState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, gt?: FunctionMaybe, gte?: FunctionMaybe, lt?: FunctionMaybe, lte?: FunctionMaybe, multipleOf?: FunctionMaybe }; type BooleanState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe }; type NillableState = AbstractState & { nillable: Schema }; type NullState = AbstractState; type NullableState = AbstractState & { nullable: Schema }; type NumberState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, finite?: true, gt?: FunctionMaybe, gte?: FunctionMaybe, integer?: true, lt?: FunctionMaybe, lte?: FunctionMaybe, multipleOf?: FunctionMaybe }; type ObjectState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, properties?: FunctionMaybe>> }; type OptionalState = AbstractState & { optional: Schema }; type OrState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, options: Schema[] }; type RecordState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, keys?: FunctionMaybe>, values?: FunctionMaybe> }; type StringState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, matches?: (( value: string ) => boolean) | RegExp, max?: FunctionMaybe, min?: FunctionMaybe }; type SymbolState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe }; type TupleState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe, items?: FunctionMaybe[]>, length?: FunctionMaybe }; type UndefinedState = AbstractState; type UnknownState = AbstractState & { anyOf?: FunctionMaybe, noneOf?: FunctionMaybe }; /* MAIN - GENERALS */ type FunctionMaybe = T | (() => T); type Infer = T extends { test: ( value: unknown ) => value is infer U } ? U : never; type Schema = { filter ( value: unknown, defaultable: false, quiet: true ): boolean, filter ( value: unknown, defaultable?: boolean, quiet?: false ): T, filter ( value: unknown, defaultable?: boolean, quiet?: boolean ): T | boolean, get (): AbstractState, get ( key: 'default' ): T | undefined, get ( key: 'description' ): string | undefined, get ( key: 'title' ): string | undefined, get ( key?: string ): unknown, test ( value: unknown ): value is T, traverse ( traverser: Traverser, parent?: Schema, property?: string | number ): void }; type Tests = { [K in keyof State]: ( value: BaseType, stateValue: NonNullable ) => boolean }; type Traverser = ( child: Schema, parent?: Schema, key?: string | number ) => void; /* EXPORT */ export type {RegistrySchemas}; export type {AbstractState, AndState, AnyState, ArrayState, BigIntState, BooleanState, NillableState, NullState, NullableState, NumberState, ObjectState, OrState, OptionalState, RecordState, StringState, SymbolState, TupleState, UndefinedState, UnknownState}; export type {FunctionMaybe, Infer, Schema, Tests, Traverser};