declare type Primitive = string | number | symbol | bigint | boolean | null | undefined; declare type Scalars = Primitive | Primitive[]; declare namespace util { type AssertEqual = (() => V extends T ? 1 : 2) extends () => V extends U ? 1 : 2 ? true : false; export const assertEqual: (val: AssertEqual) => AssertEqual; export function assertIs(_arg: T): void; export function assertNever(_x: never): never; export type Omit = Pick>; export type OmitKeys = Pick>; export type MakePartial = Omit & Partial>; export const arrayToEnum: (items: U) => { [k in U[number]]: k; }; export const getValidEnumValues: (obj: any) => any[]; export const objectValues: (obj: any) => any[]; export const objectKeys: ObjectConstructor["keys"]; export const find: (arr: T[], checker: (arg: T) => any) => T | undefined; export type identity = T; export type flatten = identity<{ [k in keyof T]: T[k]; }>; export type noUndefined = T extends undefined ? never : T; export const isInteger: NumberConstructor["isInteger"]; export function joinValues(array: T, separator?: string): string; export const jsonStringifyReplacer: (_: string, value: any) => any; export {}; } declare const ZodParsedType: { function: "function"; number: "number"; string: "string"; nan: "nan"; integer: "integer"; float: "float"; boolean: "boolean"; date: "date"; bigint: "bigint"; symbol: "symbol"; undefined: "undefined"; null: "null"; array: "array"; object: "object"; unknown: "unknown"; promise: "promise"; void: "void"; never: "never"; map: "map"; set: "set"; }; declare type ZodParsedType = keyof typeof ZodParsedType; declare const getParsedType: (data: any) => ZodParsedType; declare type allKeys = T extends any ? keyof T : never; declare type inferFlattenedErrors, U = string> = typeToFlattenedError, U>; declare type typeToFlattenedError = { formErrors: U[]; fieldErrors: { [P in allKeys]?: U[]; }; }; declare const ZodIssueCode: { invalid_type: "invalid_type"; invalid_literal: "invalid_literal"; custom: "custom"; invalid_union: "invalid_union"; invalid_union_discriminator: "invalid_union_discriminator"; invalid_enum_value: "invalid_enum_value"; unrecognized_keys: "unrecognized_keys"; invalid_arguments: "invalid_arguments"; invalid_return_type: "invalid_return_type"; invalid_date: "invalid_date"; invalid_string: "invalid_string"; too_small: "too_small"; too_big: "too_big"; invalid_intersection_types: "invalid_intersection_types"; not_multiple_of: "not_multiple_of"; not_finite: "not_finite"; }; declare type ZodIssueCode = keyof typeof ZodIssueCode; declare type ZodIssueBase = { path: (string | number)[]; message?: string; }; interface ZodInvalidTypeIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_type; expected: ZodParsedType; received: ZodParsedType; } interface ZodInvalidLiteralIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_literal; expected: unknown; received: unknown; } interface ZodUnrecognizedKeysIssue extends ZodIssueBase { code: typeof ZodIssueCode.unrecognized_keys; keys: string[]; } interface ZodInvalidUnionIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_union; unionErrors: ZodError[]; } interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_union_discriminator; options: Primitive[]; } interface ZodInvalidEnumValueIssue extends ZodIssueBase { received: string | number; code: typeof ZodIssueCode.invalid_enum_value; options: (string | number)[]; } interface ZodInvalidArgumentsIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_arguments; argumentsError: ZodError; } interface ZodInvalidReturnTypeIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_return_type; returnTypeError: ZodError; } interface ZodInvalidDateIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_date; } declare type StringValidation = "email" | "url" | "uuid" | "regex" | "cuid" | "cuid2" | "datetime" | { startsWith: string; } | { endsWith: string; }; interface ZodInvalidStringIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_string; validation: StringValidation; } interface ZodTooSmallIssue extends ZodIssueBase { code: typeof ZodIssueCode.too_small; minimum: number; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date"; } interface ZodTooBigIssue extends ZodIssueBase { code: typeof ZodIssueCode.too_big; maximum: number; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date"; } interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_intersection_types; } interface ZodNotMultipleOfIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_multiple_of; multipleOf: number; } interface ZodNotFiniteIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_finite; } interface ZodCustomIssue extends ZodIssueBase { code: typeof ZodIssueCode.custom; params?: { [k: string]: any; }; } declare type DenormalizedError = { [k: string]: DenormalizedError | string[]; }; declare type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue; declare type ZodIssue = ZodIssueOptionalMessage & { fatal?: boolean; message: string; }; declare const quotelessJson: (obj: any) => string; declare type ZodFormattedError = { _errors: U[]; } & (NonNullable extends [any, ...any[]] ? { [K in keyof NonNullable]?: ZodFormattedError[K], U>; } : NonNullable extends any[] ? { [k: number]: ZodFormattedError[number], U>; } : NonNullable extends object ? { [K in keyof NonNullable]?: ZodFormattedError[K], U>; } : unknown); declare type inferFormattedError, U = string> = ZodFormattedError, U>; declare class ZodError extends Error { issues: ZodIssue[]; get errors(): ZodIssue[]; constructor(issues: ZodIssue[]); format(): ZodFormattedError; format(mapper: (issue: ZodIssue) => U): ZodFormattedError; static create: (issues: ZodIssue[]) => ZodError; toString(): string; get message(): string; get isEmpty(): boolean; addIssue: (sub: ZodIssue) => void; addIssues: (subs?: ZodIssue[]) => void; flatten(): typeToFlattenedError; flatten(mapper?: (issue: ZodIssue) => U): typeToFlattenedError; get formErrors(): typeToFlattenedError; } declare type stripPath = T extends any ? util.OmitKeys : never; declare type IssueData = stripPath & { path?: (string | number)[]; fatal?: boolean; }; declare type ErrorMapCtx = { defaultError: string; data: any; }; declare type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => { message: string; }; declare const errorMap: ZodErrorMap; declare function setErrorMap(map: ZodErrorMap): void; declare function getErrorMap(): ZodErrorMap; declare const makeIssue: (params: { data: any; path: (string | number)[]; errorMaps: ZodErrorMap[]; issueData: IssueData; }) => ZodIssue; declare type ParseParams = { path: (string | number)[]; errorMap: ZodErrorMap; async: boolean; }; declare type ParsePathComponent = string | number; declare type ParsePath = ParsePathComponent[]; declare const EMPTY_PATH: ParsePath; interface ParseContext { readonly common: { readonly issues: ZodIssue[]; readonly contextualErrorMap?: ZodErrorMap; readonly async: boolean; }; readonly path: ParsePath; readonly schemaErrorMap?: ZodErrorMap; readonly parent: ParseContext | null; readonly data: any; readonly parsedType: ZodParsedType; } declare type ParseInput = { data: any; path: (string | number)[]; parent: ParseContext; }; declare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void; declare type ObjectPair = { key: SyncParseReturnType; value: SyncParseReturnType; }; declare class ParseStatus { value: "aborted" | "dirty" | "valid"; dirty(): void; abort(): void; static mergeArray(status: ParseStatus, results: SyncParseReturnType[]): SyncParseReturnType; static mergeObjectAsync(status: ParseStatus, pairs: { key: ParseReturnType; value: ParseReturnType; }[]): Promise>; static mergeObjectSync(status: ParseStatus, pairs: { key: SyncParseReturnType; value: SyncParseReturnType; alwaysSet?: boolean; }[]): SyncParseReturnType; } interface ParseResult { status: "aborted" | "dirty" | "valid"; data: any; } declare type INVALID = { status: "aborted"; }; declare const INVALID: INVALID; declare type DIRTY = { status: "dirty"; value: T; }; declare const DIRTY: (value: T) => DIRTY; declare type OK = { status: "valid"; value: T; }; declare const OK: (value: T) => OK; declare type SyncParseReturnType = OK | DIRTY | INVALID; declare type AsyncParseReturnType = Promise>; declare type ParseReturnType = SyncParseReturnType | AsyncParseReturnType; declare const isAborted: (x: ParseReturnType) => x is INVALID; declare const isDirty: (x: ParseReturnType) => x is OK | DIRTY; declare const isValid: (x: ParseReturnType) => x is OK | DIRTY; declare const isAsync: (x: ParseReturnType) => x is AsyncParseReturnType; declare namespace enumUtil { type UnionToIntersectionFn = (T extends unknown ? (k: () => T) => void : never) extends (k: infer Intersection) => void ? Intersection : never; type GetUnionLast = UnionToIntersectionFn extends () => infer Last ? Last : never; type UnionToTuple = [T] extends [never] ? Tuple : UnionToTuple>, [GetUnionLast, ...Tuple]>; type CastToStringTuple = T extends [string, ...string[]] ? T : never; export type UnionToTupleString = CastToStringTuple>; export {}; } declare namespace errorUtil { type ErrMessage = string | { message?: string; }; const errToObj: (message?: ErrMessage | undefined) => { message?: string | undefined; }; const toString: (message?: ErrMessage | undefined) => string | undefined; } declare namespace partialUtil { type DeepPartial = T extends ZodObject ? ZodObject<{ [k in keyof Shape]: ZodOptional>; }, Params, Catchall> : T extends ZodArray ? ZodArray, Card> : T extends ZodOptional ? ZodOptional> : T extends ZodNullable ? ZodNullable> : T extends ZodTuple ? { [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial : never; } extends infer PI ? PI extends ZodTupleItems ? ZodTuple : never : never : T; } declare type RefinementCtx = { addIssue: (arg: IssueData) => void; path: (string | number)[]; }; declare type ZodRawShape = { [k: string]: ZodTypeAny; }; declare type ZodTypeAny = ZodType; declare type TypeOf> = T["_output"]; declare type input> = T["_input"]; declare type output> = T["_output"]; declare type CustomErrorParams = Partial>; interface ZodTypeDef { errorMap?: ZodErrorMap; description?: string; } declare type RawCreateParams = { errorMap?: ZodErrorMap; invalid_type_error?: string; required_error?: string; description?: string; } | undefined; declare type ProcessedCreateParams = { errorMap?: ZodErrorMap; description?: string; }; declare type SafeParseSuccess = { success: true; data: Output; }; declare type SafeParseError = { success: false; error: ZodError; }; declare type SafeParseReturnType = SafeParseSuccess | SafeParseError; declare abstract class ZodType { readonly _type: Output; readonly _output: Output; readonly _input: Input; readonly _def: Def; get description(): string | undefined; abstract _parse(input: ParseInput): ParseReturnType; _getType(input: ParseInput): string; _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext; _processInputParams(input: ParseInput): { status: ParseStatus; ctx: ParseContext; }; _parseSync(input: ParseInput): SyncParseReturnType; _parseAsync(input: ParseInput): AsyncParseReturnType; parse(data: unknown, params?: Partial): Output; safeParse(data: unknown, params?: Partial): SafeParseReturnType; parseAsync(data: unknown, params?: Partial): Promise; safeParseAsync(data: unknown, params?: Partial): Promise>; /** Alias of safeParseAsync */ spa: (data: unknown, params?: Partial | undefined) => Promise>; refine(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects; refine(check: (arg: Output) => unknown | Promise, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects; refinement(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects; refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects; _refinement(refinement: RefinementEffect["refinement"]): ZodEffects; superRefine(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects; superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects; constructor(def: Def); optional(): ZodOptional; nullable(): ZodNullable; nullish(): ZodOptional>; array(): ZodArray; promise(): ZodPromise; or(option: T): ZodUnion<[this, T]>; and(incoming: T): ZodIntersection; transform(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise): ZodEffects; default(def: util.noUndefined): ZodDefault; default(def: () => util.noUndefined): ZodDefault; brand(brand?: B): ZodBranded; catch(def: Output): ZodCatch; catch(def: () => Output): ZodCatch; describe(description: string): this; pipe(target: T): ZodPipeline; isOptional(): boolean; isNullable(): boolean; } declare type ZodStringCheck = { kind: "min"; value: number; message?: string; } | { kind: "max"; value: number; message?: string; } | { kind: "length"; value: number; message?: string; } | { kind: "email"; message?: string; } | { kind: "url"; message?: string; } | { kind: "uuid"; message?: string; } | { kind: "cuid"; message?: string; } | { kind: "cuid2"; message?: string; } | { kind: "startsWith"; value: string; message?: string; } | { kind: "endsWith"; value: string; message?: string; } | { kind: "regex"; regex: RegExp; message?: string; } | { kind: "trim"; message?: string; } | { kind: "datetime"; offset: boolean; precision: number | null; message?: string; }; interface ZodStringDef extends ZodTypeDef { checks: ZodStringCheck[]; typeName: ZodFirstPartyTypeKind.ZodString; coerce: boolean; } declare class ZodString extends ZodType { _parse(input: ParseInput): ParseReturnType; protected _regex: (regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage | undefined) => ZodEffects; _addCheck(check: ZodStringCheck): ZodString; email(message?: errorUtil.ErrMessage): ZodString; url(message?: errorUtil.ErrMessage): ZodString; uuid(message?: errorUtil.ErrMessage): ZodString; cuid(message?: errorUtil.ErrMessage): ZodString; cuid2(message?: errorUtil.ErrMessage): ZodString; datetime(options?: string | { message?: string | undefined; precision?: number | null; offset?: boolean; }): ZodString; regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString; startsWith(value: string, message?: errorUtil.ErrMessage): ZodString; endsWith(value: string, message?: errorUtil.ErrMessage): ZodString; min(minLength: number, message?: errorUtil.ErrMessage): ZodString; max(maxLength: number, message?: errorUtil.ErrMessage): ZodString; length(len: number, message?: errorUtil.ErrMessage): ZodString; /** * @deprecated Use z.string().min(1) instead. * @see {@link ZodString.min} */ nonempty: (message?: errorUtil.ErrMessage | undefined) => ZodString; trim: () => ZodString; get isDatetime(): boolean; get isEmail(): boolean; get isURL(): boolean; get isUUID(): boolean; get isCUID(): boolean; get isCUID2(): boolean; get minLength(): number | null; get maxLength(): number | null; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: true | undefined; }) | undefined) => ZodString; } declare type ZodNumberCheck = { kind: "min"; value: number; inclusive: boolean; message?: string; } | { kind: "max"; value: number; inclusive: boolean; message?: string; } | { kind: "int"; message?: string; } | { kind: "multipleOf"; value: number; message?: string; } | { kind: "finite"; message?: string; }; interface ZodNumberDef extends ZodTypeDef { checks: ZodNumberCheck[]; typeName: ZodFirstPartyTypeKind.ZodNumber; coerce: boolean; } declare class ZodNumber extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodNumber; gte(value: number, message?: errorUtil.ErrMessage): ZodNumber; min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber; gt(value: number, message?: errorUtil.ErrMessage): ZodNumber; lte(value: number, message?: errorUtil.ErrMessage): ZodNumber; max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber; lt(value: number, message?: errorUtil.ErrMessage): ZodNumber; protected setLimit(kind: "min" | "max", value: number, inclusive: boolean, message?: string): ZodNumber; _addCheck(check: ZodNumberCheck): ZodNumber; int(message?: errorUtil.ErrMessage): ZodNumber; positive(message?: errorUtil.ErrMessage): ZodNumber; negative(message?: errorUtil.ErrMessage): ZodNumber; nonpositive(message?: errorUtil.ErrMessage): ZodNumber; nonnegative(message?: errorUtil.ErrMessage): ZodNumber; multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber; finite(message?: errorUtil.ErrMessage): ZodNumber; step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber; get minValue(): number | null; get maxValue(): number | null; get isInt(): boolean; get isFinite(): boolean; } interface ZodBigIntDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodBigInt; coerce: boolean; } declare class ZodBigInt extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodBigInt; } interface ZodBooleanDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodBoolean; coerce: boolean; } declare class ZodBoolean extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodBoolean; } declare type ZodDateCheck = { kind: "min"; value: number; message?: string; } | { kind: "max"; value: number; message?: string; }; interface ZodDateDef extends ZodTypeDef { checks: ZodDateCheck[]; coerce: boolean; typeName: ZodFirstPartyTypeKind.ZodDate; } declare class ZodDate extends ZodType { _parse(input: ParseInput): ParseReturnType; _addCheck(check: ZodDateCheck): ZodDate; min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate; max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate; get minDate(): Date | null; get maxDate(): Date | null; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodDate; } interface ZodSymbolDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodSymbol; } declare class ZodSymbol extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodSymbol; } interface ZodUndefinedDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodUndefined; } declare class ZodUndefined extends ZodType { _parse(input: ParseInput): ParseReturnType; params?: RawCreateParams; static create: (params?: RawCreateParams) => ZodUndefined; } interface ZodNullDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodNull; } declare class ZodNull extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodNull; } interface ZodAnyDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodAny; } declare class ZodAny extends ZodType { _any: true; _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodAny; } interface ZodUnknownDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodUnknown; } declare class ZodUnknown extends ZodType { _unknown: true; _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodUnknown; } interface ZodNeverDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodNever; } declare class ZodNever extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodNever; } interface ZodVoidDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodVoid; } declare class ZodVoid extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodVoid; } interface ZodArrayDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodArray; exactLength: { value: number; message?: string; } | null; minLength: { value: number; message?: string; } | null; maxLength: { value: number; message?: string; } | null; } declare type ArrayCardinality = "many" | "atleastone"; declare type arrayOutputType = Cardinality extends "atleastone" ? [T["_output"], ...T["_output"][]] : T["_output"][]; declare class ZodArray extends ZodType, ZodArrayDef, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]> { _parse(input: ParseInput): ParseReturnType; get element(): T; min(minLength: number, message?: errorUtil.ErrMessage): this; max(maxLength: number, message?: errorUtil.ErrMessage): this; length(len: number, message?: errorUtil.ErrMessage): this; nonempty(message?: errorUtil.ErrMessage): ZodArray; static create: (schema: T_1, params?: RawCreateParams) => ZodArray; } declare type ZodNonEmptyArray = ZodArray; declare namespace objectUtil { export type MergeShapes = { [k in Exclude]: U[k]; } & V; type optionalKeys = { [k in keyof T]: undefined extends T[k] ? k : never; }[keyof T]; type requiredKeys = { [k in keyof T]: undefined extends T[k] ? never : k; }[keyof T]; export type addQuestionMarks = Partial>> & Pick>; export type identity = T; export type flatten = identity<{ [k in keyof T]: T[k]; }>; export type noNeverKeys = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T]; export type noNever = identity<{ [k in noNeverKeys]: k extends keyof T ? T[k] : never; }>; export const mergeShapes: (first: U, second: T) => T & U; export {}; } declare type extendShape = util.flatten & B>; declare type UnknownKeysParam = "passthrough" | "strict" | "strip"; interface ZodObjectDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodObject; shape: () => T; catchall: Catchall; unknownKeys: UnknownKeys; } declare type mergeTypes = { [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never; }; declare type processType = util.flatten>; declare type baseObjectOutputType = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_output"]; }>; declare type objectOutputType = ZodTypeAny extends Catchall ? objectUtil.flatten> : objectUtil.flatten & { [k: string]: Catchall["_output"]; }>; declare type baseObjectInputType = objectUtil.flatten>; declare type objectInputType = ZodTypeAny extends Catchall ? baseObjectInputType : objectUtil.flatten & { [k: string]: Catchall["_input"]; }>; declare type deoptional = T extends ZodOptional ? deoptional : T extends ZodNullable ? ZodNullable> : T; declare type SomeZodObject = ZodObject; declare type objectKeyMask = { [k in keyof Obj]?: true; }; declare type noUnrecognized = { [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never; }; declare class ZodObject, Input = objectInputType> extends ZodType, Input> { private _cached; _getCached(): { shape: T; keys: string[]; }; _parse(input: ParseInput): ParseReturnType; get shape(): T; strict(message?: errorUtil.ErrMessage): ZodObject; strip(): ZodObject; passthrough(): ZodObject; /** * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped. * If you want to pass through unknown properties, use `.passthrough()` instead. */ nonstrict: () => ZodObject; extend(augmentation: Augmentation): ZodObject, UnknownKeys, Catchall>; /** * @deprecated Use `.extend` instead * */ augment: (augmentation: Augmentation) => ZodObject<{ [k in keyof (Omit & Augmentation)]: (Omit & Augmentation)[k]; }, UnknownKeys, Catchall, objectOutputType<{ [k in keyof (Omit & Augmentation)]: (Omit & Augmentation)[k]; }, Catchall>, objectInputType<{ [k in keyof (Omit & Augmentation)]: (Omit & Augmentation)[k]; }, Catchall>>; /** * Prior to zod@1.0.12 there was a bug in the * inferred type of merged objects. Please * upgrade if you are experiencing issues. */ merge(merging: Incoming): ZodObject, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>; setKey(key: Key, schema: Schema): ZodObject; catchall(index: Index): ZodObject; pick>(mask: noUnrecognized): ZodObject>, UnknownKeys, Catchall>; omit>(mask: noUnrecognized>): ZodObject, UnknownKeys, Catchall>; deepPartial(): partialUtil.DeepPartial; partial(): ZodObject<{ [k in keyof T]: ZodOptional; }, UnknownKeys, Catchall>; partial>(mask: noUnrecognized>): ZodObject : T[k]; }>, UnknownKeys, Catchall>; required(): ZodObject<{ [k in keyof T]: deoptional; }, UnknownKeys, Catchall>; required>(mask: noUnrecognized>): ZodObject : T[k]; }>, UnknownKeys, Catchall>; keyof(): ZodEnum>; static create: (shape: T_1, params?: RawCreateParams) => ZodObject]: baseObjectOutputType[k]; }, { [k_2 in keyof objectUtil.addQuestionMarks<{ [k_1 in keyof T_1]: T_1[k_1]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_1 in keyof T_1]: T_1[k_1]["_input"]; }>[k_2]; }>; static strictCreate: (shape: T_1, params?: RawCreateParams) => ZodObject]: baseObjectOutputType[k]; }, { [k_2 in keyof objectUtil.addQuestionMarks<{ [k_1 in keyof T_1]: T_1[k_1]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_1 in keyof T_1]: T_1[k_1]["_input"]; }>[k_2]; }>; static lazycreate: (shape: () => T_1, params?: RawCreateParams) => ZodObject]: baseObjectOutputType[k]; }, { [k_2 in keyof objectUtil.addQuestionMarks<{ [k_1 in keyof T_1]: T_1[k_1]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_1 in keyof T_1]: T_1[k_1]["_input"]; }>[k_2]; }>; } declare type AnyZodObject = ZodObject; declare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>; interface ZodUnionDef> extends ZodTypeDef { options: T; typeName: ZodFirstPartyTypeKind.ZodUnion; } declare class ZodUnion extends ZodType, T[number]["_input"]> { _parse(input: ParseInput): ParseReturnType; get options(): T; static create: (types: T_1, params?: RawCreateParams) => ZodUnion; } declare type ZodDiscriminatedUnionOption = ZodObject<{ [key in Discriminator]: ZodTypeAny; } & ZodRawShape, UnknownKeysParam, ZodTypeAny>; interface ZodDiscriminatedUnionDef[] = ZodDiscriminatedUnionOption[]> extends ZodTypeDef { discriminator: Discriminator; options: Options; optionsMap: Map>; typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion; } declare class ZodDiscriminatedUnion[]> extends ZodType, ZodDiscriminatedUnionDef, input> { _parse(input: ParseInput): ParseReturnType; get discriminator(): Discriminator; get options(): Options; get optionsMap(): Map>; /** * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor. * However, it only allows a union of objects, all of which need to share a discriminator property. This property must * have a different value for each object in the union. * @param discriminator the name of the discriminator property * @param types an array of object schemas * @param params */ static create, ...ZodDiscriminatedUnionOption[] ]>(discriminator: Discriminator, options: Types, params?: RawCreateParams): ZodDiscriminatedUnion; } interface ZodIntersectionDef extends ZodTypeDef { left: T; right: U; typeName: ZodFirstPartyTypeKind.ZodIntersection; } declare class ZodIntersection extends ZodType, T["_input"] & U["_input"]> { _parse(input: ParseInput): ParseReturnType; static create: (left: T_1, right: U_1, params?: RawCreateParams) => ZodIntersection; } declare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]]; declare type AssertArray = T extends any[] ? T : never; declare type OutputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodType ? T[k]["_output"] : never; }>; declare type OutputTypeOfTupleWithRest = Rest extends ZodTypeAny ? [...OutputTypeOfTuple, ...Rest["_output"][]] : OutputTypeOfTuple; declare type InputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodType ? T[k]["_input"] : never; }>; declare type InputTypeOfTupleWithRest = Rest extends ZodTypeAny ? [...InputTypeOfTuple, ...Rest["_input"][]] : InputTypeOfTuple; interface ZodTupleDef extends ZodTypeDef { items: T; rest: Rest; typeName: ZodFirstPartyTypeKind.ZodTuple; } declare type AnyZodTuple = ZodTuple<[ ZodTypeAny, ...ZodTypeAny[] ] | [], ZodTypeAny | null>; declare class ZodTuple extends ZodType, ZodTupleDef, InputTypeOfTupleWithRest> { _parse(input: ParseInput): ParseReturnType; get items(): T; rest(rest: Rest): ZodTuple; static create: (schemas: T_1, params?: RawCreateParams) => ZodTuple; } interface ZodRecordDef extends ZodTypeDef { valueType: Value; keyType: Key; typeName: ZodFirstPartyTypeKind.ZodRecord; } declare type KeySchema = ZodType; declare type RecordType = [ string ] extends [K] ? Record : [number] extends [K] ? Record : [symbol] extends [K] ? Record : Partial>; declare class ZodRecord extends ZodType, ZodRecordDef, RecordType> { get keySchema(): Key; get valueSchema(): Value; _parse(input: ParseInput): ParseReturnType; get element(): Value; static create(valueType: Value, params?: RawCreateParams): ZodRecord; static create(keySchema: Keys, valueType: Value, params?: RawCreateParams): ZodRecord; } interface ZodMapDef extends ZodTypeDef { valueType: Value; keyType: Key; typeName: ZodFirstPartyTypeKind.ZodMap; } declare class ZodMap extends ZodType, ZodMapDef, Map> { _parse(input: ParseInput): ParseReturnType; static create: (keyType: Key_1, valueType: Value_1, params?: RawCreateParams) => ZodMap; } interface ZodSetDef extends ZodTypeDef { valueType: Value; typeName: ZodFirstPartyTypeKind.ZodSet; minSize: { value: number; message?: string; } | null; maxSize: { value: number; message?: string; } | null; } declare class ZodSet extends ZodType, ZodSetDef, Set> { _parse(input: ParseInput): ParseReturnType; min(minSize: number, message?: errorUtil.ErrMessage): this; max(maxSize: number, message?: errorUtil.ErrMessage): this; size(size: number, message?: errorUtil.ErrMessage): this; nonempty(message?: errorUtil.ErrMessage): ZodSet; static create: (valueType: Value_1, params?: RawCreateParams) => ZodSet; } interface ZodFunctionDef = ZodTuple, Returns extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef { args: Args; returns: Returns; typeName: ZodFirstPartyTypeKind.ZodFunction; } declare type OuterTypeOfFunction, Returns extends ZodTypeAny> = Args["_input"] extends Array ? (...args: Args["_input"]) => Returns["_output"] : never; declare type InnerTypeOfFunction, Returns extends ZodTypeAny> = Args["_output"] extends Array ? (...args: Args["_output"]) => Returns["_input"] : never; declare class ZodFunction, Returns extends ZodTypeAny> extends ZodType, ZodFunctionDef, InnerTypeOfFunction> { _parse(input: ParseInput): ParseReturnType; parameters(): Args; returnType(): Returns; args[0]>(...items: Items): ZodFunction, Returns>; returns>(returnType: NewReturnType): ZodFunction; implement>(func: F): ReturnType extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType : OuterTypeOfFunction; strictImplement(func: InnerTypeOfFunction): InnerTypeOfFunction; validate: >(func: F) => ReturnType extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType : OuterTypeOfFunction; static create(): ZodFunction, ZodUnknown>; static create>(args: T): ZodFunction; static create(args: T, returns: U): ZodFunction; static create, U extends ZodTypeAny = ZodUnknown>(args: T, returns: U, params?: RawCreateParams): ZodFunction; } interface ZodLazyDef extends ZodTypeDef { getter: () => T; typeName: ZodFirstPartyTypeKind.ZodLazy; } declare class ZodLazy extends ZodType, ZodLazyDef, input> { get schema(): T; _parse(input: ParseInput): ParseReturnType; static create: (getter: () => T_1, params?: RawCreateParams) => ZodLazy; } interface ZodLiteralDef extends ZodTypeDef { value: T; typeName: ZodFirstPartyTypeKind.ZodLiteral; } declare class ZodLiteral extends ZodType> { _parse(input: ParseInput): ParseReturnType; get value(): T; static create: (value: T_1, params?: RawCreateParams) => ZodLiteral; } declare type ArrayKeys = keyof any[]; declare type Indices = Exclude; declare type EnumValues = [string, ...string[]]; declare type Values = { [k in T[number]]: k; }; interface ZodEnumDef extends ZodTypeDef { values: T; typeName: ZodFirstPartyTypeKind.ZodEnum; } declare type Writeable = { -readonly [P in keyof T]: T[P]; }; declare type FilterEnum = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum : [Head, ...FilterEnum] : never; declare type typecast = A extends T ? A : never; declare function createZodEnum>(values: T, params?: RawCreateParams): ZodEnum>; declare function createZodEnum(values: T, params?: RawCreateParams): ZodEnum; declare class ZodEnum extends ZodType> { _parse(input: ParseInput): ParseReturnType; get options(): T; get enum(): Values; get Values(): Values; get Enum(): Values; extract(values: ToExtract): ZodEnum>; exclude(values: ToExclude): ZodEnum>, [string, ...string[]]>>; static create: typeof createZodEnum; } interface ZodNativeEnumDef extends ZodTypeDef { values: T; typeName: ZodFirstPartyTypeKind.ZodNativeEnum; } declare type EnumLike = { [k: string]: string | number; [nu: number]: string; }; declare class ZodNativeEnum extends ZodType> { _parse(input: ParseInput): ParseReturnType; get enum(): T; static create: (values: T_1, params?: RawCreateParams) => ZodNativeEnum; } interface ZodPromiseDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodPromise; } declare class ZodPromise extends ZodType, ZodPromiseDef, Promise> { unwrap(): T; _parse(input: ParseInput): ParseReturnType; static create: (schema: T_1, params?: RawCreateParams) => ZodPromise; } declare type Refinement = (arg: T, ctx: RefinementCtx) => any; declare type SuperRefinement = (arg: T, ctx: RefinementCtx) => void; declare type RefinementEffect = { type: "refinement"; refinement: (arg: T, ctx: RefinementCtx) => any; }; declare type TransformEffect = { type: "transform"; transform: (arg: T, ctx: RefinementCtx) => any; }; declare type PreprocessEffect = { type: "preprocess"; transform: (arg: T) => any; }; declare type Effect = RefinementEffect | TransformEffect | PreprocessEffect; interface ZodEffectsDef extends ZodTypeDef { schema: T; typeName: ZodFirstPartyTypeKind.ZodEffects; effect: Effect; } declare class ZodEffects, Input = input> extends ZodType, Input> { innerType(): T; sourceType(): T; _parse(input: ParseInput): ParseReturnType; static create: (schema: I, effect: Effect, params?: RawCreateParams) => ZodEffects>; static createWithPreprocess: (preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects; } interface ZodOptionalDef extends ZodTypeDef { innerType: T; typeName: ZodFirstPartyTypeKind.ZodOptional; } declare type ZodOptionalType = ZodOptional; declare class ZodOptional extends ZodType, T["_input"] | undefined> { _parse(input: ParseInput): ParseReturnType; unwrap(): T; static create: (type: T_1, params?: RawCreateParams) => ZodOptional; } interface ZodNullableDef extends ZodTypeDef { innerType: T; typeName: ZodFirstPartyTypeKind.ZodNullable; } declare type ZodNullableType = ZodNullable; declare class ZodNullable extends ZodType, T["_input"] | null> { _parse(input: ParseInput): ParseReturnType; unwrap(): T; static create: (type: T_1, params?: RawCreateParams) => ZodNullable; } interface ZodDefaultDef extends ZodTypeDef { innerType: T; defaultValue: () => util.noUndefined; typeName: ZodFirstPartyTypeKind.ZodDefault; } declare class ZodDefault extends ZodType, ZodDefaultDef, T["_input"] | undefined> { _parse(input: ParseInput): ParseReturnType; removeDefault(): T; static create: (type: T_1, params: { errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { default: T_1["_input"] | (() => util.noUndefined); }) => ZodDefault; } interface ZodCatchDef extends ZodTypeDef { innerType: T; catchValue: () => C; typeName: ZodFirstPartyTypeKind.ZodCatch; } declare class ZodCatch extends ZodType, unknown> { _parse(input: ParseInput): ParseReturnType; removeCatch(): T; static create: (type: T_1, params: { errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { catch: T_1["_output"] | (() => T_1["_output"]); }) => ZodCatch; } interface ZodNaNDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodNaN; } declare class ZodNaN extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodNaN; } interface ZodBrandedDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodBranded; } declare const BRAND: unique symbol; declare type BRAND = { [BRAND]: { [k in T]: true; }; }; declare class ZodBranded extends ZodType, ZodBrandedDef, T["_input"]> { _parse(input: ParseInput): ParseReturnType; unwrap(): T; } interface ZodPipelineDef extends ZodTypeDef { in: A; out: B; typeName: ZodFirstPartyTypeKind.ZodPipeline; } declare class ZodPipeline extends ZodType, A["_input"]> { _parse(input: ParseInput): ParseReturnType; static create(a: A, b: B): ZodPipeline; } declare const custom: (check?: ((data: unknown) => any) | undefined, params?: Parameters[1], fatal?: boolean | undefined) => ZodType; declare const late: { object: (shape: () => T, params?: RawCreateParams) => ZodObject]: baseObjectOutputType[k]; }, { [k_2 in keyof objectUtil.addQuestionMarks<{ [k_1 in keyof T]: T[k_1]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_1 in keyof T]: T[k_1]["_input"]; }>[k_2]; }>; }; declare enum ZodFirstPartyTypeKind { ZodString = "ZodString", ZodNumber = "ZodNumber", ZodNaN = "ZodNaN", ZodBigInt = "ZodBigInt", ZodBoolean = "ZodBoolean", ZodDate = "ZodDate", ZodSymbol = "ZodSymbol", ZodUndefined = "ZodUndefined", ZodNull = "ZodNull", ZodAny = "ZodAny", ZodUnknown = "ZodUnknown", ZodNever = "ZodNever", ZodVoid = "ZodVoid", ZodArray = "ZodArray", ZodObject = "ZodObject", ZodUnion = "ZodUnion", ZodDiscriminatedUnion = "ZodDiscriminatedUnion", ZodIntersection = "ZodIntersection", ZodTuple = "ZodTuple", ZodRecord = "ZodRecord", ZodMap = "ZodMap", ZodSet = "ZodSet", ZodFunction = "ZodFunction", ZodLazy = "ZodLazy", ZodLiteral = "ZodLiteral", ZodEnum = "ZodEnum", ZodEffects = "ZodEffects", ZodNativeEnum = "ZodNativeEnum", ZodOptional = "ZodOptional", ZodNullable = "ZodNullable", ZodDefault = "ZodDefault", ZodCatch = "ZodCatch", ZodPromise = "ZodPromise", ZodBranded = "ZodBranded", ZodPipeline = "ZodPipeline" } declare type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray | ZodObject | ZodUnion | ZodDiscriminatedUnion | ZodIntersection | ZodTuple | ZodRecord | ZodMap | ZodSet | ZodFunction | ZodLazy | ZodLiteral | ZodEnum | ZodEffects | ZodNativeEnum | ZodOptional | ZodNullable | ZodDefault | ZodCatch | ZodPromise | ZodBranded | ZodPipeline; declare abstract class Class { constructor(..._: any[]); } declare const instanceOfType: (cls: T, params?: Parameters[1]) => ZodType, ZodTypeDef, InstanceType>; declare const stringType: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: true | undefined; }) | undefined) => ZodString; declare const numberType: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodNumber; declare const nanType: (params?: RawCreateParams) => ZodNaN; declare const bigIntType: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodBigInt; declare const booleanType: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodBoolean; declare const dateType: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodDate; declare const symbolType: (params?: RawCreateParams) => ZodSymbol; declare const undefinedType: (params?: RawCreateParams) => ZodUndefined; declare const nullType: (params?: RawCreateParams) => ZodNull; declare const anyType: (params?: RawCreateParams) => ZodAny; declare const unknownType: (params?: RawCreateParams) => ZodUnknown; declare const neverType: (params?: RawCreateParams) => ZodNever; declare const voidType: (params?: RawCreateParams) => ZodVoid; declare const arrayType: (schema: T, params?: RawCreateParams) => ZodArray; declare const objectType: (shape: T, params?: RawCreateParams) => ZodObject]: baseObjectOutputType[k]; }, { [k_2 in keyof objectUtil.addQuestionMarks<{ [k_1 in keyof T]: T[k_1]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_1 in keyof T]: T[k_1]["_input"]; }>[k_2]; }>; declare const strictObjectType: (shape: T, params?: RawCreateParams) => ZodObject]: baseObjectOutputType[k]; }, { [k_2 in keyof objectUtil.addQuestionMarks<{ [k_1 in keyof T]: T[k_1]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_1 in keyof T]: T[k_1]["_input"]; }>[k_2]; }>; declare const unionType: (types: T, params?: RawCreateParams) => ZodUnion; declare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create; declare const intersectionType: (left: T, right: U, params?: RawCreateParams) => ZodIntersection; declare const tupleType: (schemas: T, params?: RawCreateParams) => ZodTuple; declare const recordType: typeof ZodRecord.create; declare const mapType: (keyType: Key, valueType: Value, params?: RawCreateParams) => ZodMap; declare const setType: (valueType: Value, params?: RawCreateParams) => ZodSet; declare const functionType: typeof ZodFunction.create; declare const lazyType: (getter: () => T, params?: RawCreateParams) => ZodLazy; declare const literalType: (value: T, params?: RawCreateParams) => ZodLiteral; declare const enumType: typeof createZodEnum; declare const nativeEnumType: (values: T, params?: RawCreateParams) => ZodNativeEnum; declare const promiseType: (schema: T, params?: RawCreateParams) => ZodPromise; declare const effectsType: (schema: I, effect: Effect, params?: RawCreateParams) => ZodEffects>; declare const optionalType: (type: T, params?: RawCreateParams) => ZodOptional; declare const nullableType: (type: T, params?: RawCreateParams) => ZodNullable; declare const preprocessType: (preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects; declare const pipelineType: typeof ZodPipeline.create; declare const ostring: () => ZodOptional; declare const onumber: () => ZodOptional; declare const oboolean: () => ZodOptional; declare const coerce: { string: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: true | undefined; }) | undefined) => ZodString; number: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodNumber; boolean: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodBoolean; bigint: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodBigInt; date: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodDate; }; declare const NEVER: never; type mod_AnyZodObject = AnyZodObject; type mod_AnyZodTuple = AnyZodTuple; type mod_ArrayCardinality = ArrayCardinality; type mod_ArrayKeys = ArrayKeys; type mod_AssertArray = AssertArray; type mod_AsyncParseReturnType = AsyncParseReturnType; type mod_BRAND = BRAND; type mod_CustomErrorParams = CustomErrorParams; declare const mod_DIRTY: typeof DIRTY; type mod_DenormalizedError = DenormalizedError; declare const mod_EMPTY_PATH: typeof EMPTY_PATH; type mod_Effect = Effect; type mod_EnumLike = EnumLike; type mod_EnumValues = EnumValues; type mod_ErrorMapCtx = ErrorMapCtx; type mod_FilterEnum = FilterEnum; declare const mod_INVALID: typeof INVALID; type mod_Indices = Indices; type mod_InnerTypeOfFunction, Returns extends ZodTypeAny> = InnerTypeOfFunction; type mod_InputTypeOfTuple = InputTypeOfTuple; type mod_InputTypeOfTupleWithRest = InputTypeOfTupleWithRest; type mod_IssueData = IssueData; type mod_KeySchema = KeySchema; declare const mod_NEVER: typeof NEVER; declare const mod_OK: typeof OK; type mod_ObjectPair = ObjectPair; type mod_OuterTypeOfFunction, Returns extends ZodTypeAny> = OuterTypeOfFunction; type mod_OutputTypeOfTuple = OutputTypeOfTuple; type mod_OutputTypeOfTupleWithRest = OutputTypeOfTupleWithRest; type mod_ParseContext = ParseContext; type mod_ParseInput = ParseInput; type mod_ParseParams = ParseParams; type mod_ParsePath = ParsePath; type mod_ParsePathComponent = ParsePathComponent; type mod_ParseResult = ParseResult; type mod_ParseReturnType = ParseReturnType; type mod_ParseStatus = ParseStatus; declare const mod_ParseStatus: typeof ParseStatus; type mod_PreprocessEffect = PreprocessEffect; type mod_Primitive = Primitive; type mod_ProcessedCreateParams = ProcessedCreateParams; type mod_RawCreateParams = RawCreateParams; type mod_RecordType = RecordType; type mod_Refinement = Refinement; type mod_RefinementCtx = RefinementCtx; type mod_RefinementEffect = RefinementEffect; type mod_SafeParseError = SafeParseError; type mod_SafeParseReturnType = SafeParseReturnType; type mod_SafeParseSuccess = SafeParseSuccess; type mod_Scalars = Scalars; type mod_SomeZodObject = SomeZodObject; type mod_StringValidation = StringValidation; type mod_SuperRefinement = SuperRefinement; type mod_SyncParseReturnType = SyncParseReturnType; type mod_TransformEffect = TransformEffect; type mod_TypeOf> = TypeOf; type mod_UnknownKeysParam = UnknownKeysParam; type mod_Values = Values; type mod_Writeable = Writeable; type mod_ZodAny = ZodAny; declare const mod_ZodAny: typeof ZodAny; type mod_ZodAnyDef = ZodAnyDef; type mod_ZodArray = ZodArray; declare const mod_ZodArray: typeof ZodArray; type mod_ZodArrayDef = ZodArrayDef; type mod_ZodBigInt = ZodBigInt; declare const mod_ZodBigInt: typeof ZodBigInt; type mod_ZodBigIntDef = ZodBigIntDef; type mod_ZodBoolean = ZodBoolean; declare const mod_ZodBoolean: typeof ZodBoolean; type mod_ZodBooleanDef = ZodBooleanDef; type mod_ZodBranded = ZodBranded; declare const mod_ZodBranded: typeof ZodBranded; type mod_ZodBrandedDef = ZodBrandedDef; type mod_ZodCatch = ZodCatch; declare const mod_ZodCatch: typeof ZodCatch; type mod_ZodCatchDef = ZodCatchDef; type mod_ZodCustomIssue = ZodCustomIssue; type mod_ZodDate = ZodDate; declare const mod_ZodDate: typeof ZodDate; type mod_ZodDateCheck = ZodDateCheck; type mod_ZodDateDef = ZodDateDef; type mod_ZodDefault = ZodDefault; declare const mod_ZodDefault: typeof ZodDefault; type mod_ZodDefaultDef = ZodDefaultDef; type mod_ZodDiscriminatedUnion[]> = ZodDiscriminatedUnion; declare const mod_ZodDiscriminatedUnion: typeof ZodDiscriminatedUnion; type mod_ZodDiscriminatedUnionDef[] = ZodDiscriminatedUnionOption[]> = ZodDiscriminatedUnionDef; type mod_ZodDiscriminatedUnionOption = ZodDiscriminatedUnionOption; type mod_ZodEffects, Input = input> = ZodEffects; declare const mod_ZodEffects: typeof ZodEffects; type mod_ZodEffectsDef = ZodEffectsDef; type mod_ZodEnum = ZodEnum; declare const mod_ZodEnum: typeof ZodEnum; type mod_ZodEnumDef = ZodEnumDef; type mod_ZodError = ZodError; declare const mod_ZodError: typeof ZodError; type mod_ZodErrorMap = ZodErrorMap; type mod_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes; type mod_ZodFirstPartyTypeKind = ZodFirstPartyTypeKind; declare const mod_ZodFirstPartyTypeKind: typeof ZodFirstPartyTypeKind; type mod_ZodFormattedError = ZodFormattedError; type mod_ZodFunction, Returns extends ZodTypeAny> = ZodFunction; declare const mod_ZodFunction: typeof ZodFunction; type mod_ZodFunctionDef = ZodTuple, Returns extends ZodTypeAny = ZodTypeAny> = ZodFunctionDef; type mod_ZodIntersection = ZodIntersection; declare const mod_ZodIntersection: typeof ZodIntersection; type mod_ZodIntersectionDef = ZodIntersectionDef; type mod_ZodInvalidArgumentsIssue = ZodInvalidArgumentsIssue; type mod_ZodInvalidDateIssue = ZodInvalidDateIssue; type mod_ZodInvalidEnumValueIssue = ZodInvalidEnumValueIssue; type mod_ZodInvalidIntersectionTypesIssue = ZodInvalidIntersectionTypesIssue; type mod_ZodInvalidLiteralIssue = ZodInvalidLiteralIssue; type mod_ZodInvalidReturnTypeIssue = ZodInvalidReturnTypeIssue; type mod_ZodInvalidStringIssue = ZodInvalidStringIssue; type mod_ZodInvalidTypeIssue = ZodInvalidTypeIssue; type mod_ZodInvalidUnionDiscriminatorIssue = ZodInvalidUnionDiscriminatorIssue; type mod_ZodInvalidUnionIssue = ZodInvalidUnionIssue; type mod_ZodIssue = ZodIssue; type mod_ZodIssueBase = ZodIssueBase; type mod_ZodIssueCode = ZodIssueCode; type mod_ZodIssueOptionalMessage = ZodIssueOptionalMessage; type mod_ZodLazy = ZodLazy; declare const mod_ZodLazy: typeof ZodLazy; type mod_ZodLazyDef = ZodLazyDef; type mod_ZodLiteral = ZodLiteral; declare const mod_ZodLiteral: typeof ZodLiteral; type mod_ZodLiteralDef = ZodLiteralDef; type mod_ZodMap = ZodMap; declare const mod_ZodMap: typeof ZodMap; type mod_ZodMapDef = ZodMapDef; type mod_ZodNaN = ZodNaN; declare const mod_ZodNaN: typeof ZodNaN; type mod_ZodNaNDef = ZodNaNDef; type mod_ZodNativeEnum = ZodNativeEnum; declare const mod_ZodNativeEnum: typeof ZodNativeEnum; type mod_ZodNativeEnumDef = ZodNativeEnumDef; type mod_ZodNever = ZodNever; declare const mod_ZodNever: typeof ZodNever; type mod_ZodNeverDef = ZodNeverDef; type mod_ZodNonEmptyArray = ZodNonEmptyArray; type mod_ZodNotFiniteIssue = ZodNotFiniteIssue; type mod_ZodNotMultipleOfIssue = ZodNotMultipleOfIssue; type mod_ZodNull = ZodNull; declare const mod_ZodNull: typeof ZodNull; type mod_ZodNullDef = ZodNullDef; type mod_ZodNullable = ZodNullable; declare const mod_ZodNullable: typeof ZodNullable; type mod_ZodNullableDef = ZodNullableDef; type mod_ZodNullableType = ZodNullableType; type mod_ZodNumber = ZodNumber; declare const mod_ZodNumber: typeof ZodNumber; type mod_ZodNumberCheck = ZodNumberCheck; type mod_ZodNumberDef = ZodNumberDef; type mod_ZodObject, Input = objectInputType> = ZodObject; declare const mod_ZodObject: typeof ZodObject; type mod_ZodObjectDef = ZodObjectDef; type mod_ZodOptional = ZodOptional; declare const mod_ZodOptional: typeof ZodOptional; type mod_ZodOptionalDef = ZodOptionalDef; type mod_ZodOptionalType = ZodOptionalType; type mod_ZodParsedType = ZodParsedType; type mod_ZodPipeline = ZodPipeline; declare const mod_ZodPipeline: typeof ZodPipeline; type mod_ZodPipelineDef = ZodPipelineDef; type mod_ZodPromise = ZodPromise; declare const mod_ZodPromise: typeof ZodPromise; type mod_ZodPromiseDef = ZodPromiseDef; type mod_ZodRawShape = ZodRawShape; type mod_ZodRecord = ZodRecord; declare const mod_ZodRecord: typeof ZodRecord; type mod_ZodRecordDef = ZodRecordDef; type mod_ZodSet = ZodSet; declare const mod_ZodSet: typeof ZodSet; type mod_ZodSetDef = ZodSetDef; type mod_ZodString = ZodString; declare const mod_ZodString: typeof ZodString; type mod_ZodStringCheck = ZodStringCheck; type mod_ZodStringDef = ZodStringDef; type mod_ZodSymbol = ZodSymbol; declare const mod_ZodSymbol: typeof ZodSymbol; type mod_ZodSymbolDef = ZodSymbolDef; type mod_ZodTooBigIssue = ZodTooBigIssue; type mod_ZodTooSmallIssue = ZodTooSmallIssue; type mod_ZodTuple = ZodTuple; declare const mod_ZodTuple: typeof ZodTuple; type mod_ZodTupleDef = ZodTupleDef; type mod_ZodTupleItems = ZodTupleItems; type mod_ZodType = ZodType; declare const mod_ZodType: typeof ZodType; type mod_ZodTypeAny = ZodTypeAny; type mod_ZodTypeDef = ZodTypeDef; type mod_ZodUndefined = ZodUndefined; declare const mod_ZodUndefined: typeof ZodUndefined; type mod_ZodUndefinedDef = ZodUndefinedDef; type mod_ZodUnion = ZodUnion; declare const mod_ZodUnion: typeof ZodUnion; type mod_ZodUnionDef> = ZodUnionDef; type mod_ZodUnionOptions = ZodUnionOptions; type mod_ZodUnknown = ZodUnknown; declare const mod_ZodUnknown: typeof ZodUnknown; type mod_ZodUnknownDef = ZodUnknownDef; type mod_ZodUnrecognizedKeysIssue = ZodUnrecognizedKeysIssue; type mod_ZodVoid = ZodVoid; declare const mod_ZodVoid: typeof ZodVoid; type mod_ZodVoidDef = ZodVoidDef; declare const mod_addIssueToContext: typeof addIssueToContext; type mod_arrayOutputType = arrayOutputType; type mod_baseObjectInputType = baseObjectInputType; type mod_baseObjectOutputType = baseObjectOutputType; declare const mod_coerce: typeof coerce; declare const mod_custom: typeof custom; type mod_deoptional = deoptional; type mod_extendShape = extendShape; declare const mod_getErrorMap: typeof getErrorMap; declare const mod_getParsedType: typeof getParsedType; type mod_inferFlattenedErrors, U = string> = inferFlattenedErrors; type mod_inferFormattedError, U = string> = inferFormattedError; type mod_input> = input; declare const mod_isAborted: typeof isAborted; declare const mod_isAsync: typeof isAsync; declare const mod_isDirty: typeof isDirty; declare const mod_isValid: typeof isValid; declare const mod_late: typeof late; declare const mod_makeIssue: typeof makeIssue; type mod_mergeTypes = mergeTypes; type mod_noUnrecognized = noUnrecognized; type mod_objectInputType = objectInputType; type mod_objectKeyMask = objectKeyMask; type mod_objectOutputType = objectOutputType; import mod_objectUtil = objectUtil; declare const mod_oboolean: typeof oboolean; declare const mod_onumber: typeof onumber; declare const mod_ostring: typeof ostring; type mod_output> = output; type mod_processType = processType; declare const mod_quotelessJson: typeof quotelessJson; declare const mod_setErrorMap: typeof setErrorMap; type mod_typeToFlattenedError = typeToFlattenedError; type mod_typecast = typecast; import mod_util = util; declare namespace mod { export { mod_DIRTY as DIRTY, mod_EMPTY_PATH as EMPTY_PATH, mod_INVALID as INVALID, mod_NEVER as NEVER, mod_OK as OK, mod_ParseStatus as ParseStatus, ZodType as Schema, mod_ZodAny as ZodAny, mod_ZodArray as ZodArray, mod_ZodBigInt as ZodBigInt, mod_ZodBoolean as ZodBoolean, mod_ZodBranded as ZodBranded, mod_ZodCatch as ZodCatch, mod_ZodDate as ZodDate, mod_ZodDefault as ZodDefault, mod_ZodDiscriminatedUnion as ZodDiscriminatedUnion, mod_ZodEffects as ZodEffects, mod_ZodEnum as ZodEnum, mod_ZodError as ZodError, mod_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, mod_ZodFunction as ZodFunction, mod_ZodIntersection as ZodIntersection, mod_ZodLazy as ZodLazy, mod_ZodLiteral as ZodLiteral, mod_ZodMap as ZodMap, mod_ZodNaN as ZodNaN, mod_ZodNativeEnum as ZodNativeEnum, mod_ZodNever as ZodNever, mod_ZodNull as ZodNull, mod_ZodNullable as ZodNullable, mod_ZodNumber as ZodNumber, mod_ZodObject as ZodObject, mod_ZodOptional as ZodOptional, mod_ZodPipeline as ZodPipeline, mod_ZodPromise as ZodPromise, mod_ZodRecord as ZodRecord, ZodType as ZodSchema, mod_ZodSet as ZodSet, mod_ZodString as ZodString, mod_ZodSymbol as ZodSymbol, ZodEffects as ZodTransformer, mod_ZodTuple as ZodTuple, mod_ZodType as ZodType, mod_ZodUndefined as ZodUndefined, mod_ZodUnion as ZodUnion, mod_ZodUnknown as ZodUnknown, mod_ZodVoid as ZodVoid, mod_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, mod_coerce as coerce, mod_custom as custom, dateType as date, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, mod_getErrorMap as getErrorMap, mod_getParsedType as getParsedType, instanceOfType as instanceof, intersectionType as intersection, mod_isAborted as isAborted, mod_isAsync as isAsync, mod_isDirty as isDirty, mod_isValid as isValid, mod_late as late, lazyType as lazy, literalType as literal, mod_makeIssue as makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, mod_objectUtil as objectUtil, mod_oboolean as oboolean, mod_onumber as onumber, optionalType as optional, mod_ostring as ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, mod_quotelessJson as quotelessJson, recordType as record, setType as set, mod_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, mod_util as util, voidType as void }; export type { mod_AnyZodObject as AnyZodObject, mod_AnyZodTuple as AnyZodTuple, mod_ArrayCardinality as ArrayCardinality, mod_ArrayKeys as ArrayKeys, mod_AssertArray as AssertArray, mod_AsyncParseReturnType as AsyncParseReturnType, mod_BRAND as BRAND, mod_CustomErrorParams as CustomErrorParams, mod_DenormalizedError as DenormalizedError, mod_Effect as Effect, mod_EnumLike as EnumLike, mod_EnumValues as EnumValues, mod_ErrorMapCtx as ErrorMapCtx, mod_FilterEnum as FilterEnum, mod_Indices as Indices, mod_InnerTypeOfFunction as InnerTypeOfFunction, mod_InputTypeOfTuple as InputTypeOfTuple, mod_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, mod_IssueData as IssueData, mod_KeySchema as KeySchema, mod_ObjectPair as ObjectPair, mod_OuterTypeOfFunction as OuterTypeOfFunction, mod_OutputTypeOfTuple as OutputTypeOfTuple, mod_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, mod_ParseContext as ParseContext, mod_ParseInput as ParseInput, mod_ParseParams as ParseParams, mod_ParsePath as ParsePath, mod_ParsePathComponent as ParsePathComponent, mod_ParseResult as ParseResult, mod_ParseReturnType as ParseReturnType, mod_PreprocessEffect as PreprocessEffect, mod_Primitive as Primitive, mod_ProcessedCreateParams as ProcessedCreateParams, mod_RawCreateParams as RawCreateParams, mod_RecordType as RecordType, mod_Refinement as Refinement, mod_RefinementCtx as RefinementCtx, mod_RefinementEffect as RefinementEffect, mod_SafeParseError as SafeParseError, mod_SafeParseReturnType as SafeParseReturnType, mod_SafeParseSuccess as SafeParseSuccess, mod_Scalars as Scalars, mod_SomeZodObject as SomeZodObject, mod_StringValidation as StringValidation, mod_SuperRefinement as SuperRefinement, mod_SyncParseReturnType as SyncParseReturnType, mod_TransformEffect as TransformEffect, mod_TypeOf as TypeOf, mod_UnknownKeysParam as UnknownKeysParam, mod_Values as Values, mod_Writeable as Writeable, mod_ZodAnyDef as ZodAnyDef, mod_ZodArrayDef as ZodArrayDef, mod_ZodBigIntDef as ZodBigIntDef, mod_ZodBooleanDef as ZodBooleanDef, mod_ZodBrandedDef as ZodBrandedDef, mod_ZodCatchDef as ZodCatchDef, mod_ZodCustomIssue as ZodCustomIssue, mod_ZodDateCheck as ZodDateCheck, mod_ZodDateDef as ZodDateDef, mod_ZodDefaultDef as ZodDefaultDef, mod_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, mod_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, mod_ZodEffectsDef as ZodEffectsDef, mod_ZodEnumDef as ZodEnumDef, mod_ZodErrorMap as ZodErrorMap, mod_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, mod_ZodFormattedError as ZodFormattedError, mod_ZodFunctionDef as ZodFunctionDef, mod_ZodIntersectionDef as ZodIntersectionDef, mod_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, mod_ZodInvalidDateIssue as ZodInvalidDateIssue, mod_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, mod_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, mod_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, mod_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, mod_ZodInvalidStringIssue as ZodInvalidStringIssue, mod_ZodInvalidTypeIssue as ZodInvalidTypeIssue, mod_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, mod_ZodInvalidUnionIssue as ZodInvalidUnionIssue, mod_ZodIssue as ZodIssue, mod_ZodIssueBase as ZodIssueBase, mod_ZodIssueCode as ZodIssueCode, mod_ZodIssueOptionalMessage as ZodIssueOptionalMessage, mod_ZodLazyDef as ZodLazyDef, mod_ZodLiteralDef as ZodLiteralDef, mod_ZodMapDef as ZodMapDef, mod_ZodNaNDef as ZodNaNDef, mod_ZodNativeEnumDef as ZodNativeEnumDef, mod_ZodNeverDef as ZodNeverDef, mod_ZodNonEmptyArray as ZodNonEmptyArray, mod_ZodNotFiniteIssue as ZodNotFiniteIssue, mod_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, mod_ZodNullDef as ZodNullDef, mod_ZodNullableDef as ZodNullableDef, mod_ZodNullableType as ZodNullableType, mod_ZodNumberCheck as ZodNumberCheck, mod_ZodNumberDef as ZodNumberDef, mod_ZodObjectDef as ZodObjectDef, mod_ZodOptionalDef as ZodOptionalDef, mod_ZodOptionalType as ZodOptionalType, mod_ZodParsedType as ZodParsedType, mod_ZodPipelineDef as ZodPipelineDef, mod_ZodPromiseDef as ZodPromiseDef, mod_ZodRawShape as ZodRawShape, mod_ZodRecordDef as ZodRecordDef, mod_ZodSetDef as ZodSetDef, mod_ZodStringCheck as ZodStringCheck, mod_ZodStringDef as ZodStringDef, mod_ZodSymbolDef as ZodSymbolDef, mod_ZodTooBigIssue as ZodTooBigIssue, mod_ZodTooSmallIssue as ZodTooSmallIssue, mod_ZodTupleDef as ZodTupleDef, mod_ZodTupleItems as ZodTupleItems, mod_ZodTypeAny as ZodTypeAny, mod_ZodTypeDef as ZodTypeDef, mod_ZodUndefinedDef as ZodUndefinedDef, mod_ZodUnionDef as ZodUnionDef, mod_ZodUnionOptions as ZodUnionOptions, mod_ZodUnknownDef as ZodUnknownDef, mod_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, mod_ZodVoidDef as ZodVoidDef, mod_arrayOutputType as arrayOutputType, mod_baseObjectInputType as baseObjectInputType, mod_baseObjectOutputType as baseObjectOutputType, mod_deoptional as deoptional, mod_extendShape as extendShape, TypeOf as infer, mod_inferFlattenedErrors as inferFlattenedErrors, mod_inferFormattedError as inferFormattedError, mod_input as input, mod_mergeTypes as mergeTypes, mod_noUnrecognized as noUnrecognized, mod_objectInputType as objectInputType, mod_objectKeyMask as objectKeyMask, mod_objectOutputType as objectOutputType, mod_output as output, mod_processType as processType, mod_typeToFlattenedError as typeToFlattenedError, mod_typecast as typecast }; } export { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, mod as z }; export type { AnyZodObject, AnyZodTuple, ArrayCardinality, ArrayKeys, AssertArray, AsyncParseReturnType, CustomErrorParams, DenormalizedError, Effect, EnumLike, EnumValues, ErrorMapCtx, FilterEnum, Indices, InnerTypeOfFunction, InputTypeOfTuple, InputTypeOfTupleWithRest, IssueData, KeySchema, ObjectPair, OuterTypeOfFunction, OutputTypeOfTuple, OutputTypeOfTupleWithRest, ParseContext, ParseInput, ParseParams, ParsePath, ParsePathComponent, ParseResult, ParseReturnType, PreprocessEffect, Primitive, ProcessedCreateParams, RawCreateParams, RecordType, Refinement, RefinementCtx, RefinementEffect, SafeParseError, SafeParseReturnType, SafeParseSuccess, Scalars, SomeZodObject, StringValidation, SuperRefinement, SyncParseReturnType, TransformEffect, TypeOf, UnknownKeysParam, Values, Writeable, ZodAnyDef, ZodArrayDef, ZodBigIntDef, ZodBooleanDef, ZodBrandedDef, ZodCatchDef, ZodCustomIssue, ZodDateCheck, ZodDateDef, ZodDefaultDef, ZodDiscriminatedUnionDef, ZodDiscriminatedUnionOption, ZodEffectsDef, ZodEnumDef, ZodErrorMap, ZodFirstPartySchemaTypes, ZodFormattedError, ZodFunctionDef, ZodIntersectionDef, ZodInvalidArgumentsIssue, ZodInvalidDateIssue, ZodInvalidEnumValueIssue, ZodInvalidIntersectionTypesIssue, ZodInvalidLiteralIssue, ZodInvalidReturnTypeIssue, ZodInvalidStringIssue, ZodInvalidTypeIssue, ZodInvalidUnionDiscriminatorIssue, ZodInvalidUnionIssue, ZodIssue, ZodIssueBase, ZodIssueOptionalMessage, ZodLazyDef, ZodLiteralDef, ZodMapDef, ZodNaNDef, ZodNativeEnumDef, ZodNeverDef, ZodNonEmptyArray, ZodNotFiniteIssue, ZodNotMultipleOfIssue, ZodNullDef, ZodNullableDef, ZodNullableType, ZodNumberCheck, ZodNumberDef, ZodObjectDef, ZodOptionalDef, ZodOptionalType, ZodPipelineDef, ZodPromiseDef, ZodRawShape, ZodRecordDef, ZodSetDef, ZodStringCheck, ZodStringDef, ZodSymbolDef, ZodTooBigIssue, ZodTooSmallIssue, ZodTupleDef, ZodTupleItems, ZodTypeAny, ZodTypeDef, ZodUndefinedDef, ZodUnionDef, ZodUnionOptions, ZodUnknownDef, ZodUnrecognizedKeysIssue, ZodVoidDef, arrayOutputType, baseObjectInputType, baseObjectOutputType, deoptional, extendShape, TypeOf as infer, inferFlattenedErrors, inferFormattedError, input, mergeTypes, noUnrecognized, objectInputType, objectKeyMask, objectOutputType, output, processType, typeToFlattenedError, typecast };