@temporary-name/zod 1.9.3-alpha.e2d8d164da72fb570c2b14a4fa956c80f9e33cdc → 1.9.3-alpha.f9f5ce625d5edee78250b87b3a64f1d9760c2244

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.
package/dist/index.d.mts CHANGED
@@ -3,7 +3,6 @@ import { $ZodError, util } from 'zod/v4/core';
3
3
  export { core };
4
4
  export { $RefinementCtx as RefinementCtx, _endsWith as endsWith, _gt as gt, _gte as gte, _includes as includes, infer, input, _length as length, _lowercase as lowercase, _lt as lt, _lte as lte, _maxLength as maxLength, _maxSize as maxSize, _mime as mime, _minLength as minLength, _minSize as minSize, _multipleOf as multipleOf, _negative as negative, _nonnegative as nonnegative, _nonpositive as nonpositive, _normalize as normalize, output, _overwrite as overwrite, _positive as positive, _property as property, _regex as regex, _size as size, _startsWith as startsWith, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, _trim as trim, _uppercase as uppercase } from 'zod/v4/core';
5
5
  import { AsyncLocalStorage } from 'node:async_hooks';
6
- import { CustomErrorParams, ZodType, ZodTypeDef } from 'zod/v3';
7
6
 
8
7
  /** @deprecated Use `z.core.$ZodIssue` from `@zod/core` instead, especially if you are building a library on top of Zod. */
9
8
  type ZodIssue = core.$ZodIssue;
@@ -27,6 +26,9 @@ declare const ZodRealError: core.$constructor<ZodError>;
27
26
  /** @deprecated Use `z.core.$ZodRawIssue` instead. */
28
27
  type IssueData = core.$ZodRawIssue;
29
28
 
29
+ interface ParseContext extends core.ParseContextInternal<core.$ZodIssue> {
30
+ parseType?: 'query' | 'body' | 'path' | 'header' | 'output';
31
+ }
30
32
  type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
31
33
  type ZodSafeParseSuccess<T> = {
32
34
  success: true;
@@ -38,24 +40,24 @@ type ZodSafeParseError<T> = {
38
40
  data?: never;
39
41
  error: ZodError<T>;
40
42
  };
41
- declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
43
+ declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: ParseContext, _params?: {
42
44
  callee?: core.util.AnyFunc;
43
45
  Err?: core.$ZodErrorClass;
44
46
  }) => core.output<T>;
45
- declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
47
+ declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: ParseContext, _params?: {
46
48
  callee?: core.util.AnyFunc;
47
49
  Err?: core.$ZodErrorClass;
48
50
  }) => Promise<core.output<T>>;
49
- declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;
50
- declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;
51
- declare const encode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.input<T>;
52
- declare const decode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.output<T>;
53
- declare const encodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.input<T>>;
54
- declare const decodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.output<T>>;
55
- declare const safeEncode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.input<T>>;
56
- declare const safeDecode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;
57
- declare const safeEncodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.input<T>>>;
58
- declare const safeDecodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;
51
+ declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: ParseContext) => ZodSafeParseResult<core.output<T>>;
52
+ declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: ParseContext) => Promise<ZodSafeParseResult<core.output<T>>>;
53
+ declare const encode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: ParseContext) => core.input<T>;
54
+ declare const decode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: ParseContext) => core.output<T>;
55
+ declare const encodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: ParseContext) => Promise<core.input<T>>;
56
+ declare const decodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: ParseContext) => Promise<core.output<T>>;
57
+ declare const safeEncode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: ParseContext) => ZodSafeParseResult<core.input<T>>;
58
+ declare const safeDecode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: ParseContext) => ZodSafeParseResult<core.output<T>>;
59
+ declare const safeEncodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: ParseContext) => Promise<ZodSafeParseResult<core.input<T>>>;
60
+ declare const safeDecodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: ParseContext) => Promise<ZodSafeParseResult<core.output<T>>>;
59
61
 
60
62
  type IsGateEnabled = (gate: string) => boolean;
61
63
  declare const gatingContext: AsyncLocalStorage<IsGateEnabled>;
@@ -71,75 +73,67 @@ interface $ZodGate<T extends core.SomeType = core.$ZodType> extends core.$ZodTyp
71
73
  _zod: $ZodGateInternals<T>;
72
74
  }
73
75
  declare const $ZodGate: core.$constructor<$ZodGate>;
74
- interface ZodGate<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<$ZodGateInternals<T>, K>, $ZodGate<T> {
76
+ interface KrustyGate<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<$ZodGateInternals<T>, K>, $ZodGate<T> {
75
77
  unwrap(): T;
76
78
  }
77
- declare const ZodGate: core.$constructor<ZodGate>;
78
- declare function gate<T extends core.SomeType, K extends KrustyInternals>(innerType: T, gateName: K['gateNames']): ZodGate<T, K>;
79
+ declare const KrustyGate: core.$constructor<KrustyGate>;
80
+ declare function gate<T extends core.SomeType, K extends KrustyInternals>(innerType: T, gateName: K['gateNames']): KrustyGate<T, K>;
79
81
 
80
82
  type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLooseShape> = {
81
83
  [K in keyof Ext]: K extends keyof Base ? core.output<Ext[K]> extends core.output<Base[K]> ? core.input<Ext[K]> extends core.input<Base[K]> ? Ext[K] : never : never : Ext[K];
82
84
  };
83
- interface ZodObject<
85
+ interface KrustyObject<
84
86
  /** @ts-expect-error Cast variance */
85
87
  out Shape extends core.$ZodShape = core.$ZodLooseShape, out Config extends core.$ZodObjectConfig = core.$strip, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodObjectInternals<Shape, Config>, K>, core.$ZodObject<Shape, Config> {
86
88
  shape: Shape;
87
- keyof(): ZodEnum<util.ToEnum<keyof Shape & string>, K>;
89
+ keyof(): KrustyEnum<util.ToEnum<keyof Shape & string>, K>;
88
90
  /** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
89
- catchall<T extends core.SomeType>(schema: T): ZodObject<Shape, core.$catchall<T>, K>;
91
+ catchall<T extends core.SomeType>(schema: T): KrustyObject<Shape, core.$catchall<T>, K>;
90
92
  /** @deprecated Use `z.looseObject()` or `.loose()` instead. */
91
- passthrough(): ZodObject<Shape, core.$loose, K>;
93
+ passthrough(): KrustyObject<Shape, core.$loose, K>;
92
94
  /** Consider `z.looseObject(A.shape)` instead */
93
- loose(): ZodObject<Shape, core.$loose, K>;
95
+ loose(): KrustyObject<Shape, core.$loose, K>;
94
96
  /** Consider `z.strictObject(A.shape)` instead */
95
- strict(): ZodObject<Shape, core.$strict, K>;
97
+ strict(): KrustyObject<Shape, core.$strict, K>;
96
98
  /** This is the default behavior. This method call is likely unnecessary. */
97
- strip(): ZodObject<Shape, core.$strip, K>;
98
- extend<U extends core.$ZodLooseShape>(shape: U): ZodObject<util.Extend<Shape, U>, Config, K>;
99
- safeExtend<U extends core.$ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, core.SomeType>>): ZodObject<util.Extend<Shape, U>, Config, K>;
99
+ strip(): KrustyObject<Shape, core.$strip, K>;
100
+ extend<U extends core.$ZodLooseShape>(shape: U): KrustyObject<util.Extend<Shape, U>, Config, K>;
101
+ safeExtend<U extends core.$ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, core.SomeType>>): KrustyObject<util.Extend<Shape, U>, Config, K>;
100
102
  /**
101
103
  * @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
102
104
  */
