import { ZodString, ZodStringDef } from './types/string'; import { ZodNumber, ZodNumberDef } from './types/number'; import { ZodBigInt, ZodBigIntDef } from './types/bigint'; import { ZodBoolean, ZodBooleanDef } from './types/boolean'; import { ZodDate, ZodDateDef } from './types/date'; import { ZodUndefined, ZodUndefinedDef } from './types/undefined'; import { ZodNull, ZodNullDef } from './types/null'; import { ZodAny, ZodAnyDef } from './types/any'; import { ZodUnknown, ZodUnknownDef } from './types/unknown'; import { ZodNever, ZodNeverDef } from './types/never'; import { ZodVoid, ZodVoidDef } from './types/void'; import { ZodArray, ZodArrayDef } from './types/array'; import { ZodObject, ZodObjectDef } from './types/object'; import { ZodUnion, ZodUnionDef } from './types/union'; import { ZodIntersection, ZodIntersectionDef } from './types/intersection'; import { ZodTuple, ZodTupleDef } from './types/tuple'; import { ZodRecord, ZodRecordDef } from './types/record'; import { ZodFunction, ZodFunctionDef } from './types/function'; import { ZodLazy, ZodLazyDef } from './types/lazy'; import { ZodLiteral, ZodLiteralDef } from './types/literal'; import { ZodEnum, ZodEnumDef } from './types/enum'; import { ZodNativeEnum, ZodNativeEnumDef } from './types/nativeEnum'; import { ZodPromise, ZodPromiseDef } from './types/promise'; import { ZodTransformer, ZodTransformerDef } from './types/transformer'; import { ZodOptional, ZodOptionalDef } from './types/optional'; import { ZodNullable, ZodNullableDef } from './types/nullable'; import { TypeOf, input, output, ZodType, ZodTypeAny, ZodTypeDef, ZodTypes } from './types/base'; import { ZodParsedType } from './parser'; import { ZodErrorMap } from './defaultErrorMap'; import { ZodCodeGenerator } from './codegen'; export { ZodTypeDef, ZodTypes }; declare type ZodDef = ZodStringDef | ZodNumberDef | ZodBigIntDef | ZodBooleanDef | ZodDateDef | ZodUndefinedDef | ZodNullDef | ZodAnyDef | ZodUnknownDef | ZodNeverDef | ZodVoidDef | ZodArrayDef | ZodObjectDef | ZodUnionDef | ZodIntersectionDef | ZodTupleDef | ZodRecordDef | ZodFunctionDef | ZodLazyDef | ZodLiteralDef | ZodEnumDef | ZodTransformerDef | ZodNativeEnumDef | ZodOptionalDef | ZodNullableDef | ZodPromiseDef; declare const stringType: () => ZodString; declare const numberType: () => ZodNumber; declare const bigIntType: () => ZodBigInt; declare const booleanType: () => ZodBoolean; declare const dateType: () => ZodDate; declare const undefinedType: () => ZodUndefined; declare const nullType: () => ZodNull; declare const anyType: () => ZodAny; declare const unknownType: () => ZodUnknown; declare const neverType: () => ZodNever; declare const voidType: () => ZodVoid; declare const arrayType: (schema: T) => ZodArray; declare const objectType: (shape: T) => ZodObject]: import("./helpers/objectUtil").objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>[k_1]; }, { [k_3 in keyof import("./helpers/objectUtil").objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: import("./helpers/objectUtil").objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>[k_3]; }>; declare const unionType: (types: T) => ZodUnion; declare const intersectionType: (left: T, right: U) => ZodIntersection; declare const tupleType: (schemas: T) => ZodTuple; declare const recordType: (valueType: Value) => ZodRecord; declare const functionType: = ZodTuple<[]>, U extends ZodTypeAny = ZodUnknown>(args?: T | undefined, returns?: U | undefined) => ZodFunction; declare const lazyType: (getter: () => T) => ZodLazy; declare const literalType: (value: T) => ZodLiteral; declare const enumType: (values: T) => ZodEnum; declare const nativeEnumType: (values: T) => ZodNativeEnum; declare const promiseType: (schema: T) => ZodPromise; declare const transformerType: (input: I, output: O, transformer: (arg: I["_output"]) => O["_input"] | Promise) => ZodTransformer; declare const optionalType: (type: T) => import("./types/optional").ZodOptionalType; declare const nullableType: (type: T) => import("./types/nullable").ZodNullableType; declare const ostring: () => ZodOptional; declare const onumber: () => ZodOptional; declare const oboolean: () => ZodOptional; declare const codegen: () => ZodCodeGenerator; export declare const custom: (check: (data: unknown) => any, params?: string | Partial> | ((arg: any) => Partial>) | undefined) => ZodType; declare const instanceOfType: any>(cls: T, params?: string | Partial> | ((arg: any) => Partial>) | undefined) => ZodType, ZodTypeDef, InstanceType>; export { stringType as string, numberType as number, bigIntType as bigint, booleanType as boolean, dateType as date, undefinedType as undefined, nullType as null, anyType as any, unknownType as unknown, neverType as never, voidType as void, arrayType as array, objectType as object, unionType as union, intersectionType as intersection, tupleType as tuple, recordType as record, functionType as function, lazyType as lazy, literalType as literal, enumType as enum, nativeEnumType as nativeEnum, promiseType as promise, instanceOfType as instanceof, transformerType as transformer, optionalType as optional, nullableType as nullable, ostring, onumber, oboolean, codegen, }; export declare const late: { object: (shape: () => T) => ZodObject]: import("./helpers/objectUtil").objectUtil.addQuestionMarks<{ [k in keyof T]: T[k]["_output"]; }>[k_1]; }, { [k_3 in keyof import("./helpers/objectUtil").objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>]: import("./helpers/objectUtil").objectUtil.addQuestionMarks<{ [k_2 in keyof T]: T[k_2]["_input"]; }>[k_3]; }>; }; export { ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, ZodIntersection, ZodTuple, ZodRecord, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodTransformer, ZodOptional, ZodNullable, ZodType, ZodType as Schema, ZodType as ZodSchema, ZodTypeAny, ZodDef, ZodErrorMap, ZodParsedType, ZodCodeGenerator, }; export { TypeOf, TypeOf as infer, input, output }; export * from './ZodError';