@rspack/core 0.6.4 → 0.6.5-canary-73c31ab-20240510004618

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/compiled/browserslist/index.d.ts +1 -0
  2. package/compiled/browserslist/index.js +2028 -0
  3. package/compiled/browserslist/license +20 -0
  4. package/compiled/browserslist/package.json +1 -0
  5. package/compiled/graceful-fs/index.d.ts +13 -0
  6. package/compiled/graceful-fs/index.js +1063 -0
  7. package/compiled/graceful-fs/license +15 -0
  8. package/compiled/graceful-fs/package.json +1 -0
  9. package/compiled/json-parse-even-better-errors/index.d.ts +1 -0
  10. package/compiled/json-parse-even-better-errors/index.js +193 -0
  11. package/compiled/json-parse-even-better-errors/package.json +1 -0
  12. package/compiled/neo-async/index.d.ts +685 -0
  13. package/compiled/neo-async/index.js +9207 -0
  14. package/compiled/neo-async/license +22 -0
  15. package/compiled/neo-async/package.json +1 -0
  16. package/compiled/watchpack/index.d.ts +216 -0
  17. package/compiled/watchpack/index.js +2075 -0
  18. package/compiled/watchpack/license +20 -0
  19. package/compiled/watchpack/package.json +1 -0
  20. package/compiled/zod/index.d.ts +1647 -0
  21. package/compiled/zod/index.js +4208 -0
  22. package/compiled/zod/license +21 -0
  23. package/compiled/zod/package.json +1 -0
  24. package/compiled/zod-validation-error/index.d.ts +188 -0
  25. package/compiled/zod-validation-error/index.js +4367 -0
  26. package/compiled/zod-validation-error/license +9 -0
  27. package/compiled/zod-validation-error/package.json +1 -0
  28. package/dist/ChunkGroup.d.ts +2 -0
  29. package/dist/ChunkGroup.js +4 -0
  30. package/dist/Compiler.d.ts +2 -2
  31. package/dist/MultiCompiler.js +1 -1
  32. package/dist/MultiWatching.js +1 -1
  33. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/BannerPlugin.js +1 -1
  35. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/HtmlRspackPlugin.js +1 -1
  37. package/dist/builtin-plugin/IgnorePlugin.js +1 -1
  38. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +15 -0
  39. package/dist/builtin-plugin/SizeLimitsPlugin.js +9 -0
  40. package/dist/builtin-plugin/index.d.ts +1 -0
  41. package/dist/builtin-plugin/index.js +1 -0
  42. package/dist/config/browserslistTargetHandler.js +1 -1
  43. package/dist/config/defaults.js +15 -0
  44. package/dist/config/normalization.d.ts +2 -1
  45. package/dist/config/normalization.js +1 -0
  46. package/dist/config/zod.d.ts +60 -6
  47. package/dist/config/zod.js +16 -2
  48. package/dist/exports.d.ts +2 -0
  49. package/dist/exports.js +15 -10
  50. package/dist/lib/CacheFacade.js +1 -1
  51. package/dist/loader-runner/index.js +1 -1
  52. package/dist/node/NodeEnvironmentPlugin.js +1 -1
  53. package/dist/node/NodeWatchFileSystem.d.ts +3 -3
  54. package/dist/node/NodeWatchFileSystem.js +1 -1
  55. package/dist/rspackOptionsApply.js +4 -1
  56. package/dist/util/validate.d.ts +1 -1
  57. package/dist/util/validate.js +1 -1
  58. package/package.json +21 -14