103
- merge<U extends ZodObject>(other: U): ZodObject<util.Extend<Shape, U['shape']>, U['_zod']['config'], K>;
104
- pick<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<util.Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config, K>;
105
- omit<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<util.Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config, K>;
106
- partial(): ZodObject<{
107
- [k in keyof Shape]: ZodOptional<Shape[k], K>;
105
+ merge<U extends KrustyObject>(other: U): KrustyObject<util.Extend<Shape, U['shape']>, U['_zod']['config'], K>;
106
+ pick<M extends util.Mask<keyof Shape>>(mask: M): KrustyObject<util.Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config, K>;
107
+ omit<M extends util.Mask<keyof Shape>>(mask: M): KrustyObject<util.Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config, K>;
108
+ partial(): KrustyObject<{
109
+ [k in keyof Shape]: KrustyOptional<Shape[k], K>;
108
110
  }, Config, K>;
109
- partial<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<{
110
- [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k], K> : Shape[k];
111
+ partial<M extends util.Mask<keyof Shape>>(mask: M): KrustyObject<{
112
+ [k in keyof Shape]: k extends keyof M ? KrustyOptional<Shape[k], K> : Shape[k];
111
113
  }, Config, K>;
112
- required(): ZodObject<{
113
- [k in keyof Shape]: ZodNonOptional<Shape[k], K>;
114
+ required(): KrustyObject<{
115
+ [k in keyof Shape]: KrustyNonOptional<Shape[k], K>;
114
116
  }, Config, K>;
115
- required<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<{
116
- [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k], K> : Shape[k];
117
+ required<M extends util.Mask<keyof Shape>>(mask: M): KrustyObject<{
118
+ [k in keyof Shape]: k extends keyof M ? KrustyNonOptional<Shape[k], K> : Shape[k];
117
119
  }, Config, K>;
118
120
  }
119
- declare const ZodObject: core.$constructor<ZodObject>;
120
- declare function object<T extends core.$ZodLooseShape = Partial<Record<never, core.SomeType>>, K extends KrustyInternals = KrustyInternals>(shape?: T, params?: string | core.$ZodObjectParams): ZodObject<util.Writeable<T>, core.$strip, K>;
121
- declare function strictObject<T extends core.$ZodLooseShape, K extends KrustyInternals>(shape: T, params?: string | core.$ZodObjectParams): ZodObject<T, core.$strict, K>;
122
- declare function looseObject<T extends core.$ZodLooseShape, K extends KrustyInternals>(shape: T, params?: string | core.$ZodObjectParams): ZodObject<T, core.$loose, K>;
121
+ declare const KrustyObject: core.$constructor<KrustyObject>;
122
+ declare function object<T extends core.$ZodLooseShape = Partial<Record<never, core.SomeType>>, K extends KrustyInternals = KrustyInternals>(shape?: T, params?: string | core.$ZodObjectParams): KrustyObject<util.Writeable<T>, core.$strip, K>;
123
+ declare function strictObject<T extends core.$ZodLooseShape, K extends KrustyInternals>(shape: T, params?: string | core.$ZodObjectParams): KrustyObject<T, core.$strict, K>;
124
+ declare function looseObject<T extends core.$ZodLooseShape, K extends KrustyInternals>(shape: T, params?: string | core.$ZodObjectParams): KrustyObject<T, core.$loose, K>;
123
125
 
124
- interface ZodUnion<T extends readonly core.SomeType[] = readonly core.$ZodType[], K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodUnionInternals<T>, K>, core.$ZodUnion<T> {
126
+ interface KrustyUnion<T extends readonly core.SomeType[] = readonly core.$ZodType[], K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodUnionInternals<T>, K>, core.$ZodUnion<T> {
125
127
  options: T;
126
128
  }
127
- declare const ZodUnion: core.$constructor<ZodUnion>;
128
- declare function union<const T extends readonly core.SomeType[], K extends KrustyInternals>(options: T, params?: string | core.$ZodUnionParams): ZodUnion<T, K>;
129
- interface ZodDiscriminatedUnion<Options extends readonly core.SomeType[] = readonly core.$ZodType[], Disc extends string = string, K extends KrustyInternals = KrustyInternals> extends ZodUnion<Options, K>, core.$ZodDiscriminatedUnion<Options, Disc> {
129
+ declare const KrustyUnion: core.$constructor<KrustyUnion>;
130
+ declare function union<const T extends readonly core.SomeType[], K extends KrustyInternals>(options: T, params?: string | core.$ZodUnionParams): KrustyUnion<T, K>;
131
+ interface KrustyDiscriminatedUnion<Options extends readonly core.SomeType[] = readonly core.$ZodType[], Disc extends string = string, K extends KrustyInternals = KrustyInternals> extends KrustyUnion<Options, K>, core.$ZodDiscriminatedUnion<Options, Disc> {
130
132
  _zod: core.$ZodDiscriminatedUnionInternals<Options, Disc>;
131
133
  def: core.$ZodDiscriminatedUnionDef<Options, Disc>;
132
134
  }
133
- declare const ZodDiscriminatedUnion: core.$constructor<ZodDiscriminatedUnion>;
134
- declare function discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]], Disc extends string, K extends KrustyInternals = KrustyInternals>(discriminator: Disc, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodDiscriminatedUnion<Types, Disc, K>;
135
-
136
- type CustomParams = CustomErrorParams & {
137
- fatal?: boolean;
138
- };
139
-
140
- declare function blob(params?: string | CustomParams | ((input: unknown) => CustomParams)): ZodType<Blob, ZodTypeDef, Blob>;
141
-
142
- declare function regexp(params?: string | CustomParams | ((input: unknown) => CustomParams)): ZodType<RegExp, ZodTypeDef, RegExp>;
135
+ declare const KrustyDiscriminatedUnion: core.$constructor<KrustyDiscriminatedUnion>;
136
+ declare function discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]], Disc extends string, K extends KrustyInternals = KrustyInternals>(discriminator: Disc, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): KrustyDiscriminatedUnion<Types, Disc, K>;
143
137
 
144
138
  interface KrustyInternals<GateNames extends string = string> {
145
139
  gateNames: GateNames;
@@ -157,38 +151,25 @@ interface KrustyType<out Output = unknown, out Input = unknown, out Internals ex
157
151
  core.$replace<R['_meta'], this>?
158
152
  ] : [core.$replace<R['_meta'], this>] : ['Incompatible schema']): this;
159
153
  brand<T extends PropertyKey = PropertyKey>(value?: T): PropertyKey extends T ? this : core.$ZodBranded<this, T>;
160
- parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
161
- safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): ZodSafeParseResult<core.output<this>>;
162
- parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
163
- safeParseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<ZodSafeParseResult<core.output<this>>>;
164
- spa: (data: unknown, params?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<this>>>;
165
- encode(data: core.output<this>, params?: core.ParseContext<core.$ZodIssue>): core.input<this>;
166
- decode(data: core.input<this>, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
167
- encodeAsync(data: core.output<this>, params?: core.ParseContext<core.$ZodIssue>): Promise<core.input<this>>;
168
- decodeAsync(data: core.input<this>, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
169
- safeEncode(data: core.output<this>, params?: core.ParseContext<core.$ZodIssue>): ZodSafeParseResult<core.input<this>>;
170
- safeDecode(data: core.input<this>, params?: core.ParseContext<core.$ZodIssue>): ZodSafeParseResult<core.output<this>>;
171
- safeEncodeAsync(data: core.output<this>, params?: core.ParseContext<core.$ZodIssue>): Promise<ZodSafeParseResult<core.input<this>>>;
172
- safeDecodeAsync(data: core.input<this>, params?: core.ParseContext<core.$ZodIssue>): Promise<ZodSafeParseResult<core.output<this>>>;
173
154
  refine(check: (arg: core.output<this>) => unknown | Promise<unknown>, params?: string | core.$ZodCustomParams): this;
174
155
  superRefine(refinement: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => void | Promise<void>): this;
175
156
  overwrite(fn: (x: core.output<this>) => core.output<this>): this;
176
- gate(gateName: KInternals['gateNames']): ZodGate<this, KInternals>;
177
- optional(): ZodOptional<this, KInternals>;
178
- nonoptional(params?: string | core.$ZodNonOptionalParams): ZodNonOptional<this, KInternals>;
179
- nullable(): ZodNullable<this, KInternals>;
180
- nullish(): ZodOptional<ZodNullable<this, KInternals>, KInternals>;
181
- default(def: util.NoUndefined<core.output<this>>): ZodDefault<this, KInternals>;
182
- default(def: () => util.NoUndefined<core.output<this>>): ZodDefault<this, KInternals>;
183
- prefault(def: () => core.input<this>): ZodPrefault<this, KInternals>;
184
- prefault(def: core.input<this>): ZodPrefault<this, KInternals>;
185
- array(): ZodArray<this, KInternals>;
186
- or<T extends core.SomeType>(option: T): ZodUnion<[this, T], KInternals>;
187
- and<T extends core.SomeType>(incoming: T): ZodIntersection<this, T, KInternals>;
188
- transform<NewOut>(transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, core.output<this>>, KInternals>;
189
- }
190
- declare const KrustyType: core.$constructor<KrustyType>;
191
- interface _ZodString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
157
+ gate(gateName: KInternals['gateNames']): KrustyGate<this, KInternals>;
158
+ optional(): KrustyOptional<this, KInternals>;
159
+ nonoptional(params?: string | core.$ZodNonOptionalParams): KrustyNonOptional<this, KInternals>;
160
+ nullable(): KrustyNullable<this, KInternals>;
161
+ nullish(): KrustyOptional<KrustyNullable<this, KInternals>, KInternals>;
162
+ default(def: util.NoUndefined<core.output<this>>): KrustyDefault<this, KInternals>;
163
+ default(def: () => util.NoUndefined<core.output<this>>): KrustyDefault<this, KInternals>;
164
+ prefault(def: () => core.input<this>): KrustyPrefault<this, KInternals>;
165
+ prefault(def: core.input<this>): KrustyPrefault<this, KInternals>;
166
+ array(): KrustyArray<this, KInternals>;
167
+ or<T extends core.SomeType>(option: T): KrustyUnion<[this, T], KInternals>;
168
+ and<T extends core.SomeType>(incoming: T): KrustyIntersection<this, T, KInternals>;
169
+ transform<NewOut>(transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>): KrustyPipe<this, KrustyTransform<Awaited<NewOut>, core.output<this>>, KInternals>;
170
+ }
171
+ declare const KrustyType: core.$constructor<_KrustyType>;
172
+ interface _KrustyString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
192
173
  format: string | null;
193
174
  minLength: number | null;
194
175
  maxLength: number | null;
@@ -208,8 +189,8 @@ interface _ZodString<T extends core.$ZodStringInternals<unknown> = core.$ZodStri
208
189
  toUpperCase(): this;
209
190
  }
210
191
  /** @internal */
211
- declare const _ZodString: core.$constructor<_ZodString>;
212
- interface ZodString<K extends KrustyInternals = KrustyInternals> extends _ZodString<core.$ZodStringInternals<string>, K> {
192
+ declare const _KrustyString: core.$constructor<_KrustyString>;
193
+ interface KrustyString<K extends KrustyInternals = KrustyInternals> extends _KrustyString<core.$ZodStringInternals<string>, K> {
213
194
  /** @deprecated Use `z.email()` instead. */
214
195
  email(params?: string | core.$ZodCheckEmailParams): this;
215
196
  /** @deprecated Use `z.url()` instead. */
@@ -265,121 +246,121 @@ interface ZodString<K extends KrustyInternals = KrustyInternals> extends _ZodStr
265
246
  /** @deprecated Use `z.iso.duration()` instead. */
266
247
  duration(params?: string | core.$ZodCheckISODurationParams): this;
267
248
  }
268
- declare const ZodString: core.$constructor<ZodString>;
269
- declare function string<K extends KrustyInternals = KrustyInternals>(params?: string | core.$ZodStringParams): ZodString<K>;
270
- interface ZodStringFormat<Format extends string = string, K extends KrustyInternals = KrustyInternals> extends _ZodString<core.$ZodStringFormatInternals<Format>, K> {
249
+ declare const KrustyString: core.$constructor<KrustyString>;
250
+ declare function string<K extends KrustyInternals = KrustyInternals>(params?: string | core.$ZodStringParams): KrustyString<K>;
251
+ interface KrustyStringFormat<Format extends string = string, K extends KrustyInternals = KrustyInternals> extends _KrustyString<core.$ZodStringFormatInternals<Format>, K> {
271
252
  }
272
- declare const ZodStringFormat: core.$constructor<ZodStringFormat>;
273
- interface ZodEmail<K extends KrustyInternals = KrustyInternals> extends ZodStringFormat<'email', K> {
253
+ declare const KrustyStringFormat: core.$constructor<KrustyStringFormat>;
254
+ interface KrustyEmail<K extends KrustyInternals = KrustyInternals> extends KrustyStringFormat<'email', K> {
274
255
  _zod: core.$ZodEmailInternals;
275
256
  }
276
- declare const ZodEmail: core.$constructor<ZodEmail>;
277
- declare function email(params?: string | core.$ZodEmailParams): ZodEmail;
278
- interface ZodGUID<K extends KrustyInternals = KrustyInternals> extends ZodStringFormat<'guid', K> {
257
+ declare const KrustyEmail: core.$constructor<KrustyEmail>;
258
+ declare function email(params?: string | core.$ZodEmailParams): KrustyEmail;
259
+ interface KrustyGUID<K extends KrustyInternals = KrustyInternals> extends KrustyStringFormat<'guid', K> {
279
260
  _zod: core.$ZodGUIDInternals;
280
261
  }
281
- declare const ZodGUID: core.$constructor<ZodGUID>;
282
- declare function guid(params?: string | core.$ZodGUIDParams): ZodGUID;
283
- interface ZodUUID<K extends KrustyInternals = KrustyInternals> extends ZodStringFormat<'uuid', K> {
262
+ declare const KrustyGUID: core.$constructor<KrustyGUID>;
263
+ declare function guid(params?: string | core.$ZodGUIDParams): KrustyGUID;
264
+ interface KrustyUUID<K extends KrustyInternals = KrustyInternals> extends KrustyStringFormat<'uuid', K> {
284
265
  _zod: core.$ZodUUIDInternals;
285
266
  }
286
- declare const ZodUUID: core.$constructor<ZodUUID>;
287
- declare function uuid(params?: string | core.$ZodUUIDParams): ZodUUID;
288
- declare function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodUUID;
289
- declare function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodUUID;
290
- declare function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodUUID;
291
- interface ZodURL extends ZodStringFormat<'url'> {
267
+ declare const KrustyUUID: core.$constructor<KrustyUUID>;
268
+ declare function uuid(params?: string | core.$ZodUUIDParams): KrustyUUID;
269
+ declare function uuidv4(params?: string | core.$ZodUUIDv4Params): KrustyUUID;
270
+ declare function uuidv6(params?: string | core.$ZodUUIDv6Params): KrustyUUID;
271
+ declare function uuidv7(params?: string | core.$ZodUUIDv7Params): KrustyUUID;
272
+ interface KrustyURL extends KrustyStringFormat<'url'> {
292
273
  _zod: core.$ZodURLInternals;
293
274
  }
294
- declare const ZodURL: core.$constructor<ZodURL>;
295
- declare function url(params?: string | core.$ZodURLParams): ZodURL;
296
- declare function httpUrl(params?: string | Omit<core.$ZodURLParams, 'protocol' | 'hostname'>): ZodURL;
297
- interface ZodEmoji extends ZodStringFormat<'emoji'> {
275
+ declare const KrustyURL: core.$constructor<KrustyURL>;
276
+ declare function url(params?: string | core.$ZodURLParams): KrustyURL;
277
+ declare function httpUrl(params?: string | Omit<core.$ZodURLParams, 'protocol' | 'hostname'>): KrustyURL;
278
+ interface KrustyEmoji extends KrustyStringFormat<'emoji'> {
298
279
  _zod: core.$ZodEmojiInternals;
299
280
  }
300
- declare const ZodEmoji: core.$constructor<ZodEmoji>;
301
- declare function emoji(params?: string | core.$ZodEmojiParams): ZodEmoji;
302
- interface ZodNanoID extends ZodStringFormat<'nanoid'> {
281
+ declare const KrustyEmoji: core.$constructor<KrustyEmoji>;
282
+ declare function emoji(params?: string | core.$ZodEmojiParams): KrustyEmoji;
283
+ interface KrustyNanoID extends KrustyStringFormat<'nanoid'> {
303
284
  _zod: core.$ZodNanoIDInternals;
304
285
  }
305
- declare const ZodNanoID: core.$constructor<ZodNanoID>;
306
- declare function nanoid(params?: string | core.$ZodNanoIDParams): ZodNanoID;
307
- interface ZodCUID extends ZodStringFormat<'cuid'> {
286
+ declare const KrustyNanoID: core.$constructor<KrustyNanoID>;
287
+ declare function nanoid(params?: string | core.$ZodNanoIDParams): KrustyNanoID;
288
+ interface KrustyCUID extends KrustyStringFormat<'cuid'> {
308
289
  _zod: core.$ZodCUIDInternals;
309
290
  }
310
- declare const ZodCUID: core.$constructor<ZodCUID>;
311
- declare function cuid(params?: string | core.$ZodCUIDParams): ZodCUID;
312
- interface ZodCUID2 extends ZodStringFormat<'cuid2'> {
291
+ declare const KrustyCUID: core.$constructor<KrustyCUID>;
292
+ declare function cuid(params?: string | core.$ZodCUIDParams): KrustyCUID;
293
+ interface KrustyCUID2 extends KrustyStringFormat<'cuid2'> {
313
294
  _zod: core.$ZodCUID2Internals;
314
295
  }
315
- declare const ZodCUID2: core.$constructor<ZodCUID2>;
316
- declare function cuid2(params?: string | core.$ZodCUID2Params): ZodCUID2;
317
- interface ZodULID extends ZodStringFormat<'ulid'> {
296
+ declare const KrustyCUID2: core.$constructor<KrustyCUID2>;
297
+ declare function cuid2(params?: string | core.$ZodCUID2Params): KrustyCUID2;
298
+ interface KrustyULID extends KrustyStringFormat<'ulid'> {
318
299
  _zod: core.$ZodULIDInternals;
319
300
  }
320
- declare const ZodULID: core.$constructor<ZodULID>;
321
- declare function ulid(params?: string | core.$ZodULIDParams): ZodULID;
322
- interface ZodXID extends ZodStringFormat<'xid'> {
301
+ declare const KrustyULID: core.$constructor<KrustyULID>;
302
+ declare function ulid(params?: string | core.$ZodULIDParams): KrustyULID;
303
+ interface KrustyXID extends KrustyStringFormat<'xid'> {
323
304
  _zod: core.$ZodXIDInternals;
324
305
  }
325
- declare const ZodXID: core.$constructor<ZodXID>;
326
- declare function xid(params?: string | core.$ZodXIDParams): ZodXID;
327
- interface ZodKSUID extends ZodStringFormat<'ksuid'> {
306
+ declare const KrustyXID: core.$constructor<KrustyXID>;
307
+ declare function xid(params?: string | core.$ZodXIDParams): KrustyXID;
308
+ interface KrustyKSUID extends KrustyStringFormat<'ksuid'> {
328
309
  _zod: core.$ZodKSUIDInternals;
329
310
  }
330
- declare const ZodKSUID: core.$constructor<ZodKSUID>;
331
- declare function ksuid(params?: string | core.$ZodKSUIDParams): ZodKSUID;
332
- interface ZodIPv4 extends ZodStringFormat<'ipv4'> {
311
+ declare const KrustyKSUID: core.$constructor<KrustyKSUID>;
312
+ declare function ksuid(params?: string | core.$ZodKSUIDParams): KrustyKSUID;
313
+ interface KrustyIPv4 extends KrustyStringFormat<'ipv4'> {
333
314
  _zod: core.$ZodIPv4Internals;
334
315
  }
335
- declare const ZodIPv4: core.$constructor<ZodIPv4>;
336
- declare function ipv4(params?: string | core.$ZodIPv4Params): ZodIPv4;
337
- interface ZodIPv6 extends ZodStringFormat<'ipv6'> {
316
+ declare const KrustyIPv4: core.$constructor<KrustyIPv4>;
317
+ declare function ipv4(params?: string | core.$ZodIPv4Params): KrustyIPv4;
318
+ interface KrustyIPv6 extends KrustyStringFormat<'ipv6'> {
338
319
  _zod: core.$ZodIPv6Internals;
339
320
  }
340
- declare const ZodIPv6: core.$constructor<ZodIPv6>;
341
- declare function ipv6(params?: string | core.$ZodIPv6Params): ZodIPv6;
342
- interface ZodCIDRv4 extends ZodStringFormat<'cidrv4'> {
321
+ declare const KrustyIPv6: core.$constructor<KrustyIPv6>;
322
+ declare function ipv6(params?: string | core.$ZodIPv6Params): KrustyIPv6;
323
+ interface KrustyCIDRv4 extends KrustyStringFormat<'cidrv4'> {
343
324
  _zod: core.$ZodCIDRv4Internals;
344
325
  }
345
- declare const ZodCIDRv4: core.$constructor<ZodCIDRv4>;
346
- declare function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodCIDRv4;
347
- interface ZodCIDRv6 extends ZodStringFormat<'cidrv6'> {
326
+ declare const KrustyCIDRv4: core.$constructor<KrustyCIDRv4>;
327
+ declare function cidrv4(params?: string | core.$ZodCIDRv4Params): KrustyCIDRv4;
328
+ interface KrustyCIDRv6 extends KrustyStringFormat<'cidrv6'> {
348
329
  _zod: core.$ZodCIDRv6Internals;
349
330
  }
350
- declare const ZodCIDRv6: core.$constructor<ZodCIDRv6>;
351
- declare function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodCIDRv6;
352
- interface ZodBase64 extends ZodStringFormat<'base64'> {
331
+ declare const KrustyCIDRv6: core.$constructor<KrustyCIDRv6>;
332
+ declare function cidrv6(params?: string | core.$ZodCIDRv6Params): KrustyCIDRv6;
333
+ interface KrustyBase64 extends KrustyStringFormat<'base64'> {
353
334
  _zod: core.$ZodBase64Internals;
354
335
  }
355
- declare const ZodBase64: core.$constructor<ZodBase64>;
356
- declare function base64(params?: string | core.$ZodBase64Params): ZodBase64;
357
- interface ZodBase64URL extends ZodStringFormat<'base64url'> {
336
+ declare const KrustyBase64: core.$constructor<KrustyBase64>;
337
+ declare function base64(params?: string | core.$ZodBase64Params): KrustyBase64;
338
+ interface KrustyBase64URL extends KrustyStringFormat<'base64url'> {
358
339
  _zod: core.$ZodBase64URLInternals;
359
340
  }
360
- declare const ZodBase64URL: core.$constructor<ZodBase64URL>;
361
- declare function base64url(params?: string | core.$ZodBase64URLParams): ZodBase64URL;
362
- interface ZodE164 extends ZodStringFormat<'e164'> {
341
+ declare const KrustyBase64URL: core.$constructor<KrustyBase64URL>;
342
+ declare function base64url(params?: string | core.$ZodBase64URLParams): KrustyBase64URL;
343
+ interface KrustyE164 extends KrustyStringFormat<'e164'> {
363
344
  _zod: core.$ZodE164Internals;
364
345
  }
365
- declare const ZodE164: core.$constructor<ZodE164>;
366
- declare function e164(params?: string | core.$ZodE164Params): ZodE164;
367
- interface ZodJWT extends ZodStringFormat<'jwt'> {
346
+ declare const KrustyE164: core.$constructor<KrustyE164>;
347
+ declare function e164(params?: string | core.$ZodE164Params): KrustyE164;
348
+ interface KrustyJWT extends KrustyStringFormat<'jwt'> {
368
349
  _zod: core.$ZodJWTInternals;
369
350
  }
370
- declare const ZodJWT: core.$constructor<ZodJWT>;
371
- declare function jwt(params?: string | core.$ZodJWTParams): ZodJWT;
372
- interface ZodCustomStringFormat<Format extends string = string> extends ZodStringFormat<Format>, core.$ZodCustomStringFormat<Format> {
351
+ declare const KrustyJWT: core.$constructor<KrustyJWT>;
352
+ declare function jwt(params?: string | core.$ZodJWTParams): KrustyJWT;
353
+ interface KrustyCustomStringFormat<Format extends string = string> extends KrustyStringFormat<Format>, core.$ZodCustomStringFormat<Format> {
373
354
  _zod: core.$ZodCustomStringFormatInternals<Format>;
374
355
  }
375
- declare const ZodCustomStringFormat: core.$constructor<ZodCustomStringFormat>;
376
- declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodCustomStringFormat<Format>;
377
- declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodCustomStringFormat<'hostname'>;
378
- declare function hex(_params?: string | core.$ZodStringFormatParams): ZodCustomStringFormat<'hex'>;
356
+ declare const KrustyCustomStringFormat: core.$constructor<KrustyCustomStringFormat>;
357
+ declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): KrustyCustomStringFormat<Format>;
358
+ declare function hostname(_params?: string | core.$ZodStringFormatParams): KrustyCustomStringFormat<'hostname'>;
359
+ declare function hex(_params?: string | core.$ZodStringFormatParams): KrustyCustomStringFormat<'hex'>;
379
360
  declare function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = 'hex'>(alg: Alg, params?: {
380
361
  enc?: Enc;
381
- } & core.$ZodStringFormatParams): ZodCustomStringFormat<`${Alg}_${Enc}`>;
382
- interface _ZodNumber<Internals extends core.$ZodNumberInternals = core.$ZodNumberInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<Internals, K> {
362
+ } & core.$ZodStringFormatParams): KrustyCustomStringFormat<`${Alg}_${Enc}`>;
363
+ interface _KrustyNumber<Internals extends core.$ZodNumberInternals = core.$ZodNumberInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<Internals, K> {
383
364
  gt(value: number, params?: string | core.$ZodCheckGreaterThanParams): this;
384
365
  /** Identical to .min() */
385
366
  gte(value: number, params?: string | core.$ZodCheckGreaterThanParams): this;
@@ -409,36 +390,36 @@ interface _ZodNumber<Internals extends core.$ZodNumberInternals = core.$ZodNumbe
409
390
  isFinite: boolean;
410
391
  format: string | null;
411
392
  }
412
- interface ZodNumber<K extends KrustyInternals = KrustyInternals> extends _ZodNumber<core.$ZodNumberInternals<number>, K> {
393
+ interface KrustyNumber<K extends KrustyInternals = KrustyInternals> extends _KrustyNumber<core.$ZodNumberInternals<number>, K> {
413
394
  }
414
- declare const ZodNumber: core.$constructor<ZodNumber>;
415
- declare function number(params?: string | core.$ZodNumberParams): ZodNumber;
416
- interface ZodNumberFormat extends ZodNumber {
395
+ declare const KrustyNumber: core.$constructor<KrustyNumber>;
396
+ declare function number(params?: string | core.$ZodNumberParams): KrustyNumber;
397
+ interface KrustyNumberFormat extends KrustyNumber {
417
398
  _zod: core.$ZodNumberFormatInternals;
418
399
  }
419
- declare const ZodNumberFormat: core.$constructor<ZodNumberFormat>;
420
- interface ZodInt extends ZodNumberFormat {
400
+ declare const KrustyNumberFormat: core.$constructor<KrustyNumberFormat>;
401
+ interface KrustyInt extends KrustyNumberFormat {
421
402
  }
422
- declare function int(params?: string | core.$ZodCheckNumberFormatParams): ZodInt;
423
- interface ZodFloat32 extends ZodNumberFormat {
403
+ declare function int(params?: string | core.$ZodCheckNumberFormatParams): KrustyInt;
404
+ interface KrustyFloat32 extends KrustyNumberFormat {
424
405
  }
425
- declare function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat32;
426
- interface ZodFloat64 extends ZodNumberFormat {
406
+ declare function float32(params?: string | core.$ZodCheckNumberFormatParams): KrustyFloat32;
407
+ interface KrustyFloat64 extends KrustyNumberFormat {
427
408
  }
428
- declare function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat64;
429
- interface ZodInt32 extends ZodNumberFormat {
409
+ declare function float64(params?: string | core.$ZodCheckNumberFormatParams): KrustyFloat64;
410
+ interface KrustyInt32 extends KrustyNumberFormat {
430
411
  }
431
- declare function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodInt32;
432
- interface ZodUInt32 extends ZodNumberFormat {
412
+ declare function int32(params?: string | core.$ZodCheckNumberFormatParams): KrustyInt32;
413
+ interface KrustyUInt32 extends KrustyNumberFormat {
433
414
  }
434
- declare function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodUInt32;
435
- interface _ZodBoolean<T extends core.$ZodBooleanInternals = core.$ZodBooleanInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
415
+ declare function uint32(params?: string | core.$ZodCheckNumberFormatParams): KrustyUInt32;
416
+ interface _KrustyBoolean<T extends core.$ZodBooleanInternals = core.$ZodBooleanInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
436
417
  }
437
- interface ZodBoolean<K extends KrustyInternals = KrustyInternals> extends _ZodBoolean<core.$ZodBooleanInternals<boolean>, K> {
418
+ interface KrustyBoolean<K extends KrustyInternals = KrustyInternals> extends _KrustyBoolean<core.$ZodBooleanInternals<boolean>, K> {
438
419
  }
439
- declare const ZodBoolean: core.$constructor<ZodBoolean>;
440
- declare function boolean(params?: string | core.$ZodBooleanParams): ZodBoolean;
441
- interface _ZodBigInt<T extends core.$ZodBigIntInternals = core.$ZodBigIntInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
420
+ declare const KrustyBoolean: core.$constructor<KrustyBoolean>;
421
+ declare function boolean(params?: string | core.$ZodBooleanParams): KrustyBoolean;
422
+ interface _KrustyBigInt<T extends core.$ZodBigIntInternals = core.$ZodBigIntInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
442
423
  gte(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this;
443
424
  /** Alias of `.gte()` */
444
425
  min(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this;
@@ -456,48 +437,48 @@ interface _ZodBigInt<T extends core.$ZodBigIntInternals = core.$ZodBigIntInterna
456
437
  maxValue: bigint | null;
457
438
  format: string | null;
458
439
  }
459
- interface ZodBigInt<K extends KrustyInternals = KrustyInternals> extends _ZodBigInt<core.$ZodBigIntInternals<bigint>, K> {
440
+ interface KrustyBigInt<K extends KrustyInternals = KrustyInternals> extends _KrustyBigInt<core.$ZodBigIntInternals<bigint>, K> {
460
441
  }
461
- declare const ZodBigInt: core.$constructor<ZodBigInt>;
462
- declare function bigint(params?: string | core.$ZodBigIntParams): ZodBigInt;
463
- interface ZodBigIntFormat extends ZodBigInt {
442
+ declare const KrustyBigInt: core.$constructor<KrustyBigInt>;
443
+ declare function bigint(params?: string | core.$ZodBigIntParams): KrustyBigInt;
444
+ interface KrustyBigIntFormat extends KrustyBigInt {
464
445
  _zod: core.$ZodBigIntFormatInternals;
465
446
  }
466
- declare const ZodBigIntFormat: core.$constructor<ZodBigIntFormat>;
467
- declare function int64(params?: string | core.$ZodBigIntFormatParams): ZodBigIntFormat;
468
- declare function uint64(params?: string | core.$ZodBigIntFormatParams): ZodBigIntFormat;
469
- interface ZodSymbol<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodSymbolInternals, K> {
447
+ declare const KrustyBigIntFormat: core.$constructor<KrustyBigIntFormat>;
448
+ declare function int64(params?: string | core.$ZodBigIntFormatParams): KrustyBigIntFormat;
449
+ declare function uint64(params?: string | core.$ZodBigIntFormatParams): KrustyBigIntFormat;
450
+ interface KrustySymbol<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodSymbolInternals, K> {
470
451
  }
471
- declare const ZodSymbol: core.$constructor<ZodSymbol>;
472
- declare function symbol(params?: string | core.$ZodSymbolParams): ZodSymbol;
473
- interface ZodUndefined<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodUndefinedInternals, K> {
452
+ declare const KrustySymbol: core.$constructor<KrustySymbol>;
453
+ declare function symbol(params?: string | core.$ZodSymbolParams): KrustySymbol;
454
+ interface KrustyUndefined<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodUndefinedInternals, K> {
474
455
  }
475
- declare const ZodUndefined: core.$constructor<ZodUndefined>;
476
- declare function _undefined(params?: string | core.$ZodUndefinedParams): ZodUndefined;
456
+ declare const KrustyUndefined: core.$constructor<KrustyUndefined>;
457
+ declare function _undefined(params?: string | core.$ZodUndefinedParams): KrustyUndefined;
477
458
 
478
- interface ZodNull<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNullInternals, K> {
459
+ interface KrustyNull<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNullInternals, K> {
479
460
  }
480
- declare const ZodNull: core.$constructor<ZodNull>;
481
- declare function _null(params?: string | core.$ZodNullParams): ZodNull;
461
+ declare const KrustyNull: core.$constructor<KrustyNull>;
462
+ declare function _null(params?: string | core.$ZodNullParams): KrustyNull;
482
463
 
483
- interface ZodAny<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodAnyInternals, K> {
464
+ interface KrustyAny<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodAnyInternals, K> {
484
465
  }
485
- declare const ZodAny: core.$constructor<ZodAny>;
486
- declare function any(): ZodAny;
487
- interface ZodUnknown<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodUnknownInternals, K> {
466
+ declare const KrustyAny: core.$constructor<KrustyAny>;
467
+ declare function any(): KrustyAny;
468
+ interface KrustyUnknown<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodUnknownInternals, K> {
488
469
  }
489
- declare const ZodUnknown: core.$constructor<ZodUnknown>;
490
- declare function unknown(): ZodUnknown;
491
- interface ZodNever<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNeverInternals, K> {
470
+ declare const KrustyUnknown: core.$constructor<KrustyUnknown>;
471
+ declare function unknown(): KrustyUnknown;
472
+ interface KrustyNever<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNeverInternals, K> {
492
473
  }
493
- declare const ZodNever: core.$constructor<ZodNever>;
494
- declare function never(params?: string | core.$ZodNeverParams): ZodNever;
495
- interface ZodVoid<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodVoidInternals, K> {
474
+ declare const KrustyNever: core.$constructor<KrustyNever>;
475
+ declare function never(params?: string | core.$ZodNeverParams): KrustyNever;
476
+ interface KrustyVoid<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodVoidInternals, K> {
496
477
  }
497
- declare const ZodVoid: core.$constructor<ZodVoid>;
498
- declare function _void(params?: string | core.$ZodVoidParams): ZodVoid;
478
+ declare const KrustyVoid: core.$constructor<KrustyVoid>;
479
+ declare function _void(params?: string | core.$ZodVoidParams): KrustyVoid;
499
480
 
500
- interface _ZodDate<T extends core.$ZodDateInternals = core.$ZodDateInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
481
+ interface _KrustyDate<T extends core.$ZodDateInternals = core.$ZodDateInternals, K extends KrustyInternals = KrustyInternals> extends _KrustyType<T, K> {
501
482
  min(value: number | Date, params?: string | core.$ZodCheckGreaterThanParams): this;
502
483
  max(value: number | Date, params?: string | core.$ZodCheckLessThanParams): this;
503
484
  /** @deprecated Not recommended. */
@@ -505,11 +486,11 @@ interface _ZodDate<T extends core.$ZodDateInternals = core.$ZodDateInternals, K
505
486
  /** @deprecated Not recommended. */
506
487
  maxDate: Date | null;
507
488
  }
508
- interface ZodDate<K extends KrustyInternals = KrustyInternals> extends _ZodDate<core.$ZodDateInternals<Date>, K> {
489
+ interface KrustyDate<K extends KrustyInternals = KrustyInternals> extends _KrustyDate<core.$ZodDateInternals<Date>, K> {
509
490
  }
510
- declare const ZodDate: core.$constructor<ZodDate>;
511
- declare function date(params?: string | core.$ZodDateParams): ZodDate;
512
- interface ZodArray<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodArrayInternals<T>, K>, core.$ZodArray<T> {
491
+ declare const KrustyDate: core.$constructor<KrustyDate>;
492
+ declare function date(params?: string | core.$ZodDateParams): KrustyDate;
493
+ interface KrustyArray<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodArrayInternals<T>, K>, core.$ZodArray<T> {
513
494
  element: T;
514
495
  min(minLength: number, params?: string | core.$ZodCheckMinLengthParams): this;
515
496
  nonempty(params?: string | core.$ZodCheckMinLengthParams): this;
@@ -517,52 +498,52 @@ interface ZodArray<T extends core.SomeType = core.$ZodType, K extends KrustyInte
517
498
  length(len: number, params?: string | core.$ZodCheckLengthEqualsParams): this;
518
499
  unwrap(): T;
519
500
  }
520
- declare const ZodArray: core.$constructor<ZodArray>;
521
- declare function array<T extends core.SomeType, K extends KrustyInternals>(element: T, params?: string | core.$ZodArrayParams): ZodArray<T, K>;
522
- declare function keyof<T extends ZodObject, K extends KrustyInternals>(schema: T): ZodEnum<util.KeysEnum<T['_zod']['output']>, K>;
523
- interface ZodIntersection<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodIntersectionInternals<A, B>, K>, core.$ZodIntersection<A, B> {
524
- }
525
- declare const ZodIntersection: core.$constructor<ZodIntersection>;
526
- declare function intersection<T extends core.SomeType, U extends core.SomeType, K extends KrustyInternals>(left: T, right: U): ZodIntersection<T, U, K>;
527
- interface ZodTuple<T extends util.TupleItems = readonly core.$ZodType[], Rest extends core.SomeType | null = core.$ZodType | null, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodTupleInternals<T, Rest>, K>, core.$ZodTuple<T, Rest> {
528
- rest<Rest extends core.SomeType = core.$ZodType>(rest: Rest): ZodTuple<T, Rest, K>;
529
- }
530
- declare const ZodTuple: core.$constructor<ZodTuple>;
531
- declare function tuple<T extends readonly [core.SomeType, ...core.SomeType[]], K extends KrustyInternals>(items: T, params?: string | core.$ZodTupleParams): ZodTuple<T, null, K>;
532
- declare function tuple<T extends readonly [core.SomeType, ...core.SomeType[]], Rest extends core.SomeType, K extends KrustyInternals>(items: T, rest: Rest, params?: string | core.$ZodTupleParams): ZodTuple<T, Rest, K>;
533
- declare function tuple(items: [], params?: string | core.$ZodTupleParams): ZodTuple<[], null, KrustyInternals>;
534
- interface ZodRecord<Key extends core.$ZodRecordKey = core.$ZodRecordKey, Value extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodRecordInternals<Key, Value>, K>, core.$ZodRecord<Key, Value> {
501
+ declare const KrustyArray: core.$constructor<KrustyArray>;
502
+ declare function array<T extends core.SomeType, K extends KrustyInternals>(element: T, params?: string | core.$ZodArrayParams): KrustyArray<T, K>;
503
+ declare function keyof<T extends KrustyObject, K extends KrustyInternals>(schema: T): KrustyEnum<util.KeysEnum<T['_zod']['output']>, K>;
504
+ interface KrustyIntersection<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodIntersectionInternals<A, B>, K>, core.$ZodIntersection<A, B> {
505
+ }
506
+ declare const KrustyIntersection: core.$constructor<KrustyIntersection>;
507
+ declare function intersection<T extends core.SomeType, U extends core.SomeType, K extends KrustyInternals>(left: T, right: U): KrustyIntersection<T, U, K>;
508
+ interface KrustyTuple<T extends util.TupleItems = readonly core.$ZodType[], Rest extends core.SomeType | null = core.$ZodType | null, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodTupleInternals<T, Rest>, K>, core.$ZodTuple<T, Rest> {
509
+ rest<Rest extends core.SomeType = core.$ZodType>(rest: Rest): KrustyTuple<T, Rest, K>;
510
+ }
511
+ declare const KrustyTuple: core.$constructor<KrustyTuple>;
512
+ declare function tuple<T extends readonly [core.SomeType, ...core.SomeType[]], K extends KrustyInternals>(items: T, params?: string | core.$ZodTupleParams): KrustyTuple<T, null, K>;
513
+ declare function tuple<T extends readonly [core.SomeType, ...core.SomeType[]], Rest extends core.SomeType, K extends KrustyInternals>(items: T, rest: Rest, params?: string | core.$ZodTupleParams): KrustyTuple<T, Rest, K>;
514
+ declare function tuple(items: [], params?: string | core.$ZodTupleParams): KrustyTuple<[], null, KrustyInternals>;
515
+ interface KrustyRecord<Key extends core.$ZodRecordKey = core.$ZodRecordKey, Value extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodRecordInternals<Key, Value>, K>, core.$ZodRecord<Key, Value> {
535
516
  keyType: Key;
536
517
  valueType: Value;
537
518
  }
538
- declare const ZodRecord: core.$constructor<ZodRecord>;
539
- declare function record<Key extends core.$ZodRecordKey, Value extends core.SomeType, K extends KrustyInternals>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodRecord<Key, Value, K>;
540
- declare function partialRecord<Key extends core.$ZodRecordKey, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodRecord<Key & core.$partial, Value>;
541
- interface ZodMap<Key extends core.SomeType = core.$ZodType, Value extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodMapInternals<Key, Value>, K>, core.$ZodMap<Key, Value> {
519
+ declare const KrustyRecord: core.$constructor<KrustyRecord>;
520
+ declare function record<Key extends core.$ZodRecordKey, Value extends core.SomeType, K extends KrustyInternals>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): KrustyRecord<Key, Value, K>;
521
+ declare function partialRecord<Key extends core.$ZodRecordKey, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): KrustyRecord<Key & core.$partial, Value>;
522
+ interface KrustyMap<Key extends core.SomeType = core.$ZodType, Value extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodMapInternals<Key, Value>, K>, core.$ZodMap<Key, Value> {
542
523
  keyType: Key;
543
524
  valueType: Value;
544
525
  }
545
- declare const ZodMap: core.$constructor<ZodMap>;
546
- declare function map<Key extends core.SomeType, Value extends core.SomeType, K extends KrustyInternals>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMap<Key, Value, K>;
547
- interface ZodSet<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodSetInternals<T>, K>, core.$ZodSet<T> {
526
+ declare const KrustyMap: core.$constructor<KrustyMap>;
527
+ declare function map<Key extends core.SomeType, Value extends core.SomeType, K extends KrustyInternals>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): KrustyMap<Key, Value, K>;
528
+ interface KrustySet<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodSetInternals<T>, K>, core.$ZodSet<T> {
548
529
  min(minSize: number, params?: string | core.$ZodCheckMinSizeParams): this;
549
530
  nonempty(params?: string | core.$ZodCheckMinSizeParams): this;
550
531
  max(maxSize: number, params?: string | core.$ZodCheckMaxSizeParams): this;
551
532
  size(size: number, params?: string | core.$ZodCheckSizeEqualsParams): this;
552
533
  }
553
- declare const ZodSet: core.$constructor<ZodSet>;
554
- declare function set<Value extends core.SomeType, K extends KrustyInternals>(valueType: Value, params?: string | core.$ZodSetParams): ZodSet<Value, K>;
555
- interface ZodEnum<
534
+ declare const KrustySet: core.$constructor<KrustySet>;
535
+ declare function set<Value extends core.SomeType, K extends KrustyInternals>(valueType: Value, params?: string | core.$ZodSetParams): KrustySet<Value, K>;
536
+ interface KrustyEnum<
556
537
  /** @ts-expect-error Cast variance */
557
538
  out T extends util.EnumLike = util.EnumLike, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodEnumInternals<T>, K>, core.$ZodEnum<T> {
558
539
  enum: T;
559
540
  options: Array<T[keyof T]>;
560
- extract<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): ZodEnum<util.Flatten<Pick<T, U[number]>>, K>;
561
- exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): ZodEnum<util.Flatten<Omit<T, U[number]>>, K>;
541
+ extract<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): KrustyEnum<util.Flatten<Pick<T, U[number]>>, K>;
542
+ exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): KrustyEnum<util.Flatten<Omit<T, U[number]>>, K>;
562
543
  }
563
- declare const ZodEnum: core.$constructor<ZodEnum>;
564
- declare function _enum<const T extends readonly string[], K extends KrustyInternals>(values: T, params?: string | core.$ZodEnumParams): ZodEnum<util.ToEnum<T[number]>, K>;
565
- declare function _enum<const T extends util.EnumLike, K extends KrustyInternals>(entries: T, params?: string | core.$ZodEnumParams): ZodEnum<T, K>;
544
+ declare const KrustyEnum: core.$constructor<KrustyEnum>;
545
+ declare function _enum<const T extends readonly string[], K extends KrustyInternals>(values: T, params?: string | core.$ZodEnumParams): KrustyEnum<util.ToEnum<T[number]>, K>;
546
+ declare function _enum<const T extends util.EnumLike, K extends KrustyInternals>(entries: T, params?: string | core.$ZodEnumParams): KrustyEnum<T, K>;
566
547
 
567
548
  /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
568
549
  *
@@ -571,182 +552,181 @@ declare function _enum<const T extends util.EnumLike, K extends KrustyInternals>
571
552
  * z.enum(Colors);
572
553
  * ```
573
554
  */
574
- declare function nativeEnum<T extends util.EnumLike, K extends KrustyInternals>(entries: T, params?: string | core.$ZodEnumParams): ZodEnum<T, K>;
575
- interface ZodLiteral<T extends util.Literal = util.Literal, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodLiteralInternals<T>, K>, core.$ZodLiteral<T> {
555
+ declare function nativeEnum<T extends util.EnumLike, K extends KrustyInternals>(entries: T, params?: string | core.$ZodEnumParams): KrustyEnum<T, K>;
556
+ interface KrustyLiteral<T extends util.Literal = util.Literal, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodLiteralInternals<T>, K>, core.$ZodLiteral<T> {
576
557
  values: Set<T>;
577
558
  /** @legacy Use `.values` instead. Accessing this property will throw an error if the literal accepts multiple values. */
578
559
  value: T;
579
560
  }
580
- declare const ZodLiteral: core.$constructor<ZodLiteral>;
581
- declare function literal<const T extends ReadonlyArray<util.Literal>, K extends KrustyInternals>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T[number], K>;
582
- declare function literal<const T extends util.Literal, K extends KrustyInternals>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T, K>;
583
- interface ZodFile<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodFileInternals, K>, core.$ZodFile {
561
+ declare const KrustyLiteral: core.$constructor<KrustyLiteral>;
562
+ declare function literal<const T extends ReadonlyArray<util.Literal>, K extends KrustyInternals>(value: T, params?: string | core.$ZodLiteralParams): KrustyLiteral<T[number], K>;
563
+ declare function literal<const T extends util.Literal, K extends KrustyInternals>(value: T, params?: string | core.$ZodLiteralParams): KrustyLiteral<T, K>;
564
+ interface KrustyFile<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodFileInternals, K>, core.$ZodFile {
584
565
  min(size: number, params?: string | core.$ZodCheckMinSizeParams): this;
585
566
  max(size: number, params?: string | core.$ZodCheckMaxSizeParams): this;
586
567
  mime(types: util.MimeTypes | Array<util.MimeTypes>, params?: string | core.$ZodCheckMimeTypeParams): this;
587
568
  }
588
- declare const ZodFile: core.$constructor<ZodFile>;
589
- declare function file(params?: string | core.$ZodFileParams): ZodFile;
590
- interface ZodTransform<O = unknown, I = unknown, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodTransformInternals<O, I>, K>, core.$ZodTransform<O, I> {
569
+ declare const KrustyFile: core.$constructor<KrustyFile>;
570
+ declare function file(params?: string | core.$ZodFileParams): KrustyFile;
571
+ interface KrustyTransform<O = unknown, I = unknown, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodTransformInternals<O, I>, K>, core.$ZodTransform<O, I> {
591
572
  }
592
- declare const ZodTransform: core.$constructor<ZodTransform>;
593
- declare function transform<I = unknown, O = I>(fn: (input: I, ctx: core.ParsePayload) => O): ZodTransform<Awaited<O>, I>;
594
- interface ZodOptional<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodOptionalInternals<T>, K>, core.$ZodOptional<T> {
573
+ declare const KrustyTransform: core.$constructor<KrustyTransform>;
574
+ declare function transform<I = unknown, O = I>(fn: (input: I, ctx: core.ParsePayload) => O): KrustyTransform<Awaited<O>, I>;
575
+ interface KrustyOptional<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodOptionalInternals<T>, K>, core.$ZodOptional<T> {
595
576
  unwrap(): T;
596
577
  }
597
- declare const ZodOptional: core.$constructor<ZodOptional>;
598
- declare function optional<T extends core.SomeType, K extends KrustyInternals>(innerType: T): ZodOptional<T, K>;
599
- interface ZodNullable<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNullableInternals<T>, K>, core.$ZodNullable<T> {
578
+ declare const KrustyOptional: core.$constructor<KrustyOptional>;
579
+ declare function optional<T extends core.SomeType, K extends KrustyInternals>(innerType: T): KrustyOptional<T, K>;
580
+ interface KrustyNullable<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNullableInternals<T>, K>, core.$ZodNullable<T> {
600
581
  unwrap(): T;
601
582
  }
602
- declare const ZodNullable: core.$constructor<ZodNullable>;
603
- declare function nullable<T extends core.SomeType, K extends KrustyInternals>(innerType: T): ZodNullable<T, K>;
604
- declare function nullish<T extends core.SomeType, K extends KrustyInternals>(innerType: T): ZodOptional<ZodNullable<T, K>, K>;
605
- interface ZodDefault<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodDefaultInternals<T>, K>, core.$ZodDefault<T> {
583
+ declare const KrustyNullable: core.$constructor<KrustyNullable>;
584
+ declare function nullable<T extends core.SomeType, K extends KrustyInternals>(innerType: T): KrustyNullable<T, K>;
585
+ declare function nullish<T extends core.SomeType, K extends KrustyInternals>(innerType: T): KrustyOptional<KrustyNullable<T, K>, K>;
586
+ interface KrustyDefault<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodDefaultInternals<T>, K>, core.$ZodDefault<T> {
606
587
  unwrap(): T;
607
588
  /** @deprecated Use `.unwrap()` instead. */
608
589
  removeDefault(): T;
609
590
  }
610
- declare const ZodDefault: core.$constructor<ZodDefault>;
611
- declare function _default<T extends core.SomeType, K extends KrustyInternals>(innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): ZodDefault<T, K>;
612
- interface ZodPrefault<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodPrefaultInternals<T>, K>, core.$ZodPrefault<T> {
591
+ declare const KrustyDefault: core.$constructor<KrustyDefault>;
592
+ declare function _default<T extends core.SomeType, K extends KrustyInternals>(innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): KrustyDefault<T, K>;
593
+ interface KrustyPrefault<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodPrefaultInternals<T>, K>, core.$ZodPrefault<T> {
613
594
  unwrap(): T;
614
595
  }
615
- declare const ZodPrefault: core.$constructor<ZodPrefault>;
616
- declare function prefault<T extends core.SomeType, K extends KrustyInternals>(innerType: T, defaultValue: core.input<T> | (() => core.input<T>)): ZodPrefault<T, K>;
617
- interface ZodNonOptional<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNonOptionalInternals<T>, K>, core.$ZodNonOptional<T> {
596
+ declare const KrustyPrefault: core.$constructor<KrustyPrefault>;
597
+ declare function prefault<T extends core.SomeType, K extends KrustyInternals>(innerType: T, defaultValue: core.input<T> | (() => core.input<T>)): KrustyPrefault<T, K>;
598
+ interface KrustyNonOptional<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNonOptionalInternals<T>, K>, core.$ZodNonOptional<T> {
618
599
  unwrap(): T;
619
600
  }
620
- declare const ZodNonOptional: core.$constructor<ZodNonOptional>;
621
- declare function nonoptional<T extends core.SomeType, K extends KrustyInternals>(innerType: T, params?: string | core.$ZodNonOptionalParams): ZodNonOptional<T, K>;
622
- interface ZodSuccess<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodSuccessInternals<T>, K>, core.$ZodSuccess<T> {
601
+ declare const KrustyNonOptional: core.$constructor<KrustyNonOptional>;
602
+ declare function nonoptional<T extends core.SomeType, K extends KrustyInternals>(innerType: T, params?: string | core.$ZodNonOptionalParams): KrustyNonOptional<T, K>;
603
+ interface KrustySuccess<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodSuccessInternals<T>, K>, core.$ZodSuccess<T> {
623
604
  unwrap(): T;
624
605
  }
625
- declare const ZodSuccess: core.$constructor<ZodSuccess>;
626
- declare function success<T extends core.SomeType, K extends KrustyInternals>(innerType: T): ZodSuccess<T, K>;
627
- interface ZodCatch<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodCatchInternals<T>, K>, core.$ZodCatch<T> {
606
+ declare const KrustySuccess: core.$constructor<KrustySuccess>;
607
+ declare function success<T extends core.SomeType, K extends KrustyInternals>(innerType: T): KrustySuccess<T, K>;
608
+ interface KrustyCatch<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodCatchInternals<T>, K>, core.$ZodCatch<T> {
628
609
  unwrap(): T;
629
610
  /** @deprecated Use `.unwrap()` instead. */
630
611
  removeCatch(): T;
631
612
  }
632
- declare const ZodCatch: core.$constructor<ZodCatch>;
633
- declare function _catch<T extends core.SomeType, K extends KrustyInternals>(innerType: T, catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)): ZodCatch<T, K>;
613
+ declare const KrustyCatch: core.$constructor<KrustyCatch>;
614
+ declare function _catch<T extends core.SomeType, K extends KrustyInternals>(innerType: T, catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)): KrustyCatch<T, K>;
634
615
 
635
- interface ZodNaN<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNaNInternals, K>, core.$ZodNaN {
616
+ interface KrustyNaN<K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodNaNInternals, K>, core.$ZodNaN {
636
617
  }
637
- declare const ZodNaN: core.$constructor<ZodNaN>;
638
- declare function nan(params?: string | core.$ZodNaNParams): ZodNaN;
639
- interface ZodPipe<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodPipeInternals<A, B>, K>, core.$ZodPipe<A, B> {
618
+ declare const KrustyNaN: core.$constructor<KrustyNaN>;
619
+ declare function nan(params?: string | core.$ZodNaNParams): KrustyNaN;
620
+ interface KrustyPipe<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodPipeInternals<A, B>, K>, core.$ZodPipe<A, B> {
640
621
  in: A;
641
622
  out: B;
642
623
  }
643
- declare const ZodPipe: core.$constructor<ZodPipe>;
644
- declare function pipe<const A extends core.SomeType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>, K extends KrustyInternals = KrustyInternals>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodPipe<A, B, K>;
645
- interface ZodCodec<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends ZodPipe<A, B, K>, core.$ZodCodec<A, B> {
624
+ declare const KrustyPipe: core.$constructor<KrustyPipe>;
625
+ declare function pipe<const A extends core.SomeType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>, K extends KrustyInternals = KrustyInternals>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): KrustyPipe<A, B, K>;
626
+ interface KrustyCodec<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends KrustyPipe<A, B, K>, core.$ZodCodec<A, B> {
646
627
  _zod: core.$ZodCodecInternals<A, B>;
647
628
  def: core.$ZodCodecDef<A, B>;
648
629
  }
649
- declare const ZodCodec: core.$constructor<ZodCodec>;
630
+ declare const KrustyCodec: core.$constructor<KrustyCodec>;
650
631
  declare function codec<const A extends core.SomeType, B extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals>(in_: A, out: B, params: {
651
632
  decode: (value: core.output<A>, payload: core.ParsePayload<core.output<A>>) => core.util.MaybeAsync<core.input<B>>;
652
633
  encode: (value: core.input<B>, payload: core.ParsePayload<core.input<B>>) => core.util.MaybeAsync<core.output<A>>;
653
- }): ZodCodec<A, B, K>;
654
- interface ZodReadonly<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodReadonlyInternals<T>, K>, core.$ZodReadonly<T> {
634
+ }): KrustyCodec<A, B, K>;
635
+ interface KrustyReadonly<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodReadonlyInternals<T>, K>, core.$ZodReadonly<T> {
655
636
  unwrap(): T;
656
637
  }
657
- declare const ZodReadonly: core.$constructor<ZodReadonly>;
658
- declare function readonly<T extends core.SomeType, K extends KrustyInternals>(innerType: T): ZodReadonly<T, K>;
659
- interface ZodTemplateLiteral<Template extends string = string, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodTemplateLiteralInternals<Template>, K>, core.$ZodTemplateLiteral<Template> {
638
+ declare const KrustyReadonly: core.$constructor<KrustyReadonly>;
639
+ declare function readonly<T extends core.SomeType, K extends KrustyInternals>(innerType: T): KrustyReadonly<T, K>;
640
+ interface KrustyTemplateLiteral<Template extends string = string, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodTemplateLiteralInternals<Template>, K>, core.$ZodTemplateLiteral<Template> {
660
641
  }
661
- declare const ZodTemplateLiteral: core.$constructor<ZodTemplateLiteral>;
662
- declare function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[], K extends KrustyInternals>(parts: Parts, params?: string | core.$ZodTemplateLiteralParams): ZodTemplateLiteral<core.$PartsToTemplateLiteral<Parts>, K>;
663
- interface ZodLazy<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodLazyInternals<T>, K>, core.$ZodLazy<T> {
642
+ declare const KrustyTemplateLiteral: core.$constructor<KrustyTemplateLiteral>;
643
+ declare function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[], K extends KrustyInternals>(parts: Parts, params?: string | core.$ZodTemplateLiteralParams): KrustyTemplateLiteral<core.$PartsToTemplateLiteral<Parts>, K>;
644
+ interface KrustyLazy<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodLazyInternals<T>, K>, core.$ZodLazy<T> {
664
645
  unwrap(): T;
665
646
  }
666
- declare const ZodLazy: core.$constructor<ZodLazy>;
667
- declare function lazy<T extends core.SomeType, K extends KrustyInternals>(getter: () => T): ZodLazy<T, K>;
668
- interface ZodPromise<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodPromiseInternals<T>, K>, core.$ZodPromise<T> {
647
+ declare const KrustyLazy: core.$constructor<KrustyLazy>;
648
+ declare function lazy<T extends core.SomeType, K extends KrustyInternals>(getter: () => T): KrustyLazy<T, K>;
649
+ interface KrustyPromise<T extends core.SomeType = core.$ZodType, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodPromiseInternals<T>, K>, core.$ZodPromise<T> {
669
650
  unwrap(): T;
670
651
  }
671
- declare const ZodPromise: core.$constructor<ZodPromise>;
672
- declare function promise<T extends core.SomeType, K extends KrustyInternals>(innerType: T): ZodPromise<T, K>;
673
- interface ZodFunction<Args extends core.$ZodFunctionIn = core.$ZodFunctionIn, Returns extends core.$ZodFunctionOut = core.$ZodFunctionOut, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodFunctionInternals<Args, Returns>, K>, core.$ZodFunction<Args, Returns> {
652
+ declare const KrustyPromise: core.$constructor<KrustyPromise>;
653
+ declare function promise<T extends core.SomeType, K extends KrustyInternals>(innerType: T): KrustyPromise<T, K>;
654
+ interface KrustyFunction<Args extends core.$ZodFunctionIn = core.$ZodFunctionIn, Returns extends core.$ZodFunctionOut = core.$ZodFunctionOut, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodFunctionInternals<Args, Returns>, K>, core.$ZodFunction<Args, Returns> {
674
655
  _def: core.$ZodFunctionDef<Args, Returns>;
675
656
  _input: core.$InferInnerFunctionType<Args, Returns>;
676
657
  _output: core.$InferOuterFunctionType<Args, Returns>;
677
- input<const Items extends util.TupleItems, const Rest extends core.$ZodFunctionOut = core.$ZodFunctionOut>(args: Items, rest?: Rest): ZodFunction<core.$ZodTuple<Items, Rest>, Returns, K>;
678
- input<NewArgs extends core.$ZodFunctionIn>(args: NewArgs): ZodFunction<NewArgs, Returns, K>;
679
- input(...args: any[]): ZodFunction<any, Returns, K>;
680
- output<NewReturns extends core.$ZodType>(output: NewReturns): ZodFunction<Args, NewReturns, K>;
658
+ input<const Items extends util.TupleItems, const Rest extends core.$ZodFunctionOut = core.$ZodFunctionOut>(args: Items, rest?: Rest): KrustyFunction<core.$ZodTuple<Items, Rest>, Returns, K>;
659
+ input<NewArgs extends core.$ZodFunctionIn>(args: NewArgs): KrustyFunction<NewArgs, Returns, K>;
660
+ input(...args: any[]): KrustyFunction<any, Returns, K>;
661
+ output<NewReturns extends core.$ZodType>(output: NewReturns): KrustyFunction<Args, NewReturns, K>;
681
662
  }
682
- declare const ZodFunction: core.$constructor<ZodFunction>;
683
- declare function _function(): ZodFunction;
663
+ declare const KrustyFunction: core.$constructor<KrustyFunction>;
664
+ declare function _function(): KrustyFunction;
684
665
  declare function _function<const In extends ReadonlyArray<core.$ZodType>, K extends KrustyInternals>(params: {
685
666
  input: In;
686
- }): ZodFunction<ZodTuple<In, null, K>, core.$ZodFunctionOut, K>;
667
+ }): KrustyFunction<KrustyTuple<In, null, K>, core.$ZodFunctionOut, K>;
687
668
  declare function _function<const In extends ReadonlyArray<core.$ZodType>, const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut, K extends KrustyInternals = KrustyInternals>(params: {
688
669
  input: In;
689
670
  output: Out;
690
- }): ZodFunction<ZodTuple<In, null, K>, Out, K>;
671
+ }): KrustyFunction<KrustyTuple<In, null, K>, Out, K>;
691
672
  declare function _function<const In extends core.$ZodFunctionIn = core.$ZodFunctionIn, K extends KrustyInternals = KrustyInternals>(params: {
692
673
  input: In;
693
- }): ZodFunction<In, core.$ZodFunctionOut, K>;
674
+ }): KrustyFunction<In, core.$ZodFunctionOut, K>;
694
675
  declare function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut, K extends KrustyInternals = KrustyInternals>(params: {
695
676
  output: Out;
696
- }): ZodFunction<core.$ZodFunctionIn, Out, K>;
677
+ }): KrustyFunction<core.$ZodFunctionIn, Out, K>;
697
678
  declare function _function<In extends core.$ZodFunctionIn = core.$ZodFunctionIn, Out extends core.$ZodType = core.$ZodType, K extends KrustyInternals = KrustyInternals>(params?: {
698
679
  input: In;
699
680
  output: Out;
700
- }): ZodFunction<In, Out, K>;
681
+ }): KrustyFunction<In, Out, K>;
701
682
 
702
- interface ZodCustom<O = unknown, I = unknown, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodCustomInternals<O, I>, K>, core.$ZodCustom<O, I> {
683
+ interface KrustyCustom<O = unknown, I = unknown, K extends KrustyInternals = KrustyInternals> extends _KrustyType<core.$ZodCustomInternals<O, I>, K>, core.$ZodCustom<O, I> {
703
684
  }
704
- declare const ZodCustom: core.$constructor<ZodCustom>;
685
+ declare const KrustyCustom: core.$constructor<KrustyCustom>;
705
686
  declare function check<O = unknown>(fn: core.CheckFn<O>): core.$ZodCheck<O>;
706
- declare function custom<O, K extends KrustyInternals>(fn?: (data: unknown) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodCustom<O, O, K>;
687
+ declare function custom<O, K extends KrustyInternals>(fn?: (data: unknown) => unknown, _params?: string | core.$ZodCustomParams | undefined): KrustyCustom<O, O, K>;
707
688
  declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
708
689
  declare function superRefine<T>(fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>): core.$ZodCheck<T>;
709
- type ZodInstanceOfParams = core.Params<ZodCustom, core.$ZodIssueCustom, 'type' | 'check' | 'checks' | 'fn' | 'abort' | 'error' | 'params' | 'path'>;
710
- declare function _instanceof<T extends typeof util.Class, K extends KrustyInternals>(cls: T, params?: ZodInstanceOfParams): ZodCustom<InstanceType<T>, InstanceType<T>, K>;
690
+ type KrustyInstanceOfParams = core.Params<KrustyCustom, core.$ZodIssueCustom, 'type' | 'check' | 'checks' | 'fn' | 'abort' | 'error' | 'params' | 'path'>;
691
+ declare function _instanceof<T extends typeof util.Class, K extends KrustyInternals>(cls: T, params?: KrustyInstanceOfParams): KrustyCustom<InstanceType<T>, InstanceType<T>, K>;
711
692
 
712
- declare const stringbool: <K extends KrustyInternals = KrustyInternals>(_params?: string | core.$ZodStringBoolParams) => ZodCodec<ZodString, ZodBoolean, K>;
713
- type _ZodJSONSchema<K extends KrustyInternals = KrustyInternals> = ZodUnion<[
714
- ZodString,
715
- ZodNumber,
716
- ZodBoolean,
717
- ZodNull,
718
- ZodArray<ZodJSONSchema, K>,
719
- ZodRecord<ZodString, ZodJSONSchema, K>
693
+ declare const stringbool: <K extends KrustyInternals = KrustyInternals>(_params?: string | core.$ZodStringBoolParams) => KrustyCodec<KrustyString, KrustyBoolean, K>;
694
+ type _KrustyJSONSchema<K extends KrustyInternals = KrustyInternals> = KrustyUnion<[
695
+ KrustyString,
696
+ KrustyNumber,
697
+ KrustyBoolean,
698
+ KrustyNull,
699
+ KrustyArray<KrustyJSONSchema, K>,
700
+ KrustyRecord<KrustyString, KrustyJSONSchema, K>
720
701
  ], K>;
721
- type _ZodJSONSchemaInternals = _ZodJSONSchema['_zod'];
722
- interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals {
702
+ type _KrustyJSONSchemaInternals = _KrustyJSONSchema['_zod'];
703
+ interface KrustyJSONSchemaInternals extends _KrustyJSONSchemaInternals {
723
704
  output: util.JSONType;
724
705
  input: util.JSONType;
725
706
  }
726
- interface ZodJSONSchema<K extends KrustyInternals = KrustyInternals> extends _ZodJSONSchema<K> {
727
- _zod: ZodJSONSchemaInternals;
707
+ interface KrustyJSONSchema<K extends KrustyInternals = KrustyInternals> extends _KrustyJSONSchema<K> {
708
+ _zod: KrustyJSONSchemaInternals;
728
709
  }
729
- declare function json<K extends KrustyInternals = KrustyInternals>(params?: string | core.$ZodCustomParams): ZodJSONSchema<K>;
730
- declare function preprocess<A, U extends core.SomeType, B = unknown, K extends KrustyInternals = KrustyInternals>(fn: (arg: B, ctx: core.$RefinementCtx) => A, schema: U): ZodPipe<ZodTransform<A, B>, U, K>;
710
+ declare function json<K extends KrustyInternals = KrustyInternals>(params?: string | core.$ZodCustomParams): KrustyJSONSchema<K>;
731
711
 
732
- declare class SchemaClass<GateNames extends string = string, K extends KrustyInternals = KrustyInternals<GateNames>> {
733
- string(params?: string | core.$ZodStringParams): ZodString<K>;
734
- number(params?: string | core.$ZodNumberParams): ZodNumber<K>;
735
- int(params?: string | core.$ZodCheckNumberFormatParams): ZodNumber<K>;
736
- boolean(params?: string | core.$ZodBooleanParams): ZodBoolean<K>;
737
- null(params?: string | core.$ZodNullParams): ZodNull<K>;
738
- array<T extends core.SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodArray<T, K>;
739
- record<Key extends core.$ZodRecordKey, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodRecord<Key, Value, K>;
740
- union<const T extends readonly core.SomeType[]>(options: T, params?: string | core.$ZodUnionParams): ZodUnion<T, K>;
741
- discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodDiscriminatedUnion<Types, Disc, K>;
742
- object<T extends core.$ZodLooseShape = Partial<Record<never, core.SomeType>>>(shape?: T, params?: string | core.$ZodObjectParams): ZodObject<core.util.Writeable<T>, core.$strip, K>;
743
- date(params?: string | core.$ZodDateParams): ZodDate<K>;
744
- any(): ZodAny<K>;
745
- unknown(): ZodUnknown<K>;
746
- never(params?: string | core.$ZodNeverParams): ZodNever<K>;
747
- lazy<T extends core.SomeType>(getter: () => T): ZodLazy<T, K>;
748
- json(params?: string | core.$ZodCustomParams): ZodJSONSchema<K>;
712
+ declare class SchemaClass<GateNames extends string = never, K extends KrustyInternals = KrustyInternals<GateNames>> {
713
+ string(params?: string | core.$ZodStringParams): KrustyString<K>;
714
+ number(params?: string | core.$ZodNumberParams): KrustyNumber<K>;
715
+ int(params?: string | core.$ZodCheckNumberFormatParams): KrustyNumber<K>;
716
+ boolean(params?: string | core.$ZodBooleanParams): KrustyBoolean<K>;
717
+ null(params?: string | core.$ZodNullParams): KrustyNull<K>;
718
+ array<T extends core.SomeType>(element: T, params?: string | core.$ZodArrayParams): KrustyArray<T, K>;
719
+ record<Key extends core.$ZodRecordKey, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): KrustyRecord<Key, Value, K>;
720
+ union<const T extends readonly core.SomeType[]>(options: T, params?: string | core.$ZodUnionParams): KrustyUnion<T, K>;
721
+ discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): KrustyDiscriminatedUnion<Types, Disc, K>;
722
+ object<T extends core.$ZodLooseShape = Partial<Record<never, core.SomeType>>>(shape?: T, params?: string | core.$ZodObjectParams): KrustyObject<core.util.Writeable<T>, core.$strip, K>;
723
+ date(params?: string | core.$ZodDateParams): KrustyDate<K>;
724
+ any(): KrustyAny<K>;
725
+ unknown(): KrustyUnknown<K>;
726
+ never(params?: string | core.$ZodNeverParams): KrustyNever<K>;
727
+ lazy<T extends core.SomeType>(getter: () => T): KrustyLazy<T, K>;
728
+ json(params?: string | core.$ZodCustomParams): KrustyJSONSchema<K>;
749
729
  }
750
730
 
751
- export { $ZodGate, KrustyType, SchemaClass, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, ZodFile, ZodFunction, ZodGUID, ZodGate, ZodIPv4, ZodIPv6, ZodIntersection, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPromise, ZodReadonly, ZodRealError, ZodRecord, ZodSet, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, _ZodString, _default, _function, any, array, base64, base64url, bigint, blob, boolean, _catch as catch, check, cidrv4, cidrv6, codec, cuid, cuid2, custom, date, decode, decodeAsync, discriminatedUnion, e164, email, emoji, encode, encodeAsync, _enum as enum, file, float32, float64, _function as function, gate, gatingContext, guid, hash, hex, hostname, httpUrl, _instanceof as instanceof, int, int32, int64, intersection, ipv4, ipv6, isGateIssue, isGateIssueRaw, json, jwt, keyof, ksuid, lazy, literal, looseObject, map, nan, nanoid, nativeEnum, never, nonoptional, _null as null, nullable, nullish, number, object, optional, parse, parseAsync, partialRecord, pipe, prefault, preprocess, promise, readonly, record, refine, regexp, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, strictObject, string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, transform, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, url, uuid, uuidv4, uuidv6, uuidv7, _void as void, xid };
752
- export type { $ZodGateDef, $ZodGateInternals, IsGateEnabled, IssueData, KrustyInternals, SafeExtendShape, ZodFloat32, ZodFloat64, ZodInt, ZodInt32, ZodIssue, ZodJSONSchema, ZodJSONSchemaInternals, ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, ZodUInt32, _KrustyType, _ZodBigInt, _ZodBoolean, _ZodDate, _ZodNumber };
731
+ export { $ZodGate, KrustyAny, KrustyArray, KrustyBase64, KrustyBase64URL, KrustyBigInt, KrustyBigIntFormat, KrustyBoolean, KrustyCIDRv4, KrustyCIDRv6, KrustyCUID, KrustyCUID2, KrustyCatch, KrustyCodec, KrustyCustom, KrustyCustomStringFormat, KrustyDate, KrustyDefault, KrustyDiscriminatedUnion, KrustyE164, KrustyEmail, KrustyEmoji, KrustyEnum, KrustyFile, KrustyFunction, KrustyGUID, KrustyGate, KrustyIPv4, KrustyIPv6, KrustyIntersection, KrustyJWT, KrustyKSUID, KrustyLazy, KrustyLiteral, KrustyMap, KrustyNaN, KrustyNanoID, KrustyNever, KrustyNonOptional, KrustyNull, KrustyNullable, KrustyNumber, KrustyNumberFormat, KrustyObject, KrustyOptional, KrustyPipe, KrustyPrefault, KrustyPromise, KrustyReadonly, KrustyRecord, KrustySet, KrustyString, KrustyStringFormat, KrustySuccess, KrustySymbol, KrustyTemplateLiteral, KrustyTransform, KrustyTuple, KrustyType, KrustyULID, KrustyURL, KrustyUUID, KrustyUndefined, KrustyUnion, KrustyUnknown, KrustyVoid, KrustyXID, SchemaClass, ZodError, ZodRealError, _KrustyString, _default, _function, any, array, base64, base64url, bigint, boolean, _catch as catch, check, cidrv4, cidrv6, codec, cuid, cuid2, custom, date, decode, decodeAsync, discriminatedUnion, e164, email, emoji, encode, encodeAsync, _enum as enum, file, float32, float64, _function as function, gate, gatingContext, guid, hash, hex, hostname, httpUrl, _instanceof as instanceof, int, int32, int64, intersection, ipv4, ipv6, isGateIssue, isGateIssueRaw, json, jwt, keyof, ksuid, lazy, literal, looseObject, map, nan, nanoid, nativeEnum, never, nonoptional, _null as null, nullable, nullish, number, object, optional, parse, parseAsync, partialRecord, pipe, prefault, promise, readonly, record, refine, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, strictObject, string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, transform, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, url, uuid, uuidv4, uuidv6, uuidv7, _void as void, xid };
732
+ export type { $ZodGateDef, $ZodGateInternals, IsGateEnabled, IssueData, KrustyFloat32, KrustyFloat64, KrustyInt, KrustyInt32, KrustyInternals, KrustyJSONSchema, KrustyJSONSchemaInternals, KrustyUInt32, ParseContext, SafeExtendShape, ZodIssue, ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, _KrustyBigInt, _KrustyBoolean, _KrustyDate, _KrustyNumber, _KrustyType };