export type { SchemaNode, SchemaKind, ParseResult, ValidationIssue, AnyValiDocument, ExportMode, UnknownKeyMode, CoercionConfig, StringFormat, ParseContext, ParseOptions, MetadataOptions, DescribeOptions, SensitiveTransform, } from "./types.js"; export { ISSUE_CODES } from "./issue-codes.js"; export type { IssueCode } from "./issue-codes.js"; export type { SchemaAny, Infer, InferInput } from "./infer.js"; export { ValidationError } from "./errors.js"; export { encrypt, decrypt, safeParseEncrypted } from "./sensitive.js"; export { BaseSchema, ABSENT, StringSchema, NumberSchema, Float32Schema, Float64Schema, IntSchema, Int8Schema, Int16Schema, Int32Schema, Int64Schema, Uint8Schema, Uint16Schema, Uint32Schema, Uint64Schema, BoolSchema, NullSchema, AnySchema, UnknownSchema, NeverSchema, LiteralSchema, EnumSchema, ArraySchema, TupleSchema, ObjectSchema, RecordSchema, UnionSchema, IntersectionSchema, OptionalSchema, NullableSchema, RefSchema, } from "./schemas/index.js"; import { StringSchema } from "./schemas/string.js"; import { NumberSchema, Float32Schema, Float64Schema } from "./schemas/number.js"; import { IntSchema, Int8Schema, Int16Schema, Int32Schema, Int64Schema, Uint8Schema, Uint16Schema, Uint32Schema, Uint64Schema } from "./schemas/int.js"; import { BoolSchema } from "./schemas/bool.js"; import { NullSchema } from "./schemas/null.js"; import { AnySchema } from "./schemas/any.js"; import { UnknownSchema } from "./schemas/unknown.js"; import { NeverSchema } from "./schemas/never.js"; import { LiteralSchema } from "./schemas/literal.js"; import { EnumSchema } from "./schemas/enum.js"; import { ArraySchema } from "./schemas/array.js"; import { TupleSchema } from "./schemas/tuple.js"; import { ObjectSchema } from "./schemas/object.js"; import { RecordSchema } from "./schemas/record.js"; import { UnionSchema } from "./schemas/union.js"; import { IntersectionSchema } from "./schemas/intersection.js"; import { OptionalSchema } from "./schemas/optional.js"; import { NullableSchema } from "./schemas/nullable.js"; import { BaseSchema } from "./schemas/base.js"; import type { UnknownKeyMode, ParseResult, ParseOptions, AnyValiDocument, ExportMode } from "./types.js"; /** Create a string schema */ export declare function string(): StringSchema; /** Create a number (float64) schema */ export declare function number(): NumberSchema; /** Create a float32 schema */ export declare function float32(): Float32Schema; /** Create a float64 schema */ export declare function float64(): Float64Schema; /** Create an int (int64) schema */ export declare function int(): IntSchema; /** Create an int8 schema */ export declare function int8(): Int8Schema; /** Create an int16 schema */ export declare function int16(): Int16Schema; /** Create an int32 schema */ export declare function int32(): Int32Schema; /** Create an int64 schema */ export declare function int64(): Int64Schema; /** Create a uint8 schema */ export declare function uint8(): Uint8Schema; /** Create a uint16 schema */ export declare function uint16(): Uint16Schema; /** Create a uint32 schema */ export declare function uint32(): Uint32Schema; /** Create a uint64 schema */ export declare function uint64(): Uint64Schema; /** Create a boolean schema */ export declare function bool(): BoolSchema; /** Create a null schema. Named null_ to avoid conflict with the null keyword. */ export declare function null_(): NullSchema; /** Create an any schema */ export declare function any(): AnySchema; /** Create an unknown schema */ export declare function unknown(): UnknownSchema; /** Create a never schema */ export declare function never(): NeverSchema; /** Create a literal schema */ export declare function literal(value: T): LiteralSchema; /** Create an enum schema. Named enum_ to avoid conflict with the enum keyword. */ export declare function enum_(values: T): EnumSchema; /** Create an array schema */ export declare function array>(items: T): ArraySchema; /** Create a tuple schema */ export declare function tuple[]>(items: [...T]): TupleSchema; /** Create an object schema */ export declare function object>>(shape: T, options?: { unknownKeys?: UnknownKeyMode; }): ObjectSchema; /** Create a record schema */ export declare function record>(valueSchema: T): RecordSchema; /** Create a union schema */ export declare function union[]>(variants: [...T]): UnionSchema; /** Create an intersection schema */ export declare function intersection[]>(schemas: [...T]): IntersectionSchema; /** Wrap a schema as optional */ export declare function optional>(schema: T): OptionalSchema; /** Wrap a schema as nullable */ export declare function nullable>(schema: T): NullableSchema; /** Parse input using the given schema. Throws ValidationError on failure. */ export declare function parse(schema: BaseSchema, input: unknown, options?: ParseOptions): T; /** Parse input using the given schema. Returns a result object. */ export declare function safeParse(schema: BaseSchema, input: unknown, options?: ParseOptions): ParseResult; /** Export a schema to an AnyValiDocument */ export declare function exportSchema(schema: BaseSchema, mode?: ExportMode): AnyValiDocument; /** Import an AnyValiDocument to a live schema */ export declare function importSchema(doc: AnyValiDocument): BaseSchema; //# sourceMappingURL=index.d.ts.map