@@ -0,0 +1,1647 @@
1
+ declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
2
+ declare type Scalars = Primitive | Primitive[];
3
+
4
+ declare namespace util {
5
+ type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
6
+ export type isAny<T> = 0 extends 1 & T ? true : false;
7
+ export const assertEqual: <A, B>(val: AssertEqual<A, B>) => AssertEqual<A, B>;
8
+ export function assertIs<T>(_arg: T): void;
9
+ export function assertNever(_x: never): never;
10
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
11
+ export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
12
+ export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
13
+ export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
14
+ export const getValidEnumValues: (obj: any) => any[];
15
+ export const objectValues: (obj: any) => any[];
16
+ export const objectKeys: ObjectConstructor["keys"];
17
+ export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;
18
+ export type identity<T> = objectUtil.identity<T>;
19
+ export type flatten<T> = objectUtil.flatten<T>;
20
+ export type noUndefined<T> = T extends undefined ? never : T;
21
+ export const isInteger: NumberConstructor["isInteger"];
22
+ export function joinValues<T extends any[]>(array: T, separator?: string): string;
23
+ export const jsonStringifyReplacer: (_: string, value: any) => any;
24
+ export { };
25
+ }
26
+ declare namespace objectUtil {
27
+ export type MergeShapes<U, V> = {
28
+ [k in Exclude<keyof U, keyof V>]: U[k];
29
+ } & V;
30
+ type requiredKeys<T extends object> = {
31
+ [k in keyof T]: undefined extends T[k] ? never : k;
32
+ }[keyof T];
33
+ export type addQuestionMarks<T extends object, R extends keyof T = requiredKeys<T>> = Pick<Required<T>, R> & Partial<T>;
34
+ export type identity<T> = T;
35
+ export type flatten<T> = identity<{
36
+ [k in keyof T]: T[k];
37
+ }>;
38
+ export type noNeverKeys<T> = {
39
+ [k in keyof T]: [T[k]] extends [never] ? never : k;
40
+ }[keyof T];
41
+ export type noNever<T> = identity<{
42
+ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
43
+ }>;
44
+ export const mergeShapes: <U, T>(first: U, second: T) => T & U;
45
+ export type extendShape<A, B> = flatten<Omit<A, keyof B> & B>;
46
+ export { };
47
+ }
48
+ declare const ZodParsedType: {
49
+ function: "function";
50
+ number: "number";
51
+ string: "string";
52
+ nan: "nan";
53
+ integer: "integer";
54
+ float: "float";
55
+ boolean: "boolean";
56
+ date: "date";
57
+ bigint: "bigint";
58
+ symbol: "symbol";
59
+ undefined: "undefined";
60
+ null: "null";
61
+ array: "array";
62
+ object: "object";
63
+ unknown: "unknown";
64
+ promise: "promise";
65
+ void: "void";
66
+ never: "never";
67
+ map: "map";
68
+ set: "set";
69
+ };
70
+ declare type ZodParsedType = keyof typeof ZodParsedType;
71
+ declare const getParsedType: (data: any) => ZodParsedType;
72
+
73
+ declare type allKeys<T> = T extends any ? keyof T : never;
74
+ declare type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;
75
+ declare type typeToFlattenedError<T, U = string> = {
76
+ formErrors: U[];
77
+ fieldErrors: {
78
+ [P in allKeys<T>]?: U[];
79
+ };
80
+ };
81
+ declare const ZodIssueCode: {
82
+ invalid_type: "invalid_type";
83
+ invalid_literal: "invalid_literal";
84
+ custom: "custom";
85
+ invalid_union: "invalid_union";
86
+ invalid_union_discriminator: "invalid_union_discriminator";
87
+ invalid_enum_value: "invalid_enum_value";
88
+ unrecognized_keys: "unrecognized_keys";
89
+ invalid_arguments: "invalid_arguments";
90
+ invalid_return_type: "invalid_return_type";
91
+ invalid_date: "invalid_date";
92
+ invalid_string: "invalid_string";
93
+ too_small: "too_small";
94
+ too_big: "too_big";
95
+ invalid_intersection_types: "invalid_intersection_types";
96
+ not_multiple_of: "not_multiple_of";
97
+ not_finite: "not_finite";
98
+ };
99
+ declare type ZodIssueCode = keyof typeof ZodIssueCode;
100
+ declare type ZodIssueBase = {
101
+ path: (string | number)[];
102
+ message?: string;
103
+ };
104
+ interface ZodInvalidTypeIssue extends ZodIssueBase {
105
+ code: typeof ZodIssueCode.invalid_type;
106
+ expected: ZodParsedType;
107
+ received: ZodParsedType;
108
+ }
109
+ interface ZodInvalidLiteralIssue extends ZodIssueBase {
110
+ code: typeof ZodIssueCode.invalid_literal;
111
+ expected: unknown;
112
+ received: unknown;
113
+ }
114
+ interface ZodUnrecognizedKeysIssue extends ZodIssueBase {
115
+ code: typeof ZodIssueCode.unrecognized_keys;
116
+ keys: string[];
117
+ }
118
+ interface ZodInvalidUnionIssue extends ZodIssueBase {
119
+ code: typeof ZodIssueCode.invalid_union;
120
+ unionErrors: ZodError[];
121
+ }
122
+ interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {
123
+ code: typeof ZodIssueCode.invalid_union_discriminator;
124
+ options: Primitive[];
125
+ }
126
+ interface ZodInvalidEnumValueIssue extends ZodIssueBase {
127
+ received: string | number;
128
+ code: typeof ZodIssueCode.invalid_enum_value;
129
+ options: (string | number)[];
130
+ }
131
+ interface ZodInvalidArgumentsIssue extends ZodIssueBase {
132
+ code: typeof ZodIssueCode.invalid_arguments;
133
+ argumentsError: ZodError;
134
+ }
135
+ interface ZodInvalidReturnTypeIssue extends ZodIssueBase {
136
+ code: typeof ZodIssueCode.invalid_return_type;
137
+ returnTypeError: ZodError;
138
+ }
139
+ interface ZodInvalidDateIssue extends ZodIssueBase {
140
+ code: typeof ZodIssueCode.invalid_date;
141
+ }
142
+ declare type StringValidation = "email" | "url" | "emoji" | "uuid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "ip" | {
143
+ includes: string;
144
+ position?: number;
145
+ } | {
146
+ startsWith: string;
147
+ } | {
148
+ endsWith: string;
149
+ };
150
+ interface ZodInvalidStringIssue extends ZodIssueBase {
151
+ code: typeof ZodIssueCode.invalid_string;
152
+ validation: StringValidation;
153
+ }
154
+ interface ZodTooSmallIssue extends ZodIssueBase {
155
+ code: typeof ZodIssueCode.too_small;
156
+ minimum: number | bigint;
157
+ inclusive: boolean;
158
+ exact?: boolean;
159
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
160
+ }
161
+ interface ZodTooBigIssue extends ZodIssueBase {
162
+ code: typeof ZodIssueCode.too_big;
163
+ maximum: number | bigint;
164
+ inclusive: boolean;
165
+ exact?: boolean;
166
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
167
+ }
168
+ interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {
169
+ code: typeof ZodIssueCode.invalid_intersection_types;
170
+ }
171
+ interface ZodNotMultipleOfIssue extends ZodIssueBase {
172
+ code: typeof ZodIssueCode.not_multiple_of;
173
+ multipleOf: number | bigint;
174
+ }
175
+ interface ZodNotFiniteIssue extends ZodIssueBase {
176
+ code: typeof ZodIssueCode.not_finite;
177
+ }
178
+ interface ZodCustomIssue extends ZodIssueBase {
179
+ code: typeof ZodIssueCode.custom;
180
+ params?: {
181
+ [k: string]: any;
182
+ };
183
+ }
184
+ declare type DenormalizedError = {
185
+ [k: string]: DenormalizedError | string[];
186
+ };
187
+ declare type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
188
+ declare type ZodIssue = ZodIssueOptionalMessage & {
189
+ fatal?: boolean;
190
+ message: string;
191
+ };
192
+ declare const quotelessJson: (obj: any) => string;
193
+ declare type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? {
194
+ [K in keyof T]?: ZodFormattedError<T[K]>;
195
+ } : T extends any[] ? {
196
+ [k: number]: ZodFormattedError<T[number]>;
197
+ } : T extends object ? {
198
+ [K in keyof T]?: ZodFormattedError<T[K]>;
199
+ } : unknown;
200
+ declare type ZodFormattedError<T, U = string> = {
201
+ _errors: U[];
202
+ } & recursiveZodFormattedError<NonNullable<T>>;
203
+ declare type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;
204
+ declare class ZodError<T = any> extends Error {
205
+ issues: ZodIssue[];
206
+ get errors(): ZodIssue[];
207
+ constructor(issues: ZodIssue[]);
208
+ format(): ZodFormattedError<T>;
209
+ format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;
210
+ static create: (issues: ZodIssue[]) => ZodError<any>;
211
+ toString(): string;
212
+ get message(): string;
213
+ get isEmpty(): boolean;
214
+ addIssue: (sub: ZodIssue) => void;
215
+ addIssues: (subs?: ZodIssue[]) => void;
216
+ flatten(): typeToFlattenedError<T>;
217
+ flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;
218
+ get formErrors(): typeToFlattenedError<T, string>;
219
+ }
220
+ declare type stripPath<T extends object> = T extends any ? util.OmitKeys<T, "path"> : never;
221
+ declare type IssueData = stripPath<ZodIssueOptionalMessage> & {
222
+ path?: (string | number)[];
223
+ fatal?: boolean;
224
+ };
225
+ declare type ErrorMapCtx = {
226
+ defaultError: string;
227
+ data: any;
228
+ };
229
+ declare type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
230
+ message: string;
231
+ };
232
+
233
+ declare const errorMap: ZodErrorMap;
234
+
235
+ declare function setErrorMap(map: ZodErrorMap): void;
236
+ declare function getErrorMap(): ZodErrorMap;
237
+
238
+ declare const makeIssue: (params: {
239
+ data: any;
240
+ path: (string | number)[];
241
+ errorMaps: ZodErrorMap[];
242
+ issueData: IssueData;
243
+ }) => ZodIssue;
244
+ declare type ParseParams = {
245
+ path: (string | number)[];
246
+ errorMap: ZodErrorMap;
247
+ async: boolean;
248
+ };
249
+ declare type ParsePathComponent = string | number;
250
+ declare type ParsePath = ParsePathComponent[];
251
+ declare const EMPTY_PATH: ParsePath;
252
+ interface ParseContext {
253
+ readonly common: {
254
+ readonly issues: ZodIssue[];
255
+ readonly contextualErrorMap?: ZodErrorMap;
256
+ readonly async: boolean;
257
+ };
258
+ readonly path: ParsePath;
259
+ readonly schemaErrorMap?: ZodErrorMap;
260
+ readonly parent: ParseContext | null;
261
+ readonly data: any;
262
+ readonly parsedType: ZodParsedType;
263
+ }
264
+ declare type ParseInput = {
265
+ data: any;
266
+ path: (string | number)[];
267
+ parent: ParseContext;
268
+ };
269
+ declare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;
270
+ declare type ObjectPair = {
271
+ key: SyncParseReturnType<any>;
272
+ value: SyncParseReturnType<any>;
273
+ };
274
+ declare class ParseStatus {
275
+ value: "aborted" | "dirty" | "valid";
276
+ dirty(): void;
277
+ abort(): void;
278
+ static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;
279
+ static mergeObjectAsync(status: ParseStatus, pairs: {
280
+ key: ParseReturnType<any>;
281
+ value: ParseReturnType<any>;
282
+ }[]): Promise<SyncParseReturnType<any>>;
283
+ static mergeObjectSync(status: ParseStatus, pairs: {
284
+ key: SyncParseReturnType<any>;
285
+ value: SyncParseReturnType<any>;
286
+ alwaysSet?: boolean;
287
+ }[]): SyncParseReturnType;
288
+ }
289
+ interface ParseResult {
290
+ status: "aborted" | "dirty" | "valid";
291
+ data: any;
292
+ }
293
+ declare type INVALID = {
294
+ status: "aborted";
295
+ };
296
+ declare const INVALID: INVALID;
297
+ declare type DIRTY<T> = {
298
+ status: "dirty";
299
+ value: T;
300
+ };
301
+ declare const DIRTY: <T>(value: T) => DIRTY<T>;
302
+ declare type OK<T> = {
303
+ status: "valid";
304
+ value: T;
305
+ };
306
+ declare const OK: <T>(value: T) => OK<T>;
307
+ declare type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
308
+ declare type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
309
+ declare type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
310
+ declare const isAborted: (x: ParseReturnType<any>) => x is INVALID;
311
+ declare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;
312
+ declare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;
313
+ declare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;
314
+
315
+ declare namespace enumUtil {
316
+ type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends (k: infer Intersection) => void ? Intersection : never;
317
+ type GetUnionLast<T> = UnionToIntersectionFn<T> extends () => infer Last ? Last : never;
318
+ type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
319
+ type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
320
+ export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
321
+ export { };
322
+ }
323
+
324
+ declare namespace errorUtil {
325
+ type ErrMessage = string | {
326
+ message?: string;
327
+ };
328
+ const errToObj: (message?: ErrMessage | undefined) => {
329
+ message?: string | undefined;
330
+ };
331
+ const toString: (message?: ErrMessage | undefined) => string | undefined;
332
+ }
333
+
334
+ declare namespace partialUtil {
335
+ type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{
336
+ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>>;
337
+ }, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? {
338
+ [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;
339
+ } extends infer PI ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
340
+ }
341
+
342
+ declare type RefinementCtx = {
343
+ addIssue: (arg: IssueData) => void;
344
+ path: (string | number)[];
345
+ };
346
+ declare type ZodRawShape = {
347
+ [k: string]: ZodTypeAny;
348
+ };
349
+ declare type ZodTypeAny = ZodType<any, any, any>;
350
+ declare type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
351
+ declare type input<T extends ZodType<any, any, any>> = T["_input"];
352
+ declare type output<T extends ZodType<any, any, any>> = T["_output"];
353
+
354
+ declare type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
355
+ interface ZodTypeDef {
356
+ errorMap?: ZodErrorMap;
357
+ description?: string;
358
+ }
359
+ declare type RawCreateParams = {
360
+ errorMap?: ZodErrorMap;
361
+ invalid_type_error?: string;
362
+ required_error?: string;
363
+ description?: string;
364
+ } | undefined;
365
+ declare type ProcessedCreateParams = {
366
+ errorMap?: ZodErrorMap;
367
+ description?: string;
368
+ };
369
+ declare type SafeParseSuccess<Output> = {
370
+ success: true;
371
+ data: Output;
372
+ };
373
+ declare type SafeParseError<Input> = {
374
+ success: false;
375
+ error: ZodError<Input>;
376
+ };
377
+ declare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
378
+ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
379
+ readonly _type: Output;
380
+ readonly _output: Output;
381
+ readonly _input: Input;
382
+ readonly _def: Def;
383
+ get description(): string | undefined;
384
+ abstract _parse(input: ParseInput): ParseReturnType<Output>;
385
+ _getType(input: ParseInput): string;
386
+ _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;
387
+ _processInputParams(input: ParseInput): {
388
+ status: ParseStatus;
389
+ ctx: ParseContext;
390
+ };
391
+ _parseSync(input: ParseInput): SyncParseReturnType<Output>;
392
+ _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
393
+ parse(data: unknown, params?: Partial<ParseParams>): Output;
394
+ safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
395
+ parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
396
+ safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
397
+ /** Alias of safeParseAsync */
398
+ spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
399
+ refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
400
+ refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
401
+ refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>;
402
+ refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input>;
403
+ _refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>;
404
+ superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
405
+ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;
406
+ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;
407
+ constructor(def: Def);
408
+ optional(): ZodOptional<this>;
409
+ nullable(): ZodNullable<this>;
410
+ nullish(): ZodOptional<ZodNullable<this>>;
411
+ array(): ZodArray<this>;
412
+ promise(): ZodPromise<this>;
413
+ or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;
414
+ and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;
415
+ transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;
416
+ default(def: util.noUndefined<Input>): ZodDefault<this>;
417
+ default(def: () => util.noUndefined<Input>): ZodDefault<this>;
418
+ brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;
419
+ catch(def: Output): ZodCatch<this>;
420
+ catch(def: (ctx: {
421
+ error: ZodError;
422
+ input: Input;
423
+ }) => Output): ZodCatch<this>;
424
+ describe(description: string): this;
425
+ pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;
426
+ readonly(): ZodReadonly<this>;
427
+ isOptional(): boolean;
428
+ isNullable(): boolean;
429
+ }
430
+ declare type IpVersion = "v4" | "v6";
431
+ declare type ZodStringCheck = {
432
+ kind: "min";
433
+ value: number;
434
+ message?: string;
435
+ } | {
436
+ kind: "max";
437
+ value: number;
438
+ message?: string;
439
+ } | {
440
+ kind: "length";
441
+ value: number;
442
+ message?: string;
443
+ } | {
444
+ kind: "email";
445
+ message?: string;
446
+ } | {
447
+ kind: "url";
448
+ message?: string;
449
+ } | {
450
+ kind: "emoji";
451
+ message?: string;
452
+ } | {
453
+ kind: "uuid";
454
+ message?: string;
455
+ } | {
456
+ kind: "cuid";
457
+ message?: string;
458
+ } | {
459
+ kind: "includes";
460
+ value: string;
461
+ position?: number;
462
+ message?: string;
463
+ } | {
464
+ kind: "cuid2";
465
+ message?: string;
466
+ } | {
467
+ kind: "ulid";
468
+ message?: string;
469
+ } | {
470
+ kind: "startsWith";
471
+ value: string;
472
+ message?: string;
473
+ } | {
474
+ kind: "endsWith";
475
+ value: string;
476
+ message?: string;
477
+ } | {
478
+ kind: "regex";
479
+ regex: RegExp;
480
+ message?: string;
481
+ } | {
482
+ kind: "trim";
483
+ message?: string;
484
+ } | {
485
+ kind: "toLowerCase";
486
+ message?: string;
487
+ } | {
488
+ kind: "toUpperCase";
489
+ message?: string;
490
+ } | {
491
+ kind: "datetime";
492
+ offset: boolean;
493
+ precision: number | null;
494
+ message?: string;
495
+ } | {
496
+ kind: "ip";
497
+ version?: IpVersion;
498
+ message?: string;
499
+ };
500
+ interface ZodStringDef extends ZodTypeDef {
501
+ checks: ZodStringCheck[];
502
+ typeName: ZodFirstPartyTypeKind.ZodString;
503
+ coerce: boolean;
504
+ }
505
+ declare class ZodString extends ZodType<string, ZodStringDef> {
506
+ _parse(input: ParseInput): ParseReturnType<string>;
507
+ protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
508
+ _addCheck(check: ZodStringCheck): ZodString;
509
+ email(message?: errorUtil.ErrMessage): ZodString;
510
+ url(message?: errorUtil.ErrMessage): ZodString;
511
+ emoji(message?: errorUtil.ErrMessage): ZodString;
512
+ uuid(message?: errorUtil.ErrMessage): ZodString;
513
+ cuid(message?: errorUtil.ErrMessage): ZodString;
514
+ cuid2(message?: errorUtil.ErrMessage): ZodString;
515
+ ulid(message?: errorUtil.ErrMessage): ZodString;
516
+ ip(options?: string | {
517
+ version?: "v4" | "v6";
518
+ message?: string;
519
+ }): ZodString;
520
+ datetime(options?: string | {
521
+ message?: string | undefined;
522
+ precision?: number | null;
523
+ offset?: boolean;
524
+ }): ZodString;
525
+ regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString;
526
+ includes(value: string, options?: {
527
+ message?: string;
528
+ position?: number;
529
+ }): ZodString;
530
+ startsWith(value: string, message?: errorUtil.ErrMessage): ZodString;
531
+ endsWith(value: string, message?: errorUtil.ErrMessage): ZodString;
532
+ min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
533
+ max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
534
+ length(len: number, message?: errorUtil.ErrMessage): ZodString;
535
+ /**
536
+ * @deprecated Use z.string().min(1) instead.
537
+ * @see {@link ZodString.min}
538
+ */
539
+ nonempty(message?: errorUtil.ErrMessage): ZodString;
540
+ trim(): ZodString;
541
+ toLowerCase(): ZodString;
542
+ toUpperCase(): ZodString;
543
+ get isDatetime(): boolean;
544
+ get isEmail(): boolean;
545
+ get isURL(): boolean;
546
+ get isEmoji(): boolean;
547
+ get isUUID(): boolean;
548
+ get isCUID(): boolean;
549
+ get isCUID2(): boolean;
550
+ get isULID(): boolean;
551
+ get isIP(): boolean;
552
+ get minLength(): number | null;
553
+ get maxLength(): number | null;
554
+ static create: (params?: ({
555
+ errorMap?: ZodErrorMap | undefined;
556
+ invalid_type_error?: string | undefined;
557
+ required_error?: string | undefined;
558
+ description?: string | undefined;
559
+ } & {
560
+ coerce?: true | undefined;
561
+ }) | undefined) => ZodString;
562
+ }
563
+ declare type ZodNumberCheck = {
564
+ kind: "min";
565
+ value: number;
566
+ inclusive: boolean;
567
+ message?: string;
568
+ } | {
569
+ kind: "max";
570
+ value: number;
571
+ inclusive: boolean;
572
+ message?: string;
573
+ } | {
574
+ kind: "int";
575
+ message?: string;
576
+ } | {
577
+ kind: "multipleOf";
578
+ value: number;
579
+ message?: string;
580
+ } | {
581
+ kind: "finite";
582
+ message?: string;
583
+ };
584
+ interface ZodNumberDef extends ZodTypeDef {
585
+ checks: ZodNumberCheck[];
586
+ typeName: ZodFirstPartyTypeKind.ZodNumber;
587
+ coerce: boolean;
588
+ }
589
+ declare class ZodNumber extends ZodType<number, ZodNumberDef> {
590
+ _parse(input: ParseInput): ParseReturnType<number>;
591
+ static create: (params?: ({
592
+ errorMap?: ZodErrorMap | undefined;
593
+ invalid_type_error?: string | undefined;
594
+ required_error?: string | undefined;
595
+ description?: string | undefined;
596
+ } & {
597
+ coerce?: boolean | undefined;
598
+ }) | undefined) => ZodNumber;
599
+ gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
600
+ min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;
601
+ gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
602
+ lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
603
+ max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;
604
+ lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
605
+ protected setLimit(kind: "min" | "max", value: number, inclusive: boolean, message?: string): ZodNumber;
606
+ _addCheck(check: ZodNumberCheck): ZodNumber;
607
+ int(message?: errorUtil.ErrMessage): ZodNumber;
608
+ positive(message?: errorUtil.ErrMessage): ZodNumber;
609
+ negative(message?: errorUtil.ErrMessage): ZodNumber;
610
+ nonpositive(message?: errorUtil.ErrMessage): ZodNumber;
611
+ nonnegative(message?: errorUtil.ErrMessage): ZodNumber;
612
+ multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;
613
+ step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;
614
+ finite(message?: errorUtil.ErrMessage): ZodNumber;
615
+ safe(message?: errorUtil.ErrMessage): ZodNumber;
616
+ get minValue(): number | null;
617
+ get maxValue(): number | null;
618
+ get isInt(): boolean;
619
+ get isFinite(): boolean;
620
+ }
621
+ declare type ZodBigIntCheck = {
622
+ kind: "min";
623
+ value: bigint;
624
+ inclusive: boolean;
625
+ message?: string;
626
+ } | {
627
+ kind: "max";
628
+ value: bigint;
629
+ inclusive: boolean;
630
+ message?: string;
631
+ } | {
632
+ kind: "multipleOf";
633
+ value: bigint;
634
+ message?: string;
635
+ };
636
+ interface ZodBigIntDef extends ZodTypeDef {
637
+ checks: ZodBigIntCheck[];
638
+ typeName: ZodFirstPartyTypeKind.ZodBigInt;
639
+ coerce: boolean;
640
+ }
641
+ declare class ZodBigInt extends ZodType<bigint, ZodBigIntDef> {
642
+ _parse(input: ParseInput): ParseReturnType<bigint>;
643
+ static create: (params?: ({
644
+ errorMap?: ZodErrorMap | undefined;
645
+ invalid_type_error?: string | undefined;
646
+ required_error?: string | undefined;
647
+ description?: string | undefined;
648
+ } & {
649
+ coerce?: boolean | undefined;
650
+ }) | undefined) => ZodBigInt;
651
+ gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
652
+ min: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;
653
+ gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
654
+ lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
655
+ max: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;
656
+ lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
657
+ protected setLimit(kind: "min" | "max", value: bigint, inclusive: boolean, message?: string): ZodBigInt;
658
+ _addCheck(check: ZodBigIntCheck): ZodBigInt;
659
+ positive(message?: errorUtil.ErrMessage): ZodBigInt;
660
+ negative(message?: errorUtil.ErrMessage): ZodBigInt;
661
+ nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;
662
+ nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;
663
+ multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
664
+ get minValue(): bigint | null;
665
+ get maxValue(): bigint | null;
666
+ }
667
+ interface ZodBooleanDef extends ZodTypeDef {
668
+ typeName: ZodFirstPartyTypeKind.ZodBoolean;
669
+ coerce: boolean;
670
+ }
671
+ declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef> {
672
+ _parse(input: ParseInput): ParseReturnType<boolean>;
673
+ static create: (params?: ({
674
+ errorMap?: ZodErrorMap | undefined;
675
+ invalid_type_error?: string | undefined;
676
+ required_error?: string | undefined;
677
+ description?: string | undefined;
678
+ } & {
679
+ coerce?: boolean | undefined;
680
+ }) | undefined) => ZodBoolean;
681
+ }
682
+ declare type ZodDateCheck = {
683
+ kind: "min";
684
+ value: number;
685
+ message?: string;
686
+ } | {
687
+ kind: "max";
688
+ value: number;
689
+ message?: string;
690
+ };
691
+ interface ZodDateDef extends ZodTypeDef {
692
+ checks: ZodDateCheck[];
693
+ coerce: boolean;
694
+ typeName: ZodFirstPartyTypeKind.ZodDate;
695
+ }
696
+ declare class ZodDate extends ZodType<Date, ZodDateDef> {
697
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
698
+ _addCheck(check: ZodDateCheck): ZodDate;
699
+ min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;
700
+ max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;
701
+ get minDate(): Date | null;
702
+ get maxDate(): Date | null;
703
+ static create: (params?: ({
704
+ errorMap?: ZodErrorMap | undefined;
705
+ invalid_type_error?: string | undefined;
706
+ required_error?: string | undefined;
707
+ description?: string | undefined;
708
+ } & {
709
+ coerce?: boolean | undefined;
710
+ }) | undefined) => ZodDate;
711
+ }
712
+ interface ZodSymbolDef extends ZodTypeDef {
713
+ typeName: ZodFirstPartyTypeKind.ZodSymbol;
714
+ }
715
+ declare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {
716
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
717
+ static create: (params?: RawCreateParams) => ZodSymbol;
718
+ }
719
+ interface ZodUndefinedDef extends ZodTypeDef {
720
+ typeName: ZodFirstPartyTypeKind.ZodUndefined;
721
+ }
722
+ declare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef> {
723
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
724
+ params?: RawCreateParams;
725
+ static create: (params?: RawCreateParams) => ZodUndefined;
726
+ }
727
+ interface ZodNullDef extends ZodTypeDef {
728
+ typeName: ZodFirstPartyTypeKind.ZodNull;
729
+ }
730
+ declare class ZodNull extends ZodType<null, ZodNullDef> {
731
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
732
+ static create: (params?: RawCreateParams) => ZodNull;
733
+ }
734
+ interface ZodAnyDef extends ZodTypeDef {
735
+ typeName: ZodFirstPartyTypeKind.ZodAny;
736
+ }
737
+ declare class ZodAny extends ZodType<any, ZodAnyDef> {
738
+ _any: true;
739
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
740
+ static create: (params?: RawCreateParams) => ZodAny;
741
+ }
742
+ interface ZodUnknownDef extends ZodTypeDef {
743
+ typeName: ZodFirstPartyTypeKind.ZodUnknown;
744
+ }
745
+ declare class ZodUnknown extends ZodType<unknown, ZodUnknownDef> {
746
+ _unknown: true;
747
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
748
+ static create: (params?: RawCreateParams) => ZodUnknown;
749
+ }
750
+ interface ZodNeverDef extends ZodTypeDef {
751
+ typeName: ZodFirstPartyTypeKind.ZodNever;
752
+ }
753
+ declare class ZodNever extends ZodType<never, ZodNeverDef> {
754
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
755
+ static create: (params?: RawCreateParams) => ZodNever;
756
+ }
757
+ interface ZodVoidDef extends ZodTypeDef {
758
+ typeName: ZodFirstPartyTypeKind.ZodVoid;
759
+ }
760
+ declare class ZodVoid extends ZodType<void, ZodVoidDef> {
761
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
762
+ static create: (params?: RawCreateParams) => ZodVoid;
763
+ }
764
+ interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
765
+ type: T;
766
+ typeName: ZodFirstPartyTypeKind.ZodArray;
767
+ exactLength: {
768
+ value: number;
769
+ message?: string;
770
+ } | null;
771
+ minLength: {
772
+ value: number;
773
+ message?: string;
774
+ } | null;
775
+ maxLength: {
776
+ value: number;
777
+ message?: string;
778
+ } | null;
779
+ }
780
+ declare type ArrayCardinality = "many" | "atleastone";
781
+ declare type arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> = Cardinality extends "atleastone" ? [T["_output"], ...T["_output"][]] : T["_output"][];
782
+ declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> extends ZodType<arrayOutputType<T, Cardinality>, ZodArrayDef<T>, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]> {
783
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
784
+ get element(): T;
785
+ min(minLength: number, message?: errorUtil.ErrMessage): this;
786
+ max(maxLength: number, message?: errorUtil.ErrMessage): this;
787
+ length(len: number, message?: errorUtil.ErrMessage): this;
788
+ nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
789
+ static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, "many">;
790
+ }
791
+ declare type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, "atleastone">;
792
+ declare type UnknownKeysParam = "passthrough" | "strict" | "strip";
793
+ interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
794
+ typeName: ZodFirstPartyTypeKind.ZodObject;
795
+ shape: () => T;
796
+ catchall: Catchall;
797
+ unknownKeys: UnknownKeys;
798
+ }
799
+ declare type mergeTypes<A, B> = {
800
+ [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never;
801
+ };
802
+ declare type objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> & CatchallOutput<Catchall> & PassthroughType<UnknownKeys>;
803
+ declare type baseObjectOutputType<Shape extends ZodRawShape> = {
804
+ [k in keyof Shape]: Shape[k]["_output"];
805
+ };
806
+ declare type objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;
807
+ declare type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{
808
+ [k in keyof Shape]: Shape[k]["_input"];
809
+ }>;
810
+ declare type CatchallOutput<T extends ZodTypeAny> = ZodTypeAny extends T ? unknown : {
811
+ [k: string]: T["_output"];
812
+ };
813
+ declare type CatchallInput<T extends ZodTypeAny> = ZodTypeAny extends T ? unknown : {
814
+ [k: string]: T["_input"];
815
+ };
816
+ declare type PassthroughType<T extends UnknownKeysParam> = T extends "passthrough" ? {
817
+ [k: string]: unknown;
818
+ } : unknown;
819
+ declare type deoptional<T extends ZodTypeAny> = T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;
820
+ declare type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;
821
+ declare type noUnrecognized<Obj extends object, Shape extends object> = {
822
+ [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never;
823
+ };
824
+ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {
825
+ private _cached;
826
+ _getCached(): {
827
+ shape: T;
828
+ keys: string[];
829
+ };
830
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
831
+ get shape(): T;
832
+ strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
833
+ strip(): ZodObject<T, "strip", Catchall>;
834
+ passthrough(): ZodObject<T, "passthrough", Catchall>;
835
+ /**
836
+ * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
837
+ * If you want to pass through unknown properties, use `.passthrough()` instead.
838
+ */
839
+ nonstrict: () => ZodObject<T, "passthrough", Catchall>;
840
+ extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
841
+ /**
842
+ * @deprecated Use `.extend` instead
843
+ * */
844
+ augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, UnknownKeys, Catchall, objectOutputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, Catchall, UnknownKeys>, objectInputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, Catchall, UnknownKeys>>;
845
+ /**
846
+ * Prior to zod@1.0.12 there was a bug in the
847
+ * inferred type of merged objects. Please
848
+ * upgrade if you are experiencing issues.
849
+ */
850
+ merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
851
+ setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
852
+ [k in Key]: Schema;
853
+ }, UnknownKeys, Catchall>;
854
+ catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;
855
+ pick<Mask extends {
856
+ [k in keyof T]?: true;
857
+ }>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
858
+ omit<Mask extends {
859
+ [k in keyof T]?: true;
860
+ }>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
861
+ /**
862
+ * @deprecated
863
+ */
864
+ deepPartial(): partialUtil.DeepPartial<this>;
865
+ partial(): ZodObject<{
866
+ [k in keyof T]: ZodOptional<T[k]>;
867
+ }, UnknownKeys, Catchall>;
868
+ partial<Mask extends {
869
+ [k in keyof T]?: true;
870
+ }>(mask: Mask): ZodObject<objectUtil.noNever<{
871
+ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k];
872
+ }>, UnknownKeys, Catchall>;
873
+ required(): ZodObject<{
874
+ [k in keyof T]: deoptional<T[k]>;
875
+ }, UnknownKeys, Catchall>;
876
+ required<Mask extends {
877
+ [k in keyof T]?: true;
878
+ }>(mask: Mask): ZodObject<objectUtil.noNever<{
879
+ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];
880
+ }>, UnknownKeys, Catchall>;
881
+ keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
882
+ static create: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k; }[keyof T_1]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k; }[keyof T_1]>[k_1]; }, { [k_2 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_2]; }>;
883
+ static strictCreate: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strict", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k; }[keyof T_1]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k; }[keyof T_1]>[k_1]; }, { [k_2 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_2]; }>;
884
+ static lazycreate: <T_1 extends ZodRawShape>(shape: () => T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k; }[keyof T_1]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k; }[keyof T_1]>[k_1]; }, { [k_2 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_2]; }>;
885
+ }
886
+ declare type AnyZodObject = ZodObject<any, any, any>;
887
+ declare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
888
+ interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[
889
+ ZodTypeAny,
890
+ ZodTypeAny,
891
+ ...ZodTypeAny[]
892
+ ]>> extends ZodTypeDef {
893
+ options: T;
894
+ typeName: ZodFirstPartyTypeKind.ZodUnion;
895
+ }
896
+ declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
897
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
898
+ get options(): T;
899
+ static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T_1, params?: RawCreateParams) => ZodUnion<T_1>;
900
+ }
901
+ declare type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<{
902
+ [key in Discriminator]: ZodTypeAny;
903
+ } & ZodRawShape, UnknownKeysParam, ZodTypeAny>;
904
+ interface ZodDiscriminatedUnionDef<Discriminator extends string, Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[]> extends ZodTypeDef {
905
+ discriminator: Discriminator;
906
+ options: Options;
907
+ optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>;
908
+ typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;
909
+ }
910
+ declare class ZodDiscriminatedUnion<Discriminator extends string, Options extends ZodDiscriminatedUnionOption<Discriminator>[]> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> {
911
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
912
+ get discriminator(): Discriminator;
913
+ get options(): Options;
914
+ get optionsMap(): Map<Primitive, ZodDiscriminatedUnionOption<any>>;
915
+ /**
916
+ * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
917
+ * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
918
+ * have a different value for each object in the union.
919
+ * @param discriminator the name of the discriminator property
920
+ * @param types an array of object schemas
921
+ * @param params
922
+ */
923
+ static create<Discriminator extends string, Types extends [
924
+ ZodDiscriminatedUnionOption<Discriminator>,
925
+ ...ZodDiscriminatedUnionOption<Discriminator>[]
926
+ ]>(discriminator: Discriminator, options: Types, params?: RawCreateParams): ZodDiscriminatedUnion<Discriminator, Types>;
927
+ }
928
+ interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
929
+ left: T;
930
+ right: U;
931
+ typeName: ZodFirstPartyTypeKind.ZodIntersection;
932
+ }
933
+ declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]> {
934
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
935
+ static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(left: T_1, right: U_1, params?: RawCreateParams) => ZodIntersection<T_1, U_1>;
936
+ }
937
+ declare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
938
+ declare type AssertArray<T> = T extends any[] ? T : never;
939
+ declare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{
940
+ [k in keyof T]: T[k] extends ZodType<any, any> ? T[k]["_output"] : never;
941
+ }>;
942
+ declare type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest["_output"][]] : OutputTypeOfTuple<T>;
943
+ declare type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{
944
+ [k in keyof T]: T[k] extends ZodType<any, any> ? T[k]["_input"] : never;
945
+ }>;
946
+ declare type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest["_input"][]] : InputTypeOfTuple<T>;
947
+ interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef {
948
+ items: T;
949
+ rest: Rest;
950
+ typeName: ZodFirstPartyTypeKind.ZodTuple;
951
+ }
952
+ declare type AnyZodTuple = ZodTuple<[
953
+ ZodTypeAny,
954
+ ...ZodTypeAny[]
955
+ ] | [], ZodTypeAny | null>;
956
+ declare class ZodTuple<T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]], Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
957
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
958
+ get items(): T;
959
+ rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;
960
+ static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(schemas: T_1, params?: RawCreateParams) => ZodTuple<T_1, null>;
961
+ }
962
+ interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
963
+ valueType: Value;
964
+ keyType: Key;
965
+ typeName: ZodFirstPartyTypeKind.ZodRecord;
966
+ }
967
+ declare type KeySchema = ZodType<string | number | symbol, any, any>;
968
+ declare type RecordType<K extends string | number | symbol, V> = [
969
+ string
970
+ ] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K] ? Record<K, V> : Partial<Record<K, V>>;
971
+ declare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>> {
972
+ get keySchema(): Key;
973
+ get valueSchema(): Value;
974
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
975
+ get element(): Value;
976
+ static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;
977
+ static create<Keys extends KeySchema, Value extends ZodTypeAny>(keySchema: Keys, valueType: Value, params?: RawCreateParams): ZodRecord<Keys, Value>;
978
+ }
979
+ interface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
980
+ valueType: Value;
981
+ keyType: Key;
982
+ typeName: ZodFirstPartyTypeKind.ZodMap;
983
+ }
984
+ declare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Map<Key["_output"], Value["_output"]>, ZodMapDef<Key, Value>, Map<Key["_input"], Value["_input"]>> {
985
+ get keySchema(): Key;
986
+ get valueSchema(): Value;
987
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
988
+ static create: <Key_1 extends ZodTypeAny = ZodTypeAny, Value_1 extends ZodTypeAny = ZodTypeAny>(keyType: Key_1, valueType: Value_1, params?: RawCreateParams) => ZodMap<Key_1, Value_1>;
989
+ }
990
+ interface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
991
+ valueType: Value;
992
+ typeName: ZodFirstPartyTypeKind.ZodSet;
993
+ minSize: {
994
+ value: number;
995
+ message?: string;
996
+ } | null;
997
+ maxSize: {
998
+ value: number;
999
+ message?: string;
1000
+ } | null;
1001
+ }
1002
+ declare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>> {
1003
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1004
+ min(minSize: number, message?: errorUtil.ErrMessage): this;
1005
+ max(maxSize: number, message?: errorUtil.ErrMessage): this;
1006
+ size(size: number, message?: errorUtil.ErrMessage): this;
1007
+ nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;
1008
+ static create: <Value_1 extends ZodTypeAny = ZodTypeAny>(valueType: Value_1, params?: RawCreateParams) => ZodSet<Value_1>;
1009
+ }
1010
+ interface ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1011
+ args: Args;
1012
+ returns: Returns;
1013
+ typeName: ZodFirstPartyTypeKind.ZodFunction;
1014
+ }
1015
+ declare type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args["_input"] extends Array<any> ? (...args: Args["_input"]) => Returns["_output"] : never;
1016
+ declare type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args["_output"] extends Array<any> ? (...args: Args["_output"]) => Returns["_input"] : never;
1017
+ declare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<OuterTypeOfFunction<Args, Returns>, ZodFunctionDef<Args, Returns>, InnerTypeOfFunction<Args, Returns>> {
1018
+ _parse(input: ParseInput): ParseReturnType<any>;
1019
+ parameters(): Args;
1020
+ returnType(): Returns;
1021
+ args<Items extends Parameters<(typeof ZodTuple)["create"]>[0]>(...items: Items): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;
1022
+ returns<NewReturnType extends ZodType<any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;
1023
+ implement<F extends InnerTypeOfFunction<Args, Returns>>(func: F): ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
1024
+ strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;
1025
+ validate: <F extends InnerTypeOfFunction<Args, Returns>>(func: F) => ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
1026
+ static create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;
1027
+ static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown>;
1028
+ static create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U>;
1029
+ static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(args: T, returns: U, params?: RawCreateParams): ZodFunction<T, U>;
1030
+ }
1031
+ interface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1032
+ getter: () => T;
1033
+ typeName: ZodFirstPartyTypeKind.ZodLazy;
1034
+ }
1035
+ declare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {
1036
+ get schema(): T;
1037
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1038
+ static create: <T_1 extends ZodTypeAny>(getter: () => T_1, params?: RawCreateParams) => ZodLazy<T_1>;
1039
+ }
1040
+ interface ZodLiteralDef<T = any> extends ZodTypeDef {
1041
+ value: T;
1042
+ typeName: ZodFirstPartyTypeKind.ZodLiteral;
1043
+ }
1044
+ declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>> {
1045
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1046
+ get value(): T;
1047
+ static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;
1048
+ }
1049
+ declare type ArrayKeys = keyof any[];
1050
+ declare type Indices<T> = Exclude<keyof T, ArrayKeys>;
1051
+ declare type EnumValues = [string, ...string[]];
1052
+ declare type Values<T extends EnumValues> = {
1053
+ [k in T[number]]: k;
1054
+ };
1055
+ interface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {
1056
+ values: T;
1057
+ typeName: ZodFirstPartyTypeKind.ZodEnum;
1058
+ }
1059
+ declare type Writeable<T> = {
1060
+ -readonly [P in keyof T]: T[P];
1061
+ };
1062
+ declare type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclude>] : never;
1063
+ declare type typecast<A, T> = A extends T ? A : never;
1064
+ declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
1065
+ declare function createZodEnum<U extends string, T extends [U, ...U[]]>(values: T, params?: RawCreateParams): ZodEnum<T>;
1066
+ declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>> {
1067
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1068
+ get options(): T;
1069
+ get enum(): Values<T>;
1070
+ get Values(): Values<T>;
1071
+ get Enum(): Values<T>;
1072
+ extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract): ZodEnum<Writeable<ToExtract>>;
1073
+ exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
1074
+ static create: typeof createZodEnum;
1075
+ }
1076
+ interface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {
1077
+ values: T;
1078
+ typeName: ZodFirstPartyTypeKind.ZodNativeEnum;
1079
+ }
1080
+ declare type EnumLike = {
1081
+ [k: string]: string | number;
1082
+ [nu: number]: string;
1083
+ };
1084
+ declare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>> {
1085
+ _parse(input: ParseInput): ParseReturnType<T[keyof T]>;
1086
+ get enum(): T;
1087
+ static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;
1088
+ }
1089
+ interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1090
+ type: T;
1091
+ typeName: ZodFirstPartyTypeKind.ZodPromise;
1092
+ }
1093
+ declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>> {
1094
+ unwrap(): T;
1095
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1096
+ static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;
1097
+ }
1098
+ declare type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;
1099
+ declare type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;
1100
+ declare type RefinementEffect<T> = {
1101
+ type: "refinement";
1102
+ refinement: (arg: T, ctx: RefinementCtx) => any;
1103
+ };
1104
+ declare type TransformEffect<T> = {
1105
+ type: "transform";
1106
+ transform: (arg: T, ctx: RefinementCtx) => any;
1107
+ };
1108
+ declare type PreprocessEffect<T> = {
1109
+ type: "preprocess";
1110
+ transform: (arg: T, ctx: RefinementCtx) => any;
1111
+ };
1112
+ declare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;
1113
+ interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1114
+ schema: T;
1115
+ typeName: ZodFirstPartyTypeKind.ZodEffects;
1116
+ effect: Effect<any>;
1117
+ }
1118
+ declare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> {
1119
+ innerType(): T;
1120
+ sourceType(): T;
1121
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1122
+ static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>;
1123
+ static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
1124
+ }
1125
+
1126
+ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1127
+ innerType: T;
1128
+ typeName: ZodFirstPartyTypeKind.ZodOptional;
1129
+ }
1130
+ declare type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;
1131
+ declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
1132
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1133
+ unwrap(): T;
1134
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;
1135
+ }
1136
+ interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1137
+ innerType: T;
1138
+ typeName: ZodFirstPartyTypeKind.ZodNullable;
1139
+ }
1140
+ declare type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;
1141
+ declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
1142
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1143
+ unwrap(): T;
1144
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;
1145
+ }
1146
+ interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1147
+ innerType: T;
1148
+ defaultValue: () => util.noUndefined<T["_input"]>;
1149
+ typeName: ZodFirstPartyTypeKind.ZodDefault;
1150
+ }
1151
+ declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined> {
1152
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1153
+ removeDefault(): T;
1154
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
1155
+ errorMap?: ZodErrorMap | undefined;
1156
+ invalid_type_error?: string | undefined;
1157
+ required_error?: string | undefined;
1158
+ description?: string | undefined;
1159
+ } & {
1160
+ default: T_1["_input"] | (() => util.noUndefined<T_1["_input"]>);
1161
+ }) => ZodDefault<T_1>;
1162
+ }
1163
+ interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1164
+ innerType: T;
1165
+ catchValue: (ctx: {
1166
+ error: ZodError;
1167
+ input: unknown;
1168
+ }) => T["_input"];
1169
+ typeName: ZodFirstPartyTypeKind.ZodCatch;
1170
+ }
1171
+ declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCatchDef<T>, unknown> {
1172
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1173
+ removeCatch(): T;
1174
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
1175
+ errorMap?: ZodErrorMap | undefined;
1176
+ invalid_type_error?: string | undefined;
1177
+ required_error?: string | undefined;
1178
+ description?: string | undefined;
1179
+ } & {
1180
+ catch: T_1["_output"] | (() => T_1["_output"]);
1181
+ }) => ZodCatch<T_1>;
1182
+ }
1183
+ interface ZodNaNDef extends ZodTypeDef {
1184
+ typeName: ZodFirstPartyTypeKind.ZodNaN;
1185
+ }
1186
+ declare class ZodNaN extends ZodType<number, ZodNaNDef> {
1187
+ _parse(input: ParseInput): ParseReturnType<any>;
1188
+ static create: (params?: RawCreateParams) => ZodNaN;
1189
+ }
1190
+ interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
1191
+ type: T;
1192
+ typeName: ZodFirstPartyTypeKind.ZodBranded;
1193
+ }
1194
+ declare const BRAND: unique symbol;
1195
+ declare type BRAND<T extends string | number | symbol> = {
1196
+ [BRAND]: {
1197
+ [k in T]: true;
1198
+ };
1199
+ };
1200
+ declare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
1201
+ _parse(input: ParseInput): ParseReturnType<any>;
1202
+ unwrap(): T;
1203
+ }
1204
+ interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {
1205
+ in: A;
1206
+ out: B;
1207
+ typeName: ZodFirstPartyTypeKind.ZodPipeline;
1208
+ }
1209
+ declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B["_output"], ZodPipelineDef<A, B>, A["_input"]> {
1210
+ _parse(input: ParseInput): ParseReturnType<any>;
1211
+ static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;
1212
+ }
1213
+ declare type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
1214
+ readonly [Symbol.toStringTag]: string;
1215
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
1216
+ declare type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
1217
+ interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1218
+ innerType: T;
1219
+ typeName: ZodFirstPartyTypeKind.ZodReadonly;
1220
+ }
1221
+ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, T["_input"]> {
1222
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1223
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
1224
+ }
1225
+ declare type CustomParams = CustomErrorParams & {
1226
+ fatal?: boolean;
1227
+ };
1228
+ declare const custom: <T>(check?: ((data: unknown) => any) | undefined, params?: string | CustomParams | ((input: any) => CustomParams), fatal?: boolean | undefined) => ZodType<T, ZodTypeDef, T>;
1229
+
1230
+ declare const late: {
1231
+ object: <T extends ZodRawShape>(shape: () => T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, { [k in keyof baseObjectOutputType<T>]: undefined extends baseObjectOutputType<T>[k] ? never : k; }[keyof T]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T>, { [k in keyof baseObjectOutputType<T>]: undefined extends baseObjectOutputType<T>[k] ? never : k; }[keyof T]>[k_1]; }, { [k_2 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_2]; }>;
1232
+ };
1233
+ declare enum ZodFirstPartyTypeKind {
1234
+ ZodString = "ZodString",
1235
+ ZodNumber = "ZodNumber",
1236
+ ZodNaN = "ZodNaN",
1237
+ ZodBigInt = "ZodBigInt",
1238
+ ZodBoolean = "ZodBoolean",
1239
+ ZodDate = "ZodDate",
1240
+ ZodSymbol = "ZodSymbol",
1241
+ ZodUndefined = "ZodUndefined",
1242
+ ZodNull = "ZodNull",
1243
+ ZodAny = "ZodAny",
1244
+ ZodUnknown = "ZodUnknown",
1245
+ ZodNever = "ZodNever",
1246
+ ZodVoid = "ZodVoid",
1247
+ ZodArray = "ZodArray",
1248
+ ZodObject = "ZodObject",
1249
+ ZodUnion = "ZodUnion",
1250
+ ZodDiscriminatedUnion = "ZodDiscriminatedUnion",
1251
+ ZodIntersection = "ZodIntersection",
1252
+ ZodTuple = "ZodTuple",
1253
+ ZodRecord = "ZodRecord",
1254
+ ZodMap = "ZodMap",
1255
+ ZodSet = "ZodSet",
1256
+ ZodFunction = "ZodFunction",
1257
+ ZodLazy = "ZodLazy",
1258
+ ZodLiteral = "ZodLiteral",
1259
+ ZodEnum = "ZodEnum",
1260
+ ZodEffects = "ZodEffects",
1261
+ ZodNativeEnum = "ZodNativeEnum",
1262
+ ZodOptional = "ZodOptional",
1263
+ ZodNullable = "ZodNullable",
1264
+ ZodDefault = "ZodDefault",
1265
+ ZodCatch = "ZodCatch",
1266
+ ZodPromise = "ZodPromise",
1267
+ ZodBranded = "ZodBranded",
1268
+ ZodPipeline = "ZodPipeline",
1269
+ ZodReadonly = "ZodReadonly"
1270
+ }
1271
+ declare type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | ZodObject<any, any, any> | ZodUnion<any> | ZodDiscriminatedUnion<any, any> | ZodIntersection<any, any> | ZodTuple<any, any> | ZodRecord<any, any> | ZodMap<any> | ZodSet<any> | ZodFunction<any, any> | ZodLazy<any> | ZodLiteral<any> | ZodEnum<any> | ZodEffects<any, any, any> | ZodNativeEnum<any> | ZodOptional<any> | ZodNullable<any> | ZodDefault<any> | ZodCatch<any> | ZodPromise<any> | ZodBranded<any, any> | ZodPipeline<any, any>;
1272
+ declare abstract class Class {
1273
+ constructor(..._: any[]);
1274
+ }
1275
+ declare const instanceOfType: <T extends typeof Class>(cls: T, params?: CustomParams) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;
1276
+ declare const stringType: (params?: ({
1277
+ errorMap?: ZodErrorMap | undefined;
1278
+ invalid_type_error?: string | undefined;
1279
+ required_error?: string | undefined;
1280
+ description?: string | undefined;
1281
+ } & {
1282
+ coerce?: true | undefined;
1283
+ }) | undefined) => ZodString;
1284
+ declare const numberType: (params?: ({
1285
+ errorMap?: ZodErrorMap | undefined;
1286
+ invalid_type_error?: string | undefined;
1287
+ required_error?: string | undefined;
1288
+ description?: string | undefined;
1289
+ } & {
1290
+ coerce?: boolean | undefined;
1291
+ }) | undefined) => ZodNumber;
1292
+ declare const nanType: (params?: RawCreateParams) => ZodNaN;
1293
+ declare const bigIntType: (params?: ({
1294
+ errorMap?: ZodErrorMap | undefined;
1295
+ invalid_type_error?: string | undefined;
1296
+ required_error?: string | undefined;
1297
+ description?: string | undefined;
1298
+ } & {
1299
+ coerce?: boolean | undefined;
1300
+ }) | undefined) => ZodBigInt;
1301
+ declare const booleanType: (params?: ({
1302
+ errorMap?: ZodErrorMap | undefined;
1303
+ invalid_type_error?: string | undefined;
1304
+ required_error?: string | undefined;
1305
+ description?: string | undefined;
1306
+ } & {
1307
+ coerce?: boolean | undefined;
1308
+ }) | undefined) => ZodBoolean;
1309
+ declare const dateType: (params?: ({
1310
+ errorMap?: ZodErrorMap | undefined;
1311
+ invalid_type_error?: string | undefined;
1312
+ required_error?: string | undefined;
1313
+ description?: string | undefined;
1314
+ } & {
1315
+ coerce?: boolean | undefined;
1316
+ }) | undefined) => ZodDate;
1317
+ declare const symbolType: (params?: RawCreateParams) => ZodSymbol;
1318
+ declare const undefinedType: (params?: RawCreateParams) => ZodUndefined;
1319
+ declare const nullType: (params?: RawCreateParams) => ZodNull;
1320
+ declare const anyType: (params?: RawCreateParams) => ZodAny;
1321
+ declare const unknownType: (params?: RawCreateParams) => ZodUnknown;
1322
+ declare const neverType: (params?: RawCreateParams) => ZodNever;
1323
+ declare const voidType: (params?: RawCreateParams) => ZodVoid;
1324
+ declare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T, "many">;
1325
+ declare const objectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, { [k in keyof baseObjectOutputType<T>]: undefined extends baseObjectOutputType<T>[k] ? never : k; }[keyof T]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T>, { [k in keyof baseObjectOutputType<T>]: undefined extends baseObjectOutputType<T>[k] ? never : k; }[keyof T]>[k_1]; }, { [k_2 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_2]; }>;
1326
+ declare const strictObjectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strict", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, { [k in keyof baseObjectOutputType<T>]: undefined extends baseObjectOutputType<T>[k] ? never : k; }[keyof T]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T>, { [k in keyof baseObjectOutputType<T>]: undefined extends baseObjectOutputType<T>[k] ? never : k; }[keyof T]>[k_1]; }, { [k_2 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_2]; }>;
1327
+ declare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T, params?: RawCreateParams) => ZodUnion<T>;
1328
+ declare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;
1329
+ declare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(left: T, right: U, params?: RawCreateParams) => ZodIntersection<T, U>;
1330
+ declare const tupleType: <T extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(schemas: T, params?: RawCreateParams) => ZodTuple<T, null>;
1331
+ declare const recordType: typeof ZodRecord.create;
1332
+ declare const mapType: <Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny>(keyType: Key, valueType: Value, params?: RawCreateParams) => ZodMap<Key, Value>;
1333
+ declare const setType: <Value extends ZodTypeAny = ZodTypeAny>(valueType: Value, params?: RawCreateParams) => ZodSet<Value>;
1334
+ declare const functionType: typeof ZodFunction.create;
1335
+ declare const lazyType: <T extends ZodTypeAny>(getter: () => T, params?: RawCreateParams) => ZodLazy<T>;
1336
+ declare const literalType: <T extends Primitive>(value: T, params?: RawCreateParams) => ZodLiteral<T>;
1337
+ declare const enumType: typeof createZodEnum;
1338
+ declare const nativeEnumType: <T extends EnumLike>(values: T, params?: RawCreateParams) => ZodNativeEnum<T>;
1339
+ declare const promiseType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodPromise<T>;
1340
+ declare const effectsType: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>;
1341
+ declare const optionalType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodOptional<T>;
1342
+ declare const nullableType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>;
1343
+ declare const preprocessType: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
1344
+ declare const pipelineType: typeof ZodPipeline.create;
1345
+ declare const ostring: () => ZodOptional<ZodString>;
1346
+ declare const onumber: () => ZodOptional<ZodNumber>;
1347
+ declare const oboolean: () => ZodOptional<ZodBoolean>;
1348
+ declare const coerce: {
1349
+ string: (params?: ({
1350
+ errorMap?: ZodErrorMap | undefined;
1351
+ invalid_type_error?: string | undefined;
1352
+ required_error?: string | undefined;
1353
+ description?: string | undefined;
1354
+ } & {
1355
+ coerce?: true | undefined;
1356
+ }) | undefined) => ZodString;
1357
+ number: (params?: ({
1358
+ errorMap?: ZodErrorMap | undefined;
1359
+ invalid_type_error?: string | undefined;
1360
+ required_error?: string | undefined;
1361
+ description?: string | undefined;
1362
+ } & {
1363
+ coerce?: boolean | undefined;
1364
+ }) | undefined) => ZodNumber;
1365
+ boolean: (params?: ({
1366
+ errorMap?: ZodErrorMap | undefined;
1367
+ invalid_type_error?: string | undefined;
1368
+ required_error?: string | undefined;
1369
+ description?: string | undefined;
1370
+ } & {
1371
+ coerce?: boolean | undefined;
1372
+ }) | undefined) => ZodBoolean;
1373
+ bigint: (params?: ({
1374
+ errorMap?: ZodErrorMap | undefined;
1375
+ invalid_type_error?: string | undefined;
1376
+ required_error?: string | undefined;
1377
+ description?: string | undefined;
1378
+ } & {
1379
+ coerce?: boolean | undefined;
1380
+ }) | undefined) => ZodBigInt;
1381
+ date: (params?: ({
1382
+ errorMap?: ZodErrorMap | undefined;
1383
+ invalid_type_error?: string | undefined;
1384
+ required_error?: string | undefined;
1385
+ description?: string | undefined;
1386
+ } & {
1387
+ coerce?: boolean | undefined;
1388
+ }) | undefined) => ZodDate;
1389
+ };
1390
+
1391
+ declare const NEVER: never;
1392
+
1393
+ type z_AnyZodObject = AnyZodObject;
1394
+ type z_AnyZodTuple = AnyZodTuple;
1395
+ type z_ArrayCardinality = ArrayCardinality;
1396
+ type z_ArrayKeys = ArrayKeys;
1397
+ type z_AssertArray<T> = AssertArray<T>;
1398
+ type z_AsyncParseReturnType<T> = AsyncParseReturnType<T>;
1399
+ type z_BRAND<T extends string | number | symbol> = BRAND<T>;
1400
+ type z_CatchallInput<T extends ZodTypeAny> = CatchallInput<T>;
1401
+ type z_CatchallOutput<T extends ZodTypeAny> = CatchallOutput<T>;
1402
+ type z_CustomErrorParams = CustomErrorParams;
1403
+ declare const z_DIRTY: typeof DIRTY;
1404
+ type z_DenormalizedError = DenormalizedError;
1405
+ declare const z_EMPTY_PATH: typeof EMPTY_PATH;
1406
+ type z_Effect<T> = Effect<T>;
1407
+ type z_EnumLike = EnumLike;
1408
+ type z_EnumValues = EnumValues;
1409
+ type z_ErrorMapCtx = ErrorMapCtx;
1410
+ type z_FilterEnum<Values, ToExclude> = FilterEnum<Values, ToExclude>;
1411
+ declare const z_INVALID: typeof INVALID;
1412
+ type z_Indices<T> = Indices<T>;
1413
+ type z_InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = InnerTypeOfFunction<Args, Returns>;
1414
+ type z_InputTypeOfTuple<T extends ZodTupleItems | []> = InputTypeOfTuple<T>;
1415
+ type z_InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = InputTypeOfTupleWithRest<T, Rest>;
1416
+ type z_IpVersion = IpVersion;
1417
+ type z_IssueData = IssueData;
1418
+ type z_KeySchema = KeySchema;
1419
+ declare const z_NEVER: typeof NEVER;
1420
+ declare const z_OK: typeof OK;
1421
+ type z_ObjectPair = ObjectPair;
1422
+ type z_OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = OuterTypeOfFunction<Args, Returns>;
1423
+ type z_OutputTypeOfTuple<T extends ZodTupleItems | []> = OutputTypeOfTuple<T>;
1424
+ type z_OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = OutputTypeOfTupleWithRest<T, Rest>;
1425
+ type z_ParseContext = ParseContext;
1426
+ type z_ParseInput = ParseInput;
1427
+ type z_ParseParams = ParseParams;
1428
+ type z_ParsePath = ParsePath;
1429
+ type z_ParsePathComponent = ParsePathComponent;
1430
+ type z_ParseResult = ParseResult;
1431
+ type z_ParseReturnType<T> = ParseReturnType<T>;
1432
+ type z_ParseStatus = ParseStatus;
1433
+ declare const z_ParseStatus: typeof ParseStatus;
1434
+ type z_PassthroughType<T extends UnknownKeysParam> = PassthroughType<T>;
1435
+ type z_PreprocessEffect<T> = PreprocessEffect<T>;
1436
+ type z_Primitive = Primitive;
1437
+ type z_ProcessedCreateParams = ProcessedCreateParams;
1438
+ type z_RawCreateParams = RawCreateParams;
1439
+ type z_RecordType<K extends string | number | symbol, V> = RecordType<K, V>;
1440
+ type z_Refinement<T> = Refinement<T>;
1441
+ type z_RefinementCtx = RefinementCtx;
1442
+ type z_RefinementEffect<T> = RefinementEffect<T>;
1443
+ type z_SafeParseError<Input> = SafeParseError<Input>;
1444
+ type z_SafeParseReturnType<Input, Output> = SafeParseReturnType<Input, Output>;
1445
+ type z_SafeParseSuccess<Output> = SafeParseSuccess<Output>;
1446
+ type z_Scalars = Scalars;
1447
+ type z_SomeZodObject = SomeZodObject;
1448
+ type z_StringValidation = StringValidation;
1449
+ type z_SuperRefinement<T> = SuperRefinement<T>;
1450
+ type z_SyncParseReturnType<T = any> = SyncParseReturnType<T>;
1451
+ type z_TransformEffect<T> = TransformEffect<T>;
1452
+ type z_TypeOf<T extends ZodType<any, any, any>> = TypeOf<T>;
1453
+ type z_UnknownKeysParam = UnknownKeysParam;
1454
+ type z_Values<T extends EnumValues> = Values<T>;
1455
+ type z_Writeable<T> = Writeable<T>;
1456
+ type z_ZodAny = ZodAny;
1457
+ declare const z_ZodAny: typeof ZodAny;
1458
+ type z_ZodAnyDef = ZodAnyDef;
1459
+ type z_ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> = ZodArray<T, Cardinality>;
1460
+ declare const z_ZodArray: typeof ZodArray;
1461
+ type z_ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> = ZodArrayDef<T>;
1462
+ type z_ZodBigInt = ZodBigInt;
1463
+ declare const z_ZodBigInt: typeof ZodBigInt;
1464
+ type z_ZodBigIntCheck = ZodBigIntCheck;
1465
+ type z_ZodBigIntDef = ZodBigIntDef;
1466
+ type z_ZodBoolean = ZodBoolean;
1467
+ declare const z_ZodBoolean: typeof ZodBoolean;
1468
+ type z_ZodBooleanDef = ZodBooleanDef;
1469
+ type z_ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> = ZodBranded<T, B>;
1470
+ declare const z_ZodBranded: typeof ZodBranded;
1471
+ type z_ZodBrandedDef<T extends ZodTypeAny> = ZodBrandedDef<T>;
1472
+ type z_ZodCatch<T extends ZodTypeAny> = ZodCatch<T>;
1473
+ declare const z_ZodCatch: typeof ZodCatch;
1474
+ type z_ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> = ZodCatchDef<T>;
1475
+ type z_ZodCustomIssue = ZodCustomIssue;
1476
+ type z_ZodDate = ZodDate;
1477
+ declare const z_ZodDate: typeof ZodDate;
1478
+ type z_ZodDateCheck = ZodDateCheck;
1479
+ type z_ZodDateDef = ZodDateDef;
1480
+ type z_ZodDefault<T extends ZodTypeAny> = ZodDefault<T>;
1481
+ declare const z_ZodDefault: typeof ZodDefault;
1482
+ type z_ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> = ZodDefaultDef<T>;
1483
+ type z_ZodDiscriminatedUnion<Discriminator extends string, Options extends ZodDiscriminatedUnionOption<Discriminator>[]> = ZodDiscriminatedUnion<Discriminator, Options>;
1484
+ declare const z_ZodDiscriminatedUnion: typeof ZodDiscriminatedUnion;
1485
+ type z_ZodDiscriminatedUnionDef<Discriminator extends string, Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[]> = ZodDiscriminatedUnionDef<Discriminator, Options>;
1486
+ type z_ZodDiscriminatedUnionOption<Discriminator extends string> = ZodDiscriminatedUnionOption<Discriminator>;
1487
+ type z_ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> = ZodEffects<T, Output, Input>;
1488
+ declare const z_ZodEffects: typeof ZodEffects;
1489
+ type z_ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> = ZodEffectsDef<T>;
1490
+ type z_ZodEnum<T extends [string, ...string[]]> = ZodEnum<T>;
1491
+ declare const z_ZodEnum: typeof ZodEnum;
1492
+ type z_ZodEnumDef<T extends EnumValues = EnumValues> = ZodEnumDef<T>;
1493
+ type z_ZodError<T = any> = ZodError<T>;
1494
+ declare const z_ZodError: typeof ZodError;
1495
+ type z_ZodErrorMap = ZodErrorMap;
1496
+ type z_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes;
1497
+ type z_ZodFirstPartyTypeKind = ZodFirstPartyTypeKind;
1498
+ declare const z_ZodFirstPartyTypeKind: typeof ZodFirstPartyTypeKind;
1499
+ type z_ZodFormattedError<T, U = string> = ZodFormattedError<T, U>;
1500
+ type z_ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = ZodFunction<Args, Returns>;
1501
+ declare const z_ZodFunction: typeof ZodFunction;
1502
+ type z_ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> = ZodFunctionDef<Args, Returns>;
1503
+ type z_ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> = ZodIntersection<T, U>;
1504
+ declare const z_ZodIntersection: typeof ZodIntersection;
1505
+ type z_ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> = ZodIntersectionDef<T, U>;
1506
+ type z_ZodInvalidArgumentsIssue = ZodInvalidArgumentsIssue;
1507
+ type z_ZodInvalidDateIssue = ZodInvalidDateIssue;
1508
+ type z_ZodInvalidEnumValueIssue = ZodInvalidEnumValueIssue;
1509
+ type z_ZodInvalidIntersectionTypesIssue = ZodInvalidIntersectionTypesIssue;
1510
+ type z_ZodInvalidLiteralIssue = ZodInvalidLiteralIssue;
1511
+ type z_ZodInvalidReturnTypeIssue = ZodInvalidReturnTypeIssue;
1512
+ type z_ZodInvalidStringIssue = ZodInvalidStringIssue;
1513
+ type z_ZodInvalidTypeIssue = ZodInvalidTypeIssue;
1514
+ type z_ZodInvalidUnionDiscriminatorIssue = ZodInvalidUnionDiscriminatorIssue;
1515
+ type z_ZodInvalidUnionIssue = ZodInvalidUnionIssue;
1516
+ type z_ZodIssue = ZodIssue;
1517
+ type z_ZodIssueBase = ZodIssueBase;
1518
+ type z_ZodIssueCode = ZodIssueCode;
1519
+ type z_ZodIssueOptionalMessage = ZodIssueOptionalMessage;
1520
+ type z_ZodLazy<T extends ZodTypeAny> = ZodLazy<T>;
1521
+ declare const z_ZodLazy: typeof ZodLazy;
1522
+ type z_ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> = ZodLazyDef<T>;
1523
+ type z_ZodLiteral<T> = ZodLiteral<T>;
1524
+ declare const z_ZodLiteral: typeof ZodLiteral;
1525
+ type z_ZodLiteralDef<T = any> = ZodLiteralDef<T>;
1526
+ type z_ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMap<Key, Value>;
1527
+ declare const z_ZodMap: typeof ZodMap;
1528
+ type z_ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMapDef<Key, Value>;
1529
+ type z_ZodNaN = ZodNaN;
1530
+ declare const z_ZodNaN: typeof ZodNaN;
1531
+ type z_ZodNaNDef = ZodNaNDef;
1532
+ type z_ZodNativeEnum<T extends EnumLike> = ZodNativeEnum<T>;
1533
+ declare const z_ZodNativeEnum: typeof ZodNativeEnum;
1534
+ type z_ZodNativeEnumDef<T extends EnumLike = EnumLike> = ZodNativeEnumDef<T>;
1535
+ type z_ZodNever = ZodNever;
1536
+ declare const z_ZodNever: typeof ZodNever;
1537
+ type z_ZodNeverDef = ZodNeverDef;
1538
+ type z_ZodNonEmptyArray<T extends ZodTypeAny> = ZodNonEmptyArray<T>;
1539
+ type z_ZodNotFiniteIssue = ZodNotFiniteIssue;
1540
+ type z_ZodNotMultipleOfIssue = ZodNotMultipleOfIssue;
1541
+ type z_ZodNull = ZodNull;
1542
+ declare const z_ZodNull: typeof ZodNull;
1543
+ type z_ZodNullDef = ZodNullDef;
1544
+ type z_ZodNullable<T extends ZodTypeAny> = ZodNullable<T>;
1545
+ declare const z_ZodNullable: typeof ZodNullable;
1546
+ type z_ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> = ZodNullableDef<T>;
1547
+ type z_ZodNullableType<T extends ZodTypeAny> = ZodNullableType<T>;
1548
+ type z_ZodNumber = ZodNumber;
1549
+ declare const z_ZodNumber: typeof ZodNumber;
1550
+ type z_ZodNumberCheck = ZodNumberCheck;
1551
+ type z_ZodNumberDef = ZodNumberDef;
1552
+ type z_ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> = ZodObject<T, UnknownKeys, Catchall, Output, Input>;
1553
+ declare const z_ZodObject: typeof ZodObject;
1554
+ type z_ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> = ZodObjectDef<T, UnknownKeys, Catchall>;
1555
+ type z_ZodOptional<T extends ZodTypeAny> = ZodOptional<T>;
1556
+ declare const z_ZodOptional: typeof ZodOptional;
1557
+ type z_ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> = ZodOptionalDef<T>;
1558
+ type z_ZodOptionalType<T extends ZodTypeAny> = ZodOptionalType<T>;
1559
+ type z_ZodParsedType = ZodParsedType;
1560
+ type z_ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipeline<A, B>;
1561
+ declare const z_ZodPipeline: typeof ZodPipeline;
1562
+ type z_ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipelineDef<A, B>;
1563
+ type z_ZodPromise<T extends ZodTypeAny> = ZodPromise<T>;
1564
+ declare const z_ZodPromise: typeof ZodPromise;
1565
+ type z_ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> = ZodPromiseDef<T>;
1566
+ type z_ZodRawShape = ZodRawShape;
1567
+ type z_ZodReadonly<T extends ZodTypeAny> = ZodReadonly<T>;
1568
+ declare const z_ZodReadonly: typeof ZodReadonly;
1569
+ type z_ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> = ZodReadonlyDef<T>;
1570
+ type z_ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecord<Key, Value>;
1571
+ declare const z_ZodRecord: typeof ZodRecord;
1572
+ type z_ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecordDef<Key, Value>;
1573
+ type z_ZodSet<Value extends ZodTypeAny = ZodTypeAny> = ZodSet<Value>;
1574
+ declare const z_ZodSet: typeof ZodSet;
1575
+ type z_ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> = ZodSetDef<Value>;
1576
+ type z_ZodString = ZodString;
1577
+ declare const z_ZodString: typeof ZodString;
1578
+ type z_ZodStringCheck = ZodStringCheck;
1579
+ type z_ZodStringDef = ZodStringDef;
1580
+ type z_ZodSymbol = ZodSymbol;
1581
+ declare const z_ZodSymbol: typeof ZodSymbol;
1582
+ type z_ZodSymbolDef = ZodSymbolDef;
1583
+ type z_ZodTooBigIssue = ZodTooBigIssue;
1584
+ type z_ZodTooSmallIssue = ZodTooSmallIssue;
1585
+ type z_ZodTuple<T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]], Rest extends ZodTypeAny | null = null> = ZodTuple<T, Rest>;
1586
+ declare const z_ZodTuple: typeof ZodTuple;
1587
+ type z_ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> = ZodTupleDef<T, Rest>;
1588
+ type z_ZodTupleItems = ZodTupleItems;
1589
+ type z_ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> = ZodType<Output, Def, Input>;
1590
+ declare const z_ZodType: typeof ZodType;
1591
+ type z_ZodTypeAny = ZodTypeAny;
1592
+ type z_ZodTypeDef = ZodTypeDef;
1593
+ type z_ZodUndefined = ZodUndefined;
1594
+ declare const z_ZodUndefined: typeof ZodUndefined;
1595
+ type z_ZodUndefinedDef = ZodUndefinedDef;
1596
+ type z_ZodUnion<T extends ZodUnionOptions> = ZodUnion<T>;
1597
+ declare const z_ZodUnion: typeof ZodUnion;
1598
+ type z_ZodUnionDef<T extends ZodUnionOptions = Readonly<[
1599
+ ZodTypeAny,
1600
+ ZodTypeAny,
1601
+ ...ZodTypeAny[]
1602
+ ]>> = ZodUnionDef<T>;
1603
+ type z_ZodUnionOptions = ZodUnionOptions;
1604
+ type z_ZodUnknown = ZodUnknown;
1605
+ declare const z_ZodUnknown: typeof ZodUnknown;
1606
+ type z_ZodUnknownDef = ZodUnknownDef;
1607
+ type z_ZodUnrecognizedKeysIssue = ZodUnrecognizedKeysIssue;
1608
+ type z_ZodVoid = ZodVoid;
1609
+ declare const z_ZodVoid: typeof ZodVoid;
1610
+ type z_ZodVoidDef = ZodVoidDef;
1611
+ declare const z_addIssueToContext: typeof addIssueToContext;
1612
+ type z_arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> = arrayOutputType<T, Cardinality>;
1613
+ type z_baseObjectInputType<Shape extends ZodRawShape> = baseObjectInputType<Shape>;
1614
+ type z_baseObjectOutputType<Shape extends ZodRawShape> = baseObjectOutputType<Shape>;
1615
+ declare const z_coerce: typeof coerce;
1616
+ declare const z_custom: typeof custom;
1617
+ type z_deoptional<T extends ZodTypeAny> = deoptional<T>;
1618
+ declare const z_getErrorMap: typeof getErrorMap;
1619
+ declare const z_getParsedType: typeof getParsedType;
1620
+ type z_inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = inferFlattenedErrors<T, U>;
1621
+ type z_inferFormattedError<T extends ZodType<any, any, any>, U = string> = inferFormattedError<T, U>;
1622
+ type z_input<T extends ZodType<any, any, any>> = input<T>;
1623
+ declare const z_isAborted: typeof isAborted;
1624
+ declare const z_isAsync: typeof isAsync;
1625
+ declare const z_isDirty: typeof isDirty;
1626
+ declare const z_isValid: typeof isValid;
1627
+ declare const z_late: typeof late;
1628
+ declare const z_makeIssue: typeof makeIssue;
1629
+ type z_mergeTypes<A, B> = mergeTypes<A, B>;
1630
+ type z_noUnrecognized<Obj extends object, Shape extends object> = noUnrecognized<Obj, Shape>;
1631
+ type z_objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectInputType<Shape, Catchall, UnknownKeys>;
1632
+ type z_objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectOutputType<Shape, Catchall, UnknownKeys>;
1633
+ declare const z_objectUtil: typeof objectUtil;
1634
+ declare const z_oboolean: typeof oboolean;
1635
+ declare const z_onumber: typeof onumber;
1636
+ declare const z_ostring: typeof ostring;
1637
+ type z_output<T extends ZodType<any, any, any>> = output<T>;
1638
+ declare const z_quotelessJson: typeof quotelessJson;
1639
+ declare const z_setErrorMap: typeof setErrorMap;
1640
+ type z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;
1641
+ type z_typecast<A, T> = typecast<A, T>;
1642
+ declare const z_util: typeof util;
1643
+ declare namespace z {
1644
+ export { type z_AnyZodObject as AnyZodObject, type z_AnyZodTuple as AnyZodTuple, type z_ArrayCardinality as ArrayCardinality, type z_ArrayKeys as ArrayKeys, type z_AssertArray as AssertArray, type z_AsyncParseReturnType as AsyncParseReturnType, type z_BRAND as BRAND, type z_CatchallInput as CatchallInput, type z_CatchallOutput as CatchallOutput, type z_CustomErrorParams as CustomErrorParams, z_DIRTY as DIRTY, type z_DenormalizedError as DenormalizedError, z_EMPTY_PATH as EMPTY_PATH, type z_Effect as Effect, type z_EnumLike as EnumLike, type z_EnumValues as EnumValues, type z_ErrorMapCtx as ErrorMapCtx, type z_FilterEnum as FilterEnum, z_INVALID as INVALID, type z_Indices as Indices, type z_InnerTypeOfFunction as InnerTypeOfFunction, type z_InputTypeOfTuple as InputTypeOfTuple, type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, type z_IpVersion as IpVersion, type z_IssueData as IssueData, type z_KeySchema as KeySchema, z_NEVER as NEVER, z_OK as OK, type z_ObjectPair as ObjectPair, type z_OuterTypeOfFunction as OuterTypeOfFunction, type z_OutputTypeOfTuple as OutputTypeOfTuple, type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, type z_ParseContext as ParseContext, type z_ParseInput as ParseInput, type z_ParseParams as ParseParams, type z_ParsePath as ParsePath, type z_ParsePathComponent as ParsePathComponent, type z_ParseResult as ParseResult, type z_ParseReturnType as ParseReturnType, z_ParseStatus as ParseStatus, type z_PassthroughType as PassthroughType, type z_PreprocessEffect as PreprocessEffect, type z_Primitive as Primitive, type z_ProcessedCreateParams as ProcessedCreateParams, type z_RawCreateParams as RawCreateParams, type z_RecordType as RecordType, type z_Refinement as Refinement, type z_RefinementCtx as RefinementCtx, type z_RefinementEffect as RefinementEffect, type z_SafeParseError as SafeParseError, type z_SafeParseReturnType as SafeParseReturnType, type z_SafeParseSuccess as SafeParseSuccess, type z_Scalars as Scalars, ZodType as Schema, type z_SomeZodObject as SomeZodObject, type z_StringValidation as StringValidation, type z_SuperRefinement as SuperRefinement, type z_SyncParseReturnType as SyncParseReturnType, type z_TransformEffect as TransformEffect, type z_TypeOf as TypeOf, type z_UnknownKeysParam as UnknownKeysParam, type z_Values as Values, type z_Writeable as Writeable, z_ZodAny as ZodAny, type z_ZodAnyDef as ZodAnyDef, z_ZodArray as ZodArray, type z_ZodArrayDef as ZodArrayDef, z_ZodBigInt as ZodBigInt, type z_ZodBigIntCheck as ZodBigIntCheck, type z_ZodBigIntDef as ZodBigIntDef, z_ZodBoolean as ZodBoolean, type z_ZodBooleanDef as ZodBooleanDef, z_ZodBranded as ZodBranded, type z_ZodBrandedDef as ZodBrandedDef, z_ZodCatch as ZodCatch, type z_ZodCatchDef as ZodCatchDef, type z_ZodCustomIssue as ZodCustomIssue, z_ZodDate as ZodDate, type z_ZodDateCheck as ZodDateCheck, type z_ZodDateDef as ZodDateDef, z_ZodDefault as ZodDefault, type z_ZodDefaultDef as ZodDefaultDef, z_ZodDiscriminatedUnion as ZodDiscriminatedUnion, type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, z_ZodEffects as ZodEffects, type z_ZodEffectsDef as ZodEffectsDef, z_ZodEnum as ZodEnum, type z_ZodEnumDef as ZodEnumDef, z_ZodError as ZodError, type z_ZodErrorMap as ZodErrorMap, type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, type z_ZodFormattedError as ZodFormattedError, z_ZodFunction as ZodFunction, type z_ZodFunctionDef as ZodFunctionDef, z_ZodIntersection as ZodIntersection, type z_ZodIntersectionDef as ZodIntersectionDef, type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, type z_ZodInvalidDateIssue as ZodInvalidDateIssue, type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, type z_ZodInvalidStringIssue as ZodInvalidStringIssue, type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue, type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue, type z_ZodIssue as ZodIssue, type z_ZodIssueBase as ZodIssueBase, type z_ZodIssueCode as ZodIssueCode, type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage, z_ZodLazy as ZodLazy, type z_ZodLazyDef as ZodLazyDef, z_ZodLiteral as ZodLiteral, type z_ZodLiteralDef as ZodLiteralDef, z_ZodMap as ZodMap, type z_ZodMapDef as ZodMapDef, z_ZodNaN as ZodNaN, type z_ZodNaNDef as ZodNaNDef, z_ZodNativeEnum as ZodNativeEnum, type z_ZodNativeEnumDef as ZodNativeEnumDef, z_ZodNever as ZodNever, type z_ZodNeverDef as ZodNeverDef, type z_ZodNonEmptyArray as ZodNonEmptyArray, type z_ZodNotFiniteIssue as ZodNotFiniteIssue, type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, z_ZodNull as ZodNull, type z_ZodNullDef as ZodNullDef, z_ZodNullable as ZodNullable, type z_ZodNullableDef as ZodNullableDef, type z_ZodNullableType as ZodNullableType, z_ZodNumber as ZodNumber, type z_ZodNumberCheck as ZodNumberCheck, type z_ZodNumberDef as ZodNumberDef, z_ZodObject as ZodObject, type z_ZodObjectDef as ZodObjectDef, z_ZodOptional as ZodOptional, type z_ZodOptionalDef as ZodOptionalDef, type z_ZodOptionalType as ZodOptionalType, type z_ZodParsedType as ZodParsedType, z_ZodPipeline as ZodPipeline, type z_ZodPipelineDef as ZodPipelineDef, z_ZodPromise as ZodPromise, type z_ZodPromiseDef as ZodPromiseDef, type z_ZodRawShape as ZodRawShape, z_ZodReadonly as ZodReadonly, type z_ZodReadonlyDef as ZodReadonlyDef, z_ZodRecord as ZodRecord, type z_ZodRecordDef as ZodRecordDef, ZodType as ZodSchema, z_ZodSet as ZodSet, type z_ZodSetDef as ZodSetDef, z_ZodString as ZodString, type z_ZodStringCheck as ZodStringCheck, type z_ZodStringDef as ZodStringDef, z_ZodSymbol as ZodSymbol, type z_ZodSymbolDef as ZodSymbolDef, type z_ZodTooBigIssue as ZodTooBigIssue, type z_ZodTooSmallIssue as ZodTooSmallIssue, ZodEffects as ZodTransformer, z_ZodTuple as ZodTuple, type z_ZodTupleDef as ZodTupleDef, type z_ZodTupleItems as ZodTupleItems, z_ZodType as ZodType, type z_ZodTypeAny as ZodTypeAny, type z_ZodTypeDef as ZodTypeDef, z_ZodUndefined as ZodUndefined, type z_ZodUndefinedDef as ZodUndefinedDef, z_ZodUnion as ZodUnion, type z_ZodUnionDef as ZodUnionDef, type z_ZodUnionOptions as ZodUnionOptions, z_ZodUnknown as ZodUnknown, type z_ZodUnknownDef as ZodUnknownDef, type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, z_ZodVoid as ZodVoid, type z_ZodVoidDef as ZodVoidDef, z_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, type z_arrayOutputType as arrayOutputType, type z_baseObjectInputType as baseObjectInputType, type z_baseObjectOutputType as baseObjectOutputType, bigIntType as bigint, booleanType as boolean, z_coerce as coerce, z_custom as custom, dateType as date, errorMap as defaultErrorMap, type z_deoptional as deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, z_getErrorMap as getErrorMap, z_getParsedType as getParsedType, type TypeOf as infer, type z_inferFlattenedErrors as inferFlattenedErrors, type z_inferFormattedError as inferFormattedError, type z_input as input, instanceOfType as instanceof, intersectionType as intersection, z_isAborted as isAborted, z_isAsync as isAsync, z_isDirty as isDirty, z_isValid as isValid, z_late as late, lazyType as lazy, literalType as literal, z_makeIssue as makeIssue, mapType as map, type z_mergeTypes as mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type z_noUnrecognized as noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type z_objectInputType as objectInputType, type z_objectOutputType as objectOutputType, z_objectUtil as objectUtil, z_oboolean as oboolean, z_onumber as onumber, optionalType as optional, z_ostring as ostring, type z_output as output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, z_quotelessJson as quotelessJson, recordType as record, setType as set, z_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, type z_typeToFlattenedError as typeToFlattenedError, type z_typecast as typecast, undefinedType as undefined, unionType as union, unknownType as unknown, z_util as util, voidType as void };
1645
+ }
1646
+
1647
+ export { type AnyZodObject, type AnyZodTuple, type ArrayCardinality, type ArrayKeys, type AssertArray, type AsyncParseReturnType, BRAND, type CatchallInput, type CatchallOutput, type CustomErrorParams, DIRTY, type DenormalizedError, EMPTY_PATH, type Effect, type EnumLike, type EnumValues, type ErrorMapCtx, type FilterEnum, INVALID, type Indices, type InnerTypeOfFunction, type InputTypeOfTuple, type InputTypeOfTupleWithRest, type IpVersion, type IssueData, type KeySchema, NEVER, OK, type ObjectPair, type OuterTypeOfFunction, type OutputTypeOfTuple, type OutputTypeOfTupleWithRest, type ParseContext, type ParseInput, type ParseParams, type ParsePath, type ParsePathComponent, type ParseResult, type ParseReturnType, ParseStatus, type PassthroughType, type PreprocessEffect, type Primitive, type ProcessedCreateParams, type RawCreateParams, type RecordType, type Refinement, type RefinementCtx, type RefinementEffect, type SafeParseError, type SafeParseReturnType, type SafeParseSuccess, type Scalars, ZodType as Schema, type SomeZodObject, type StringValidation, type SuperRefinement, type SyncParseReturnType, type TransformEffect, type TypeOf, type UnknownKeysParam, type Values, type Writeable, ZodAny, type ZodAnyDef, ZodArray, type ZodArrayDef, ZodBigInt, type ZodBigIntCheck, type ZodBigIntDef, ZodBoolean, type ZodBooleanDef, ZodBranded, type ZodBrandedDef, ZodCatch, type ZodCatchDef, type ZodCustomIssue, ZodDate, type ZodDateCheck, type ZodDateDef, ZodDefault, type ZodDefaultDef, ZodDiscriminatedUnion, type ZodDiscriminatedUnionDef, type ZodDiscriminatedUnionOption, ZodEffects, type ZodEffectsDef, ZodEnum, type ZodEnumDef, ZodError, type ZodErrorMap, type ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, type ZodFormattedError, ZodFunction, type ZodFunctionDef, ZodIntersection, type ZodIntersectionDef, type ZodInvalidArgumentsIssue, type ZodInvalidDateIssue, type ZodInvalidEnumValueIssue, type ZodInvalidIntersectionTypesIssue, type ZodInvalidLiteralIssue, type ZodInvalidReturnTypeIssue, type ZodInvalidStringIssue, type ZodInvalidTypeIssue, type ZodInvalidUnionDiscriminatorIssue, type ZodInvalidUnionIssue, type ZodIssue, type ZodIssueBase, ZodIssueCode, type ZodIssueOptionalMessage, ZodLazy, type ZodLazyDef, ZodLiteral, type ZodLiteralDef, ZodMap, type ZodMapDef, ZodNaN, type ZodNaNDef, ZodNativeEnum, type ZodNativeEnumDef, ZodNever, type ZodNeverDef, type ZodNonEmptyArray, type ZodNotFiniteIssue, type ZodNotMultipleOfIssue, ZodNull, type ZodNullDef, ZodNullable, type ZodNullableDef, type ZodNullableType, ZodNumber, type ZodNumberCheck, type ZodNumberDef, ZodObject, type ZodObjectDef, ZodOptional, type ZodOptionalDef, type ZodOptionalType, ZodParsedType, ZodPipeline, type ZodPipelineDef, ZodPromise, type ZodPromiseDef, type ZodRawShape, ZodReadonly, type ZodReadonlyDef, ZodRecord, type ZodRecordDef, ZodType as ZodSchema, ZodSet, type ZodSetDef, ZodString, type ZodStringCheck, type ZodStringDef, ZodSymbol, type ZodSymbolDef, type ZodTooBigIssue, type ZodTooSmallIssue, ZodEffects as ZodTransformer, ZodTuple, type ZodTupleDef, type ZodTupleItems, ZodType, type ZodTypeAny, type ZodTypeDef, ZodUndefined, type ZodUndefinedDef, ZodUnion, type ZodUnionDef, type ZodUnionOptions, ZodUnknown, type ZodUnknownDef, type ZodUnrecognizedKeysIssue, ZodVoid, type ZodVoidDef, addIssueToContext, anyType as any, arrayType as array, type arrayOutputType, type baseObjectInputType, type baseObjectOutputType, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, errorMap as defaultErrorMap, type deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, type TypeOf as infer, type inferFlattenedErrors, type inferFormattedError, type input, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, type mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type objectInputType, type objectOutputType, objectUtil, oboolean, onumber, optionalType as optional, ostring, type output, 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, type typeToFlattenedError, type typecast, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };