@fuf-stack/megapixels 0.9.15 → 0.10.1

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.
@@ -0,0 +1,2334 @@
1
+ import * as _$_fuf_stack_veto0 from "@fuf-stack/veto";
2
+ import { vInfer } from "@fuf-stack/veto";
3
+ import { ReactNode } from "react";
4
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
+ import { TVClassName } from "@fuf-stack/pixel-utils";
6
+
7
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts
8
+ type _JSONSchema = boolean | JSONSchema;
9
+ type JSONSchema = {
10
+ [k: string]: unknown;
11
+ $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
12
+ $id?: string;
13
+ $anchor?: string;
14
+ $ref?: string;
15
+ $dynamicRef?: string;
16
+ $dynamicAnchor?: string;
17
+ $vocabulary?: Record<string, boolean>;
18
+ $comment?: string;
19
+ $defs?: Record<string, JSONSchema>;
20
+ type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
21
+ additionalItems?: _JSONSchema;
22
+ unevaluatedItems?: _JSONSchema;
23
+ prefixItems?: _JSONSchema[];
24
+ items?: _JSONSchema | _JSONSchema[];
25
+ contains?: _JSONSchema;
26
+ additionalProperties?: _JSONSchema;
27
+ unevaluatedProperties?: _JSONSchema;
28
+ properties?: Record<string, _JSONSchema>;
29
+ patternProperties?: Record<string, _JSONSchema>;
30
+ dependentSchemas?: Record<string, _JSONSchema>;
31
+ propertyNames?: _JSONSchema;
32
+ if?: _JSONSchema;
33
+ then?: _JSONSchema;
34
+ else?: _JSONSchema;
35
+ allOf?: JSONSchema[];
36
+ anyOf?: JSONSchema[];
37
+ oneOf?: JSONSchema[];
38
+ not?: _JSONSchema;
39
+ multipleOf?: number;
40
+ maximum?: number;
41
+ exclusiveMaximum?: number | boolean;
42
+ minimum?: number;
43
+ exclusiveMinimum?: number | boolean;
44
+ maxLength?: number;
45
+ minLength?: number;
46
+ pattern?: string;
47
+ maxItems?: number;
48
+ minItems?: number;
49
+ uniqueItems?: boolean;
50
+ maxContains?: number;
51
+ minContains?: number;
52
+ maxProperties?: number;
53
+ minProperties?: number;
54
+ required?: string[];
55
+ dependentRequired?: Record<string, string[]>;
56
+ enum?: Array<string | number | boolean | null>;
57
+ const?: string | number | boolean | null;
58
+ id?: string;
59
+ title?: string;
60
+ description?: string;
61
+ default?: unknown;
62
+ deprecated?: boolean;
63
+ readOnly?: boolean;
64
+ writeOnly?: boolean;
65
+ nullable?: boolean;
66
+ examples?: unknown[];
67
+ format?: string;
68
+ contentMediaType?: string;
69
+ contentEncoding?: string;
70
+ contentSchema?: JSONSchema;
71
+ _prefault?: unknown;
72
+ };
73
+ type BaseSchema = JSONSchema;
74
+ //#endregion
75
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts
76
+ /** The Standard interface. */
77
+ interface StandardTypedV1<Input = unknown, Output = Input> {
78
+ /** The Standard properties. */
79
+ readonly "~standard": StandardTypedV1.Props<Input, Output>;
80
+ }
81
+ declare namespace StandardTypedV1 {
82
+ /** The Standard properties interface. */
83
+ interface Props<Input = unknown, Output = Input> {
84
+ /** The version number of the standard. */
85
+ readonly version: 1;
86
+ /** The vendor name of the schema library. */
87
+ readonly vendor: string;
88
+ /** Inferred types associated with the schema. */
89
+ readonly types?: Types<Input, Output> | undefined;
90
+ }
91
+ /** The Standard types interface. */
92
+ interface Types<Input = unknown, Output = Input> {
93
+ /** The input type of the schema. */
94
+ readonly input: Input;
95
+ /** The output type of the schema. */
96
+ readonly output: Output;
97
+ }
98
+ /** Infers the input type of a Standard. */
99
+ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
100
+ /** Infers the output type of a Standard. */
101
+ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
102
+ }
103
+ /** The Standard Schema interface. */
104
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
105
+ /** The Standard Schema properties. */
106
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
107
+ }
108
+ declare namespace StandardSchemaV1 {
109
+ /** The Standard Schema properties interface. */
110
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
111
+ /** Validates unknown input values. */
112
+ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
113
+ }
114
+ /** The result interface of the validate function. */
115
+ type Result<Output> = SuccessResult<Output> | FailureResult;
116
+ /** The result interface if validation succeeds. */
117
+ interface SuccessResult<Output> {
118
+ /** The typed output value. */
119
+ readonly value: Output;
120
+ /** The absence of issues indicates success. */
121
+ readonly issues?: undefined;
122
+ }
123
+ interface Options {
124
+ /** Implicit support for additional vendor-specific parameters, if needed. */
125
+ readonly libraryOptions?: Record<string, unknown> | undefined;
126
+ }
127
+ /** The result interface if validation fails. */
128
+ interface FailureResult {
129
+ /** The issues of failed validation. */
130
+ readonly issues: ReadonlyArray<Issue>;
131
+ }
132
+ /** The issue interface of the failure output. */
133
+ interface Issue {
134
+ /** The error message of the issue. */
135
+ readonly message: string;
136
+ /** The path of the issue, if any. */
137
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
138
+ }
139
+ /** The path segment interface of the issue. */
140
+ interface PathSegment {
141
+ /** The key representing a path segment. */
142
+ readonly key: PropertyKey;
143
+ }
144
+ /** The Standard types interface. */
145
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
146
+ /** Infers the input type of a Standard. */
147
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
148
+ /** Infers the output type of a Standard. */
149
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
150
+ }
151
+ /** The Standard JSON Schema interface. */
152
+ interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
153
+ /** The Standard JSON Schema properties. */
154
+ readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
155
+ }
156
+ declare namespace StandardJSONSchemaV1 {
157
+ /** The Standard JSON Schema properties interface. */
158
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
159
+ /** Methods for generating the input/output JSON Schema. */
160
+ readonly jsonSchema: Converter;
161
+ }
162
+ /** The Standard JSON Schema converter interface. */
163
+ interface Converter {
164
+ /** Converts the input type to JSON Schema. May throw if conversion is not supported. */
165
+ readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
166
+ /** Converts the output type to JSON Schema. May throw if conversion is not supported. */
167
+ readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
168
+ }
169
+ /** The target version of the generated JSON Schema.
170
+ *
171
+ * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use.
172
+ *
173
+ * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
174
+ *
175
+ * All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
176
+ */
177
+ type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
178
+ /** The options for the input/output methods. */
179
+ interface Options {
180
+ /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
181
+ readonly target: Target;
182
+ /** Implicit support for additional vendor-specific parameters, if needed. */
183
+ readonly libraryOptions?: Record<string, unknown> | undefined;
184
+ }
185
+ /** The Standard types interface. */
186
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
187
+ /** Infers the input type of a Standard. */
188
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
189
+ /** Infers the output type of a Standard. */
190
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
191
+ }
192
+ interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
193
+ //#endregion
194
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts
195
+ declare const $output: unique symbol;
196
+ type $output = typeof $output;
197
+ declare const $input: unique symbol;
198
+ type $input = typeof $input;
199
+ type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
200
+ type MetadataType = object | undefined;
201
+ declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
202
+ _meta: Meta;
203
+ _schema: Schema;
204
+ _map: WeakMap<Schema, $replace<Meta, Schema>>;
205
+ _idmap: Map<string, Schema>;
206
+ add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
207
+ clear(): this;
208
+ remove(schema: Schema): this;
209
+ get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
210
+ has(schema: Schema): boolean;
211
+ }
212
+ interface JSONSchemaMeta {
213
+ id?: string | undefined;
214
+ title?: string | undefined;
215
+ description?: string | undefined;
216
+ deprecated?: boolean | undefined;
217
+ [k: string]: unknown;
218
+ }
219
+ interface GlobalMeta extends JSONSchemaMeta {}
220
+ //#endregion
221
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts
222
+ type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
223
+ interface JSONSchemaGeneratorParams {
224
+ processors: Record<string, Processor>;
225
+ /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
226
+ * @default globalRegistry */
227
+ metadata?: $ZodRegistry<Record<string, any>>;
228
+ /** The JSON Schema version to target.
229
+ * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
230
+ * - `"draft-07"` — JSON Schema Draft 7
231
+ * - `"draft-04"` — JSON Schema Draft 4
232
+ * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
233
+ target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
234
+ /** How to handle unrepresentable types.
235
+ * - `"throw"` — Default. Unrepresentable types throw an error
236
+ * - `"any"` — Unrepresentable types become `{}` */
237
+ unrepresentable?: "throw" | "any";
238
+ /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
239
+ override?: (ctx: {
240
+ zodSchema: $ZodTypes;
241
+ jsonSchema: BaseSchema;
242
+ path: (string | number)[];
243
+ }) => void;
244
+ /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
245
+ * - `"output"` — Default. Convert the output schema.
246
+ * - `"input"` — Convert the input schema. */
247
+ io?: "input" | "output";
248
+ cycles?: "ref" | "throw";
249
+ reused?: "ref" | "inline";
250
+ external?: {
251
+ registry: $ZodRegistry<{
252
+ id?: string | undefined;
253
+ }>;
254
+ uri?: ((id: string) => string) | undefined;
255
+ defs: Record<string, BaseSchema>;
256
+ } | undefined;
257
+ }
258
+ /**
259
+ * Parameters for the toJSONSchema function.
260
+ */
261
+ type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
262
+ interface ProcessParams {
263
+ schemaPath: $ZodType[];
264
+ path: (string | number)[];
265
+ }
266
+ interface Seen {
267
+ /** JSON Schema result for this Zod schema */
268
+ schema: BaseSchema;
269
+ /** A cached version of the schema that doesn't get overwritten during ref resolution */
270
+ def?: BaseSchema;
271
+ defId?: string | undefined;
272
+ /** Number of times this schema was encountered during traversal */
273
+ count: number;
274
+ /** Cycle path */
275
+ cycle?: (string | number)[] | undefined;
276
+ isParent?: boolean | undefined;
277
+ /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
278
+ ref?: $ZodType | null;
279
+ /** JSON Schema property path for this schema */
280
+ path?: (string | number)[] | undefined;
281
+ }
282
+ interface ToJSONSchemaContext {
283
+ processors: Record<string, Processor>;
284
+ metadataRegistry: $ZodRegistry<Record<string, any>>;
285
+ target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
286
+ unrepresentable: "throw" | "any";
287
+ override: (ctx: {
288
+ zodSchema: $ZodType;
289
+ jsonSchema: BaseSchema;
290
+ path: (string | number)[];
291
+ }) => void;
292
+ io: "input" | "output";
293
+ counter: number;
294
+ seen: Map<$ZodType, Seen>;
295
+ cycles: "ref" | "throw";
296
+ reused: "ref" | "inline";
297
+ external?: {
298
+ registry: $ZodRegistry<{
299
+ id?: string | undefined;
300
+ }>;
301
+ uri?: ((id: string) => string) | undefined;
302
+ defs: Record<string, BaseSchema>;
303
+ } | undefined;
304
+ }
305
+ type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
306
+ interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
307
+ "~standard": ZodStandardSchemaWithJSON$1<T>;
308
+ }
309
+ //#endregion
310
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts
311
+ type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
312
+ type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
313
+ type IsAny<T> = 0 extends 1 & T ? true : false;
314
+ type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
315
+ type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
316
+ type NoUndefined<T> = T extends undefined ? never : T;
317
+ type LoosePartial<T extends object> = InexactPartial<T> & {
318
+ [k: string]: unknown;
319
+ };
320
+ type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
321
+ type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
322
+ readonly [Symbol.toStringTag]: string;
323
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
324
+ 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>;
325
+ type Identity<T> = T;
326
+ type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
327
+ type Prettify<T> = { [K in keyof T]: T[K] } & {};
328
+ type TupleItems = ReadonlyArray<SomeType>;
329
+ type AnyFunc = (...args: any[]) => any;
330
+ type MaybeAsync<T> = T | Promise<T>;
331
+ type EnumValue = string | number;
332
+ type EnumLike = Readonly<Record<string, EnumValue>>;
333
+ type Literal = string | number | bigint | boolean | null | undefined;
334
+ type Primitive = string | number | symbol | bigint | boolean | null | undefined;
335
+ type HasLength = {
336
+ length: number;
337
+ };
338
+ type PropValues = Record<string, Set<Primitive>>;
339
+ type PrimitiveSet = Set<Primitive>;
340
+ type EmptyToNever<T> = keyof T extends never ? never : T;
341
+ declare abstract class Class {
342
+ constructor(..._args: any[]);
343
+ }
344
+ //#endregion
345
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts
346
+ declare const version: {
347
+ readonly major: 4;
348
+ readonly minor: 3;
349
+ readonly patch: number;
350
+ };
351
+ //#endregion
352
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts
353
+ interface ParseContext<T extends $ZodIssueBase = never> {
354
+ /** Customize error messages. */
355
+ readonly error?: $ZodErrorMap<T>;
356
+ /** Include the `input` field in issue objects. Default `false`. */
357
+ readonly reportInput?: boolean;
358
+ /** Skip eval-based fast path. Default `false`. */
359
+ readonly jitless?: boolean;
360
+ }
361
+ /** @internal */
362
+ interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
363
+ readonly async?: boolean | undefined;
364
+ readonly direction?: "forward" | "backward";
365
+ readonly skipChecks?: boolean;
366
+ }
367
+ interface ParsePayload<T = unknown> {
368
+ value: T;
369
+ issues: $ZodRawIssue[];
370
+ /** A may to mark a whole payload as aborted. Used in codecs/pipes. */
371
+ aborted?: boolean;
372
+ }
373
+ type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
374
+ interface $ZodTypeDef {
375
+ type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
376
+ error?: $ZodErrorMap<never> | undefined;
377
+ checks?: $ZodCheck<never>[];
378
+ }
379
+ interface _$ZodTypeInternals {
380
+ /** The `@zod/core` version of this schema */
381
+ version: typeof version;
382
+ /** Schema definition. */
383
+ def: $ZodTypeDef;
384
+ /** @internal Randomly generated ID for this schema. */
385
+ /** @internal List of deferred initializers. */
386
+ deferred: AnyFunc[] | undefined;
387
+ /** @internal Parses input and runs all checks (refinements). */
388
+ run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
389
+ /** @internal Parses input, doesn't run checks. */
390
+ parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
391
+ /** @internal Stores identifiers for the set of traits implemented by this schema. */
392
+ traits: Set<string>;
393
+ /** @internal Indicates that a schema output type should be considered optional inside objects.
394
+ * @default Required
395
+ */
396
+ /** @internal */
397
+ optin?: "optional" | undefined;
398
+ /** @internal */
399
+ optout?: "optional" | undefined;
400
+ /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
401
+ *
402
+ * Defined on: enum, const, literal, null, undefined
403
+ * Passthrough: optional, nullable, branded, default, catch, pipe
404
+ * Todo: unions?
405
+ */
406
+ values?: PrimitiveSet | undefined;
407
+ /** Default value bubbled up from */
408
+ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */
409
+ propValues?: PropValues | undefined;
410
+ /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
411
+ pattern: RegExp | undefined;
412
+ /** @internal The constructor function of this schema. */
413
+ constr: new (def: any) => $ZodType;
414
+ /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
415
+ bag: Record<string, unknown>;
416
+ /** @internal The set of issues this schema might throw during type checking. */
417
+ isst: $ZodIssueBase;
418
+ /** @internal Subject to change, not a public API. */
419
+ processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
420
+ /** An optional method used to override `toJSONSchema` logic. */
421
+ toJSONSchema?: () => unknown;
422
+ /** @internal The parent of this schema. Only set during certain clone operations. */
423
+ parent?: $ZodType | undefined;
424
+ }
425
+ /** @internal */
426
+ interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
427
+ /** @internal The inferred output type */
428
+ output: O;
429
+ /** @internal The inferred input type */
430
+ input: I;
431
+ }
432
+ type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
433
+ type SomeType = {
434
+ _zod: _$ZodTypeInternals;
435
+ };
436
+ interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
437
+ _zod: Internals;
438
+ "~standard": $ZodStandardSchema<this>;
439
+ }
440
+ interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
441
+ declare const $ZodType: $constructor<$ZodType>;
442
+ interface $ZodStringDef extends $ZodTypeDef {
443
+ type: "string";
444
+ coerce?: boolean;
445
+ checks?: $ZodCheck<string>[];
446
+ }
447
+ interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
448
+ def: $ZodStringDef;
449
+ /** @deprecated Internal API, use with caution (not deprecated) */
450
+ pattern: RegExp;
451
+ /** @deprecated Internal API, use with caution (not deprecated) */
452
+ isst: $ZodIssueInvalidType;
453
+ bag: LoosePartial<{
454
+ minimum: number;
455
+ maximum: number;
456
+ patterns: Set<RegExp>;
457
+ format: string;
458
+ contentEncoding: string;
459
+ }>;
460
+ }
461
+ interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
462
+ declare const $ZodString: $constructor<$ZodString>;
463
+ interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
464
+ interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
465
+ def: $ZodStringFormatDef<Format>;
466
+ }
467
+ interface $ZodStringFormat<Format extends string = string> extends $ZodType {
468
+ _zod: $ZodStringFormatInternals<Format>;
469
+ }
470
+ declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
471
+ interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
472
+ interface $ZodGUID extends $ZodType {
473
+ _zod: $ZodGUIDInternals;
474
+ }
475
+ declare const $ZodGUID: $constructor<$ZodGUID>;
476
+ interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
477
+ version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
478
+ }
479
+ interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
480
+ def: $ZodUUIDDef;
481
+ }
482
+ interface $ZodUUID extends $ZodType {
483
+ _zod: $ZodUUIDInternals;
484
+ }
485
+ declare const $ZodUUID: $constructor<$ZodUUID>;
486
+ interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
487
+ interface $ZodEmail extends $ZodType {
488
+ _zod: $ZodEmailInternals;
489
+ }
490
+ declare const $ZodEmail: $constructor<$ZodEmail>;
491
+ interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
492
+ hostname?: RegExp | undefined;
493
+ protocol?: RegExp | undefined;
494
+ normalize?: boolean | undefined;
495
+ }
496
+ interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
497
+ def: $ZodURLDef;
498
+ }
499
+ interface $ZodURL extends $ZodType {
500
+ _zod: $ZodURLInternals;
501
+ }
502
+ declare const $ZodURL: $constructor<$ZodURL>;
503
+ interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
504
+ interface $ZodEmoji extends $ZodType {
505
+ _zod: $ZodEmojiInternals;
506
+ }
507
+ declare const $ZodEmoji: $constructor<$ZodEmoji>;
508
+ interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
509
+ interface $ZodNanoID extends $ZodType {
510
+ _zod: $ZodNanoIDInternals;
511
+ }
512
+ declare const $ZodNanoID: $constructor<$ZodNanoID>;
513
+ interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
514
+ interface $ZodCUID extends $ZodType {
515
+ _zod: $ZodCUIDInternals;
516
+ }
517
+ declare const $ZodCUID: $constructor<$ZodCUID>;
518
+ interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
519
+ interface $ZodCUID2 extends $ZodType {
520
+ _zod: $ZodCUID2Internals;
521
+ }
522
+ declare const $ZodCUID2: $constructor<$ZodCUID2>;
523
+ interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
524
+ interface $ZodULID extends $ZodType {
525
+ _zod: $ZodULIDInternals;
526
+ }
527
+ declare const $ZodULID: $constructor<$ZodULID>;
528
+ interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
529
+ interface $ZodXID extends $ZodType {
530
+ _zod: $ZodXIDInternals;
531
+ }
532
+ declare const $ZodXID: $constructor<$ZodXID>;
533
+ interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
534
+ interface $ZodKSUID extends $ZodType {
535
+ _zod: $ZodKSUIDInternals;
536
+ }
537
+ declare const $ZodKSUID: $constructor<$ZodKSUID>;
538
+ interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
539
+ precision: number | null;
540
+ offset: boolean;
541
+ local: boolean;
542
+ }
543
+ interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
544
+ def: $ZodISODateTimeDef;
545
+ }
546
+ interface $ZodISODateTime extends $ZodType {
547
+ _zod: $ZodISODateTimeInternals;
548
+ }
549
+ declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
550
+ interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
551
+ interface $ZodISODate extends $ZodType {
552
+ _zod: $ZodISODateInternals;
553
+ }
554
+ declare const $ZodISODate: $constructor<$ZodISODate>;
555
+ interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
556
+ precision?: number | null;
557
+ }
558
+ interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
559
+ def: $ZodISOTimeDef;
560
+ }
561
+ interface $ZodISOTime extends $ZodType {
562
+ _zod: $ZodISOTimeInternals;
563
+ }
564
+ declare const $ZodISOTime: $constructor<$ZodISOTime>;
565
+ interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
566
+ interface $ZodISODuration extends $ZodType {
567
+ _zod: $ZodISODurationInternals;
568
+ }
569
+ declare const $ZodISODuration: $constructor<$ZodISODuration>;
570
+ interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
571
+ version?: "v4";
572
+ }
573
+ interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
574
+ def: $ZodIPv4Def;
575
+ }
576
+ interface $ZodIPv4 extends $ZodType {
577
+ _zod: $ZodIPv4Internals;
578
+ }
579
+ declare const $ZodIPv4: $constructor<$ZodIPv4>;
580
+ interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
581
+ version?: "v6";
582
+ }
583
+ interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
584
+ def: $ZodIPv6Def;
585
+ }
586
+ interface $ZodIPv6 extends $ZodType {
587
+ _zod: $ZodIPv6Internals;
588
+ }
589
+ declare const $ZodIPv6: $constructor<$ZodIPv6>;
590
+ interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
591
+ version?: "v4";
592
+ }
593
+ interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
594
+ def: $ZodCIDRv4Def;
595
+ }
596
+ interface $ZodCIDRv4 extends $ZodType {
597
+ _zod: $ZodCIDRv4Internals;
598
+ }
599
+ declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
600
+ interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
601
+ version?: "v6";
602
+ }
603
+ interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
604
+ def: $ZodCIDRv6Def;
605
+ }
606
+ interface $ZodCIDRv6 extends $ZodType {
607
+ _zod: $ZodCIDRv6Internals;
608
+ }
609
+ declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
610
+ interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
611
+ interface $ZodBase64 extends $ZodType {
612
+ _zod: $ZodBase64Internals;
613
+ }
614
+ declare const $ZodBase64: $constructor<$ZodBase64>;
615
+ interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
616
+ interface $ZodBase64URL extends $ZodType {
617
+ _zod: $ZodBase64URLInternals;
618
+ }
619
+ declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
620
+ interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
621
+ interface $ZodE164 extends $ZodType {
622
+ _zod: $ZodE164Internals;
623
+ }
624
+ declare const $ZodE164: $constructor<$ZodE164>;
625
+ interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
626
+ alg?: JWTAlgorithm | undefined;
627
+ }
628
+ interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
629
+ def: $ZodJWTDef;
630
+ }
631
+ interface $ZodJWT extends $ZodType {
632
+ _zod: $ZodJWTInternals;
633
+ }
634
+ declare const $ZodJWT: $constructor<$ZodJWT>;
635
+ interface $ZodNumberDef extends $ZodTypeDef {
636
+ type: "number";
637
+ coerce?: boolean;
638
+ }
639
+ interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
640
+ def: $ZodNumberDef;
641
+ /** @deprecated Internal API, use with caution (not deprecated) */
642
+ pattern: RegExp;
643
+ /** @deprecated Internal API, use with caution (not deprecated) */
644
+ isst: $ZodIssueInvalidType;
645
+ bag: LoosePartial<{
646
+ minimum: number;
647
+ maximum: number;
648
+ exclusiveMinimum: number;
649
+ exclusiveMaximum: number;
650
+ format: string;
651
+ pattern: RegExp;
652
+ }>;
653
+ }
654
+ interface $ZodNumber<Input = unknown> extends $ZodType {
655
+ _zod: $ZodNumberInternals<Input>;
656
+ }
657
+ declare const $ZodNumber: $constructor<$ZodNumber>;
658
+ interface $ZodBooleanDef extends $ZodTypeDef {
659
+ type: "boolean";
660
+ coerce?: boolean;
661
+ checks?: $ZodCheck<boolean>[];
662
+ }
663
+ interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
664
+ pattern: RegExp;
665
+ def: $ZodBooleanDef;
666
+ isst: $ZodIssueInvalidType;
667
+ }
668
+ interface $ZodBoolean<T = unknown> extends $ZodType {
669
+ _zod: $ZodBooleanInternals<T>;
670
+ }
671
+ declare const $ZodBoolean: $constructor<$ZodBoolean>;
672
+ interface $ZodBigIntDef extends $ZodTypeDef {
673
+ type: "bigint";
674
+ coerce?: boolean;
675
+ }
676
+ interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
677
+ pattern: RegExp;
678
+ /** @internal Internal API, use with caution */
679
+ def: $ZodBigIntDef;
680
+ isst: $ZodIssueInvalidType;
681
+ bag: LoosePartial<{
682
+ minimum: bigint;
683
+ maximum: bigint;
684
+ format: string;
685
+ }>;
686
+ }
687
+ interface $ZodBigInt<T = unknown> extends $ZodType {
688
+ _zod: $ZodBigIntInternals<T>;
689
+ }
690
+ declare const $ZodBigInt: $constructor<$ZodBigInt>;
691
+ interface $ZodSymbolDef extends $ZodTypeDef {
692
+ type: "symbol";
693
+ }
694
+ interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
695
+ def: $ZodSymbolDef;
696
+ isst: $ZodIssueInvalidType;
697
+ }
698
+ interface $ZodSymbol extends $ZodType {
699
+ _zod: $ZodSymbolInternals;
700
+ }
701
+ declare const $ZodSymbol: $constructor<$ZodSymbol>;
702
+ interface $ZodUndefinedDef extends $ZodTypeDef {
703
+ type: "undefined";
704
+ }
705
+ interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
706
+ pattern: RegExp;
707
+ def: $ZodUndefinedDef;
708
+ values: PrimitiveSet;
709
+ isst: $ZodIssueInvalidType;
710
+ }
711
+ interface $ZodUndefined extends $ZodType {
712
+ _zod: $ZodUndefinedInternals;
713
+ }
714
+ declare const $ZodUndefined: $constructor<$ZodUndefined>;
715
+ interface $ZodNullDef extends $ZodTypeDef {
716
+ type: "null";
717
+ }
718
+ interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
719
+ pattern: RegExp;
720
+ def: $ZodNullDef;
721
+ values: PrimitiveSet;
722
+ isst: $ZodIssueInvalidType;
723
+ }
724
+ interface $ZodNull extends $ZodType {
725
+ _zod: $ZodNullInternals;
726
+ }
727
+ declare const $ZodNull: $constructor<$ZodNull>;
728
+ interface $ZodAnyDef extends $ZodTypeDef {
729
+ type: "any";
730
+ }
731
+ interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
732
+ def: $ZodAnyDef;
733
+ isst: never;
734
+ }
735
+ interface $ZodAny extends $ZodType {
736
+ _zod: $ZodAnyInternals;
737
+ }
738
+ declare const $ZodAny: $constructor<$ZodAny>;
739
+ interface $ZodUnknownDef extends $ZodTypeDef {
740
+ type: "unknown";
741
+ }
742
+ interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
743
+ def: $ZodUnknownDef;
744
+ isst: never;
745
+ }
746
+ interface $ZodUnknown extends $ZodType {
747
+ _zod: $ZodUnknownInternals;
748
+ }
749
+ declare const $ZodUnknown: $constructor<$ZodUnknown>;
750
+ interface $ZodNeverDef extends $ZodTypeDef {
751
+ type: "never";
752
+ }
753
+ interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
754
+ def: $ZodNeverDef;
755
+ isst: $ZodIssueInvalidType;
756
+ }
757
+ interface $ZodNever extends $ZodType {
758
+ _zod: $ZodNeverInternals;
759
+ }
760
+ declare const $ZodNever: $constructor<$ZodNever>;
761
+ interface $ZodVoidDef extends $ZodTypeDef {
762
+ type: "void";
763
+ }
764
+ interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
765
+ def: $ZodVoidDef;
766
+ isst: $ZodIssueInvalidType;
767
+ }
768
+ interface $ZodVoid extends $ZodType {
769
+ _zod: $ZodVoidInternals;
770
+ }
771
+ declare const $ZodVoid: $constructor<$ZodVoid>;
772
+ interface $ZodDateDef extends $ZodTypeDef {
773
+ type: "date";
774
+ coerce?: boolean;
775
+ }
776
+ interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
777
+ def: $ZodDateDef;
778
+ isst: $ZodIssueInvalidType;
779
+ bag: LoosePartial<{
780
+ minimum: Date;
781
+ maximum: Date;
782
+ format: string;
783
+ }>;
784
+ }
785
+ interface $ZodDate<T = unknown> extends $ZodType {
786
+ _zod: $ZodDateInternals<T>;
787
+ }
788
+ declare const $ZodDate: $constructor<$ZodDate>;
789
+ interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
790
+ type: "array";
791
+ element: T;
792
+ }
793
+ interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
794
+ def: $ZodArrayDef<T>;
795
+ isst: $ZodIssueInvalidType;
796
+ output: output<T>[];
797
+ input: input<T>[];
798
+ }
799
+ interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
800
+ declare const $ZodArray: $constructor<$ZodArray>;
801
+ type OptionalOutSchema = {
802
+ _zod: {
803
+ optout: "optional";
804
+ };
805
+ };
806
+ type OptionalInSchema = {
807
+ _zod: {
808
+ optin: "optional";
809
+ };
810
+ };
811
+ type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"] } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"] } & Extra>;
812
+ type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"] } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"] } & Extra>;
813
+ type $ZodObjectConfig = {
814
+ out: Record<string, unknown>;
815
+ in: Record<string, unknown>;
816
+ };
817
+ type $ZodShape = Readonly<{
818
+ [k: string]: $ZodType;
819
+ }>;
820
+ interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
821
+ type: "object";
822
+ shape: Shape;
823
+ catchall?: $ZodType | undefined;
824
+ }
825
+ interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
826
+ def: $ZodObjectDef<Shape>;
827
+ config: Config;
828
+ isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
829
+ propValues: PropValues;
830
+ output: $InferObjectOutput<Shape, Config["out"]>;
831
+ input: $InferObjectInput<Shape, Config["in"]>;
832
+ optin?: "optional" | undefined;
833
+ optout?: "optional" | undefined;
834
+ }
835
+ type $ZodLooseShape = Record<string, any>;
836
+ interface $ZodObject< /** @ts-ignore Cast variance */out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
837
+ declare const $ZodObject: $constructor<$ZodObject>;
838
+ type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
839
+ type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
840
+ interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
841
+ type: "union";
842
+ options: Options;
843
+ inclusive?: boolean;
844
+ }
845
+ type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
846
+ type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
847
+ interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
848
+ def: $ZodUnionDef<T>;
849
+ isst: $ZodIssueInvalidUnion;
850
+ pattern: T[number]["_zod"]["pattern"];
851
+ values: T[number]["_zod"]["values"];
852
+ output: $InferUnionOutput<T[number]>;
853
+ input: $InferUnionInput<T[number]>;
854
+ optin: IsOptionalIn<T[number]> extends false ? "optional" | undefined : "optional";
855
+ optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
856
+ }
857
+ interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
858
+ _zod: $ZodUnionInternals<T>;
859
+ }
860
+ declare const $ZodUnion: $constructor<$ZodUnion>;
861
+ interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
862
+ type: "intersection";
863
+ left: Left;
864
+ right: Right;
865
+ }
866
+ interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
867
+ def: $ZodIntersectionDef<A, B>;
868
+ isst: never;
869
+ optin: A["_zod"]["optin"] | B["_zod"]["optin"];
870
+ optout: A["_zod"]["optout"] | B["_zod"]["optout"];
871
+ output: output<A> & output<B>;
872
+ input: input<A> & input<B>;
873
+ }
874
+ interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
875
+ _zod: $ZodIntersectionInternals<A, B>;
876
+ }
877
+ declare const $ZodIntersection: $constructor<$ZodIntersection>;
878
+ interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
879
+ type: "tuple";
880
+ items: T;
881
+ rest: Rest;
882
+ }
883
+ type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
884
+ type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]> };
885
+ type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
886
+ type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
887
+ type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]> };
888
+ type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
889
+ interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
890
+ def: $ZodTupleDef<T, Rest>;
891
+ isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
892
+ output: $InferTupleOutputType<T, Rest>;
893
+ input: $InferTupleInputType<T, Rest>;
894
+ }
895
+ interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
896
+ _zod: $ZodTupleInternals<T, Rest>;
897
+ }
898
+ declare const $ZodTuple: $constructor<$ZodTuple>;
899
+ type $ZodRecordKey = $ZodType<string | number | symbol, unknown>;
900
+ interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
901
+ type: "record";
902
+ keyType: Key;
903
+ valueType: Value;
904
+ /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
905
+ mode?: "strict" | "loose";
906
+ }
907
+ type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
908
+ type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key> & PropertyKey, input<Value>>> : Record<input<Key> & PropertyKey, input<Value>>;
909
+ interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
910
+ def: $ZodRecordDef<Key, Value>;
911
+ isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
912
+ optin?: "optional" | undefined;
913
+ optout?: "optional" | undefined;
914
+ }
915
+ type $partial = {
916
+ "~~partial": true;
917
+ };
918
+ interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
919
+ _zod: $ZodRecordInternals<Key, Value>;
920
+ }
921
+ declare const $ZodRecord: $constructor<$ZodRecord>;
922
+ interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
923
+ type: "map";
924
+ keyType: Key;
925
+ valueType: Value;
926
+ }
927
+ interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
928
+ def: $ZodMapDef<Key, Value>;
929
+ isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
930
+ optin?: "optional" | undefined;
931
+ optout?: "optional" | undefined;
932
+ }
933
+ interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
934
+ _zod: $ZodMapInternals<Key, Value>;
935
+ }
936
+ declare const $ZodMap: $constructor<$ZodMap>;
937
+ interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
938
+ type: "set";
939
+ valueType: T;
940
+ }
941
+ interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
942
+ def: $ZodSetDef<T>;
943
+ isst: $ZodIssueInvalidType;
944
+ optin?: "optional" | undefined;
945
+ optout?: "optional" | undefined;
946
+ }
947
+ interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
948
+ _zod: $ZodSetInternals<T>;
949
+ }
950
+ declare const $ZodSet: $constructor<$ZodSet>;
951
+ type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
952
+ type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
953
+ interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
954
+ type: "enum";
955
+ entries: T;
956
+ }
957
+ interface $ZodEnumInternals< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
958
+ def: $ZodEnumDef<T>;
959
+ /** @deprecated Internal API, use with caution (not deprecated) */
960
+ values: PrimitiveSet;
961
+ /** @deprecated Internal API, use with caution (not deprecated) */
962
+ pattern: RegExp;
963
+ isst: $ZodIssueInvalidValue;
964
+ }
965
+ interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType {
966
+ _zod: $ZodEnumInternals<T>;
967
+ }
968
+ declare const $ZodEnum: $constructor<$ZodEnum>;
969
+ interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef {
970
+ type: "literal";
971
+ values: T[];
972
+ }
973
+ interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> {
974
+ def: $ZodLiteralDef<T>;
975
+ values: Set<T>;
976
+ pattern: RegExp;
977
+ isst: $ZodIssueInvalidValue;
978
+ }
979
+ interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
980
+ _zod: $ZodLiteralInternals<T>;
981
+ }
982
+ declare const $ZodLiteral: $constructor<$ZodLiteral>;
983
+ type _File = typeof globalThis extends {
984
+ File: infer F extends new (...args: any[]) => any;
985
+ } ? InstanceType<F> : {};
986
+ /** Do not reference this directly. */
987
+ interface File extends _File {
988
+ readonly type: string;
989
+ readonly size: number;
990
+ }
991
+ interface $ZodFileDef extends $ZodTypeDef {
992
+ type: "file";
993
+ }
994
+ interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
995
+ def: $ZodFileDef;
996
+ isst: $ZodIssueInvalidType;
997
+ bag: LoosePartial<{
998
+ minimum: number;
999
+ maximum: number;
1000
+ mime: MimeTypes[];
1001
+ }>;
1002
+ }
1003
+ interface $ZodFile extends $ZodType {
1004
+ _zod: $ZodFileInternals;
1005
+ }
1006
+ declare const $ZodFile: $constructor<$ZodFile>;
1007
+ interface $ZodTransformDef extends $ZodTypeDef {
1008
+ type: "transform";
1009
+ transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
1010
+ }
1011
+ interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
1012
+ def: $ZodTransformDef;
1013
+ isst: never;
1014
+ }
1015
+ interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
1016
+ _zod: $ZodTransformInternals<O, I>;
1017
+ }
1018
+ declare const $ZodTransform: $constructor<$ZodTransform>;
1019
+ interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1020
+ type: "optional";
1021
+ innerType: T;
1022
+ }
1023
+ interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
1024
+ def: $ZodOptionalDef<T>;
1025
+ optin: "optional";
1026
+ optout: "optional";
1027
+ isst: never;
1028
+ values: T["_zod"]["values"];
1029
+ pattern: T["_zod"]["pattern"];
1030
+ }
1031
+ interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
1032
+ _zod: $ZodOptionalInternals<T>;
1033
+ }
1034
+ declare const $ZodOptional: $constructor<$ZodOptional>;
1035
+ interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {}
1036
+ interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
1037
+ def: $ZodExactOptionalDef<T>;
1038
+ output: output<T>;
1039
+ input: input<T>;
1040
+ }
1041
+ interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
1042
+ _zod: $ZodExactOptionalInternals<T>;
1043
+ }
1044
+ declare const $ZodExactOptional: $constructor<$ZodExactOptional>;
1045
+ interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1046
+ type: "nullable";
1047
+ innerType: T;
1048
+ }
1049
+ interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
1050
+ def: $ZodNullableDef<T>;
1051
+ optin: T["_zod"]["optin"];
1052
+ optout: T["_zod"]["optout"];
1053
+ isst: never;
1054
+ values: T["_zod"]["values"];
1055
+ pattern: T["_zod"]["pattern"];
1056
+ }
1057
+ interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
1058
+ _zod: $ZodNullableInternals<T>;
1059
+ }
1060
+ declare const $ZodNullable: $constructor<$ZodNullable>;
1061
+ interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1062
+ type: "default";
1063
+ innerType: T;
1064
+ /** The default value. May be a getter. */
1065
+ defaultValue: NoUndefined<output<T>>;
1066
+ }
1067
+ interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
1068
+ def: $ZodDefaultDef<T>;
1069
+ optin: "optional";
1070
+ optout?: "optional" | undefined;
1071
+ isst: never;
1072
+ values: T["_zod"]["values"];
1073
+ }
1074
+ interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
1075
+ _zod: $ZodDefaultInternals<T>;
1076
+ }
1077
+ declare const $ZodDefault: $constructor<$ZodDefault>;
1078
+ interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1079
+ type: "prefault";
1080
+ innerType: T;
1081
+ /** The default value. May be a getter. */
1082
+ defaultValue: input<T>;
1083
+ }
1084
+ interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
1085
+ def: $ZodPrefaultDef<T>;
1086
+ optin: "optional";
1087
+ optout?: "optional" | undefined;
1088
+ isst: never;
1089
+ values: T["_zod"]["values"];
1090
+ }
1091
+ interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
1092
+ _zod: $ZodPrefaultInternals<T>;
1093
+ }
1094
+ declare const $ZodPrefault: $constructor<$ZodPrefault>;
1095
+ interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1096
+ type: "nonoptional";
1097
+ innerType: T;
1098
+ }
1099
+ interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
1100
+ def: $ZodNonOptionalDef<T>;
1101
+ isst: $ZodIssueInvalidType;
1102
+ values: T["_zod"]["values"];
1103
+ optin: "optional" | undefined;
1104
+ optout: "optional" | undefined;
1105
+ }
1106
+ interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
1107
+ _zod: $ZodNonOptionalInternals<T>;
1108
+ }
1109
+ declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
1110
+ interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1111
+ type: "success";
1112
+ innerType: T;
1113
+ }
1114
+ interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
1115
+ def: $ZodSuccessDef<T>;
1116
+ isst: never;
1117
+ optin: T["_zod"]["optin"];
1118
+ optout: "optional" | undefined;
1119
+ }
1120
+ interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
1121
+ _zod: $ZodSuccessInternals<T>;
1122
+ }
1123
+ declare const $ZodSuccess: $constructor<$ZodSuccess>;
1124
+ interface $ZodCatchCtx extends ParsePayload {
1125
+ /** @deprecated Use `ctx.issues` */
1126
+ error: {
1127
+ issues: $ZodIssue[];
1128
+ };
1129
+ /** @deprecated Use `ctx.value` */
1130
+ input: unknown;
1131
+ }
1132
+ interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1133
+ type: "catch";
1134
+ innerType: T;
1135
+ catchValue: (ctx: $ZodCatchCtx) => unknown;
1136
+ }
1137
+ interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
1138
+ def: $ZodCatchDef<T>;
1139
+ optin: T["_zod"]["optin"];
1140
+ optout: T["_zod"]["optout"];
1141
+ isst: never;
1142
+ values: T["_zod"]["values"];
1143
+ }
1144
+ interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
1145
+ _zod: $ZodCatchInternals<T>;
1146
+ }
1147
+ declare const $ZodCatch: $constructor<$ZodCatch>;
1148
+ interface $ZodNaNDef extends $ZodTypeDef {
1149
+ type: "nan";
1150
+ }
1151
+ interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
1152
+ def: $ZodNaNDef;
1153
+ isst: $ZodIssueInvalidType;
1154
+ }
1155
+ interface $ZodNaN extends $ZodType {
1156
+ _zod: $ZodNaNInternals;
1157
+ }
1158
+ declare const $ZodNaN: $constructor<$ZodNaN>;
1159
+ interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
1160
+ type: "pipe";
1161
+ in: A;
1162
+ out: B;
1163
+ /** Only defined inside $ZodCodec instances. */
1164
+ transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
1165
+ /** Only defined inside $ZodCodec instances. */
1166
+ reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
1167
+ }
1168
+ interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
1169
+ def: $ZodPipeDef<A, B>;
1170
+ isst: never;
1171
+ values: A["_zod"]["values"];
1172
+ optin: A["_zod"]["optin"];
1173
+ optout: B["_zod"]["optout"];
1174
+ propValues: A["_zod"]["propValues"];
1175
+ }
1176
+ interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1177
+ _zod: $ZodPipeInternals<A, B>;
1178
+ }
1179
+ declare const $ZodPipe: $constructor<$ZodPipe>;
1180
+ interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1181
+ type: "readonly";
1182
+ innerType: T;
1183
+ }
1184
+ interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
1185
+ def: $ZodReadonlyDef<T>;
1186
+ optin: T["_zod"]["optin"];
1187
+ optout: T["_zod"]["optout"];
1188
+ isst: never;
1189
+ propValues: T["_zod"]["propValues"];
1190
+ values: T["_zod"]["values"];
1191
+ }
1192
+ interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
1193
+ _zod: $ZodReadonlyInternals<T>;
1194
+ }
1195
+ declare const $ZodReadonly: $constructor<$ZodReadonly>;
1196
+ interface $ZodTemplateLiteralDef extends $ZodTypeDef {
1197
+ type: "template_literal";
1198
+ parts: $ZodTemplateLiteralPart[];
1199
+ format?: string | undefined;
1200
+ }
1201
+ interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
1202
+ pattern: RegExp;
1203
+ def: $ZodTemplateLiteralDef;
1204
+ isst: $ZodIssueInvalidType;
1205
+ }
1206
+ interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
1207
+ _zod: $ZodTemplateLiteralInternals<Template>;
1208
+ }
1209
+ type LiteralPart = Exclude<Literal, symbol>;
1210
+ interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
1211
+ pattern: RegExp;
1212
+ }
1213
+ interface SchemaPart extends $ZodType {
1214
+ _zod: SchemaPartInternals;
1215
+ }
1216
+ type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
1217
+ declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
1218
+ type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
1219
+ type $ZodFunctionIn = $ZodFunctionArgs;
1220
+ type $ZodFunctionOut = $ZodType;
1221
+ type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
1222
+ type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
1223
+ type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
1224
+ type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
1225
+ interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
1226
+ type: "function";
1227
+ input: In;
1228
+ output: Out;
1229
+ }
1230
+ interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
1231
+ def: $ZodFunctionDef<Args, Returns>;
1232
+ isst: $ZodIssueInvalidType;
1233
+ }
1234
+ interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
1235
+ /** @deprecated */
1236
+ _def: $ZodFunctionDef<Args, Returns>;
1237
+ _input: $InferInnerFunctionType<Args, Returns>;
1238
+ _output: $InferOuterFunctionType<Args, Returns>;
1239
+ implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
1240
+ implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
1241
+ input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
1242
+ input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
1243
+ input(...args: any[]): $ZodFunction<any, Returns>;
1244
+ output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
1245
+ }
1246
+ declare const $ZodFunction: $constructor<$ZodFunction>;
1247
+ interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1248
+ type: "promise";
1249
+ innerType: T;
1250
+ }
1251
+ interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
1252
+ def: $ZodPromiseDef<T>;
1253
+ isst: never;
1254
+ }
1255
+ interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
1256
+ _zod: $ZodPromiseInternals<T>;
1257
+ }
1258
+ declare const $ZodPromise: $constructor<$ZodPromise>;
1259
+ interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1260
+ type: "lazy";
1261
+ getter: () => T;
1262
+ }
1263
+ interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
1264
+ def: $ZodLazyDef<T>;
1265
+ isst: never;
1266
+ /** Auto-cached way to retrieve the inner schema */
1267
+ innerType: T;
1268
+ pattern: T["_zod"]["pattern"];
1269
+ propValues: T["_zod"]["propValues"];
1270
+ optin: T["_zod"]["optin"];
1271
+ optout: T["_zod"]["optout"];
1272
+ }
1273
+ interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
1274
+ _zod: $ZodLazyInternals<T>;
1275
+ }
1276
+ declare const $ZodLazy: $constructor<$ZodLazy>;
1277
+ interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
1278
+ type: "custom";
1279
+ check: "custom";
1280
+ path?: PropertyKey[] | undefined;
1281
+ error?: $ZodErrorMap | undefined;
1282
+ params?: Record<string, any> | undefined;
1283
+ fn: (arg: O) => unknown;
1284
+ }
1285
+ interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
1286
+ def: $ZodCustomDef;
1287
+ issc: $ZodIssue;
1288
+ isst: never;
1289
+ bag: LoosePartial<{
1290
+ Class: typeof Class;
1291
+ }>;
1292
+ }
1293
+ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
1294
+ _zod: $ZodCustomInternals<O, I>;
1295
+ }
1296
+ declare const $ZodCustom: $constructor<$ZodCustom>;
1297
+ type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
1298
+ //#endregion
1299
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.cts
1300
+ interface $ZodCheckDef {
1301
+ check: string;
1302
+ error?: $ZodErrorMap<never> | undefined;
1303
+ /** If true, no later checks will be executed if this check fails. Default `false`. */
1304
+ abort?: boolean | undefined;
1305
+ /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
1306
+ when?: ((payload: ParsePayload) => boolean) | undefined;
1307
+ }
1308
+ interface $ZodCheckInternals<T> {
1309
+ def: $ZodCheckDef;
1310
+ /** The set of issues this check might throw. */
1311
+ issc?: $ZodIssueBase;
1312
+ check(payload: ParsePayload<T>): MaybeAsync<void>;
1313
+ onattach: ((schema: $ZodType) => void)[];
1314
+ }
1315
+ interface $ZodCheck<in T = never> {
1316
+ _zod: $ZodCheckInternals<T>;
1317
+ }
1318
+ declare const $ZodCheck: $constructor<$ZodCheck<any>>;
1319
+ interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
1320
+ check: "max_length";
1321
+ maximum: number;
1322
+ }
1323
+ interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1324
+ def: $ZodCheckMaxLengthDef;
1325
+ issc: $ZodIssueTooBig<T>;
1326
+ }
1327
+ interface $ZodCheckMaxLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
1328
+ _zod: $ZodCheckMaxLengthInternals<T>;
1329
+ }
1330
+ declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
1331
+ interface $ZodCheckMinLengthDef extends $ZodCheckDef {
1332
+ check: "min_length";
1333
+ minimum: number;
1334
+ }
1335
+ interface $ZodCheckMinLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1336
+ def: $ZodCheckMinLengthDef;
1337
+ issc: $ZodIssueTooSmall<T>;
1338
+ }
1339
+ interface $ZodCheckMinLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
1340
+ _zod: $ZodCheckMinLengthInternals<T>;
1341
+ }
1342
+ declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
1343
+ interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
1344
+ check: "length_equals";
1345
+ length: number;
1346
+ }
1347
+ interface $ZodCheckLengthEqualsInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1348
+ def: $ZodCheckLengthEqualsDef;
1349
+ issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
1350
+ }
1351
+ interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodCheck<T> {
1352
+ _zod: $ZodCheckLengthEqualsInternals<T>;
1353
+ }
1354
+ declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
1355
+ type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
1356
+ interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
1357
+ check: "string_format";
1358
+ format: Format;
1359
+ pattern?: RegExp | undefined;
1360
+ }
1361
+ interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
1362
+ def: $ZodCheckStringFormatDef;
1363
+ issc: $ZodIssueInvalidStringFormat;
1364
+ }
1365
+ interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
1366
+ format: "regex";
1367
+ pattern: RegExp;
1368
+ }
1369
+ interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
1370
+ def: $ZodCheckRegexDef;
1371
+ issc: $ZodIssueInvalidStringFormat;
1372
+ }
1373
+ interface $ZodCheckRegex extends $ZodCheck<string> {
1374
+ _zod: $ZodCheckRegexInternals;
1375
+ }
1376
+ declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
1377
+ interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
1378
+ interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
1379
+ def: $ZodCheckLowerCaseDef;
1380
+ issc: $ZodIssueInvalidStringFormat;
1381
+ }
1382
+ interface $ZodCheckLowerCase extends $ZodCheck<string> {
1383
+ _zod: $ZodCheckLowerCaseInternals;
1384
+ }
1385
+ declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
1386
+ interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
1387
+ interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
1388
+ def: $ZodCheckUpperCaseDef;
1389
+ issc: $ZodIssueInvalidStringFormat;
1390
+ }
1391
+ interface $ZodCheckUpperCase extends $ZodCheck<string> {
1392
+ _zod: $ZodCheckUpperCaseInternals;
1393
+ }
1394
+ declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
1395
+ interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
1396
+ includes: string;
1397
+ position?: number | undefined;
1398
+ }
1399
+ interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
1400
+ def: $ZodCheckIncludesDef;
1401
+ issc: $ZodIssueInvalidStringFormat;
1402
+ }
1403
+ interface $ZodCheckIncludes extends $ZodCheck<string> {
1404
+ _zod: $ZodCheckIncludesInternals;
1405
+ }
1406
+ declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
1407
+ interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
1408
+ prefix: string;
1409
+ }
1410
+ interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
1411
+ def: $ZodCheckStartsWithDef;
1412
+ issc: $ZodIssueInvalidStringFormat;
1413
+ }
1414
+ interface $ZodCheckStartsWith extends $ZodCheck<string> {
1415
+ _zod: $ZodCheckStartsWithInternals;
1416
+ }
1417
+ declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
1418
+ interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
1419
+ suffix: string;
1420
+ }
1421
+ interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
1422
+ def: $ZodCheckEndsWithDef;
1423
+ issc: $ZodIssueInvalidStringFormat;
1424
+ }
1425
+ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
1426
+ _zod: $ZodCheckEndsWithInternals;
1427
+ }
1428
+ declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
1429
+ //#endregion
1430
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.cts
1431
+ interface $ZodIssueBase {
1432
+ readonly code?: string;
1433
+ readonly input?: unknown;
1434
+ readonly path: PropertyKey[];
1435
+ readonly message: string;
1436
+ }
1437
+ type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {});
1438
+ interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
1439
+ readonly code: "invalid_type";
1440
+ readonly expected: $ZodInvalidTypeExpected;
1441
+ readonly input?: Input;
1442
+ }
1443
+ interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
1444
+ readonly code: "too_big";
1445
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
1446
+ readonly maximum: number | bigint;
1447
+ readonly inclusive?: boolean;
1448
+ readonly exact?: boolean;
1449
+ readonly input?: Input;
1450
+ }
1451
+ interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
1452
+ readonly code: "too_small";
1453
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
1454
+ readonly minimum: number | bigint;
1455
+ /** True if the allowable range includes the minimum */
1456
+ readonly inclusive?: boolean;
1457
+ /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
1458
+ readonly exact?: boolean;
1459
+ readonly input?: Input;
1460
+ }
1461
+ interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
1462
+ readonly code: "invalid_format";
1463
+ readonly format: $ZodStringFormats | (string & {});
1464
+ readonly pattern?: string;
1465
+ readonly input?: string;
1466
+ }
1467
+ interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
1468
+ readonly code: "not_multiple_of";
1469
+ readonly divisor: number;
1470
+ readonly input?: Input;
1471
+ }
1472
+ interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
1473
+ readonly code: "unrecognized_keys";
1474
+ readonly keys: string[];
1475
+ readonly input?: Record<string, unknown>;
1476
+ }
1477
+ interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
1478
+ readonly code: "invalid_union";
1479
+ readonly errors: $ZodIssue[][];
1480
+ readonly input?: unknown;
1481
+ readonly discriminator?: string | undefined;
1482
+ readonly inclusive?: true;
1483
+ }
1484
+ interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
1485
+ readonly code: "invalid_union";
1486
+ readonly errors: [];
1487
+ readonly input?: unknown;
1488
+ readonly discriminator?: string | undefined;
1489
+ readonly inclusive: false;
1490
+ }
1491
+ type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
1492
+ interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
1493
+ readonly code: "invalid_key";
1494
+ readonly origin: "map" | "record";
1495
+ readonly issues: $ZodIssue[];
1496
+ readonly input?: Input;
1497
+ }
1498
+ interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
1499
+ readonly code: "invalid_element";
1500
+ readonly origin: "map" | "set";
1501
+ readonly key: unknown;
1502
+ readonly issues: $ZodIssue[];
1503
+ readonly input?: Input;
1504
+ }
1505
+ interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
1506
+ readonly code: "invalid_value";
1507
+ readonly values: Primitive[];
1508
+ readonly input?: Input;
1509
+ }
1510
+ interface $ZodIssueCustom extends $ZodIssueBase {
1511
+ readonly code: "custom";
1512
+ readonly params?: Record<string, any> | undefined;
1513
+ readonly input?: unknown;
1514
+ }
1515
+ type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
1516
+ type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
1517
+ type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1518
+ /** The input data */readonly input: unknown; /** The schema or check that originated this issue. */
1519
+ readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will continue executing checks/refinements after this issue. */
1520
+ readonly continue?: boolean | undefined;
1521
+ } & Record<string, unknown>> : never;
1522
+ type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
1523
+ interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
1524
+ (issue: $ZodRawIssue<T>): {
1525
+ message: string;
1526
+ } | string | undefined | null;
1527
+ }
1528
+ interface $ZodError<T = unknown> extends Error {
1529
+ type: T;
1530
+ issues: $ZodIssue[];
1531
+ _zod: {
1532
+ output: T;
1533
+ def: $ZodIssue[];
1534
+ };
1535
+ stack?: string;
1536
+ name: string;
1537
+ }
1538
+ declare const $ZodError: $constructor<$ZodError>;
1539
+ type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
1540
+ type _FlattenedError<T, U = string> = {
1541
+ formErrors: U[];
1542
+ fieldErrors: { [P in keyof T]?: U[] };
1543
+ };
1544
+ type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U> } : T extends any[] ? {
1545
+ [k: number]: $ZodFormattedError<T[number], U>;
1546
+ } : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U> }> : any;
1547
+ type $ZodFormattedError<T, U = string> = {
1548
+ _errors: U[];
1549
+ } & Flatten<_ZodFormattedError<T, U>>;
1550
+ //#endregion
1551
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.cts
1552
+ type ZodTrait = {
1553
+ _zod: {
1554
+ def: any;
1555
+ [k: string]: any;
1556
+ };
1557
+ };
1558
+ interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
1559
+ new (def: D): T;
1560
+ init(inst: T, def: D): asserts inst is T;
1561
+ }
1562
+ declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
1563
+ Parent?: typeof Class;
1564
+ }): $constructor<T, D>;
1565
+ declare const $brand: unique symbol;
1566
+ type $brand<T extends string | number | symbol = string | number | symbol> = {
1567
+ [$brand]: { [k in T]: true };
1568
+ };
1569
+ type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
1570
+ _zod: {
1571
+ input: input<T> & $brand<Brand>;
1572
+ output: output<T> & $brand<Brand>;
1573
+ };
1574
+ } : Dir extends "in" ? {
1575
+ _zod: {
1576
+ input: input<T> & $brand<Brand>;
1577
+ };
1578
+ } : {
1579
+ _zod: {
1580
+ output: output<T> & $brand<Brand>;
1581
+ };
1582
+ });
1583
+ type input<T> = T extends {
1584
+ _zod: {
1585
+ input: any;
1586
+ };
1587
+ } ? T["_zod"]["input"] : unknown;
1588
+ type output<T> = T extends {
1589
+ _zod: {
1590
+ output: any;
1591
+ };
1592
+ } ? T["_zod"]["output"] : unknown;
1593
+ //#endregion
1594
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.d.cts
1595
+ type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
1596
+ error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
1597
+ message?: string | undefined;
1598
+ })>>>;
1599
+ type TypeParams<T extends $ZodType = $ZodType & {
1600
+ _isst: never;
1601
+ }, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
1602
+ type CheckParams<T extends $ZodCheck = $ZodCheck, // & { _issc: never },
1603
+ AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
1604
+ type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
1605
+ type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
1606
+ type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
1607
+ type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
1608
+ type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
1609
+ type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
1610
+ type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
1611
+ type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
1612
+ type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
1613
+ type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
1614
+ type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
1615
+ type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
1616
+ type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
1617
+ type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
1618
+ type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
1619
+ type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
1620
+ type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
1621
+ type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
1622
+ type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
1623
+ type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
1624
+ type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
1625
+ type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
1626
+ type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
1627
+ type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
1628
+ type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
1629
+ type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
1630
+ type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
1631
+ type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
1632
+ type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
1633
+ type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
1634
+ type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
1635
+ type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
1636
+ type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
1637
+ type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
1638
+ type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
1639
+ type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
1640
+ type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
1641
+ type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1642
+ /** The schema or check that originated this issue. */readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
1643
+ readonly continue?: boolean | undefined;
1644
+ } & Record<string, unknown>> : never;
1645
+ interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
1646
+ addIssue(arg: string | $ZodSuperRefineIssue): void;
1647
+ }
1648
+ //#endregion
1649
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.d.cts
1650
+ /** An Error-like class used to store Zod validation issues. */
1651
+ interface ZodError<T = unknown> extends $ZodError<T> {
1652
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
1653
+ format(): $ZodFormattedError<T>;
1654
+ format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
1655
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
1656
+ flatten(): $ZodFlattenedError<T>;
1657
+ flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T, U>;
1658
+ /** @deprecated Push directly to `.issues` instead. */
1659
+ addIssue(issue: $ZodIssue): void;
1660
+ /** @deprecated Push directly to `.issues` instead. */
1661
+ addIssues(issues: $ZodIssue[]): void;
1662
+ /** @deprecated Check `err.issues.length === 0` instead. */
1663
+ isEmpty: boolean;
1664
+ }
1665
+ declare const ZodError: $constructor<ZodError>;
1666
+ //#endregion
1667
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.d.cts
1668
+ type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
1669
+ type ZodSafeParseSuccess<T> = {
1670
+ success: true;
1671
+ data: T;
1672
+ error?: never;
1673
+ };
1674
+ type ZodSafeParseError<T> = {
1675
+ success: false;
1676
+ data?: never;
1677
+ error: ZodError<T>;
1678
+ };
1679
+ //#endregion
1680
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.d.cts
1681
+ type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
1682
+ interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
1683
+ def: Internals["def"];
1684
+ type: Internals["def"]["type"];
1685
+ /** @deprecated Use `.def` instead. */
1686
+ _def: Internals["def"];
1687
+ /** @deprecated Use `z.output<typeof schema>` instead. */
1688
+ _output: Internals["output"];
1689
+ /** @deprecated Use `z.input<typeof schema>` instead. */
1690
+ _input: Internals["input"];
1691
+ "~standard": ZodStandardSchemaWithJSON<this>;
1692
+ /** Converts this schema to a JSON Schema representation. */
1693
+ toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
1694
+ check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
1695
+ with(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
1696
+ clone(def?: Internals["def"], params?: {
1697
+ parent: boolean;
1698
+ }): this;
1699
+ register<R extends $ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], this>?] : [$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
1700
+ brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
1701
+ parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
1702
+ safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1703
+ parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1704
+ safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1705
+ spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
1706
+ encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
1707
+ decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
1708
+ encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
1709
+ decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1710
+ safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
1711
+ safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1712
+ safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
1713
+ safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1714
+ refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R, input<this>> : this;
1715
+ superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>): this;
1716
+ overwrite(fn: (x: output<this>) => output<this>): this;
1717
+ optional(): ZodOptional<this>;
1718
+ exactOptional(): ZodExactOptional<this>;
1719
+ nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
1720
+ nullable(): ZodNullable<this>;
1721
+ nullish(): ZodOptional<ZodNullable<this>>;
1722
+ default(def: NoUndefined<output<this>>): ZodDefault<this>;
1723
+ default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
1724
+ prefault(def: () => input<this>): ZodPrefault<this>;
1725
+ prefault(def: input<this>): ZodPrefault<this>;
1726
+ array(): ZodArray<this>;
1727
+ or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
1728
+ and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
1729
+ transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
1730
+ catch(def: output<this>): ZodCatch<this>;
1731
+ catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
1732
+ pipe<T extends $ZodType<any, output<this>>>(target: T | $ZodType<any, output<this>>): ZodPipe<this, T>;
1733
+ readonly(): ZodReadonly<this>;
1734
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
1735
+ describe(description: string): this;
1736
+ description?: string;
1737
+ /** Returns the metadata associated with this instance in `z.globalRegistry` */
1738
+ meta(): $replace<GlobalMeta, this> | undefined;
1739
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
1740
+ meta(data: $replace<GlobalMeta, this>): this;
1741
+ /** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
1742
+ *
1743
+ * ```ts
1744
+ * const schema = z.string().optional();
1745
+ * const isOptional = schema.safeParse(undefined).success; // true
1746
+ * ```
1747
+ */
1748
+ isOptional(): boolean;
1749
+ /**
1750
+ * @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
1751
+ *
1752
+ * ```ts
1753
+ * const schema = z.string().nullable();
1754
+ * const isNullable = schema.safeParse(null).success; // true
1755
+ * ```
1756
+ */
1757
+ isNullable(): boolean;
1758
+ apply<T>(fn: (schema: this) => T): T;
1759
+ }
1760
+ interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
1761
+ declare const ZodType: $constructor<ZodType>;
1762
+ interface _ZodString<T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T> {
1763
+ format: string | null;
1764
+ minLength: number | null;
1765
+ maxLength: number | null;
1766
+ regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
1767
+ includes(value: string, params?: string | $ZodCheckIncludesParams): this;
1768
+ startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
1769
+ endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
1770
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
1771
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
1772
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
1773
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
1774
+ lowercase(params?: string | $ZodCheckLowerCaseParams): this;
1775
+ uppercase(params?: string | $ZodCheckUpperCaseParams): this;
1776
+ trim(): this;
1777
+ normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
1778
+ toLowerCase(): this;
1779
+ toUpperCase(): this;
1780
+ slugify(): this;
1781
+ }
1782
+ /** @internal */
1783
+ declare const _ZodString: $constructor<_ZodString>;
1784
+ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
1785
+ /** @deprecated Use `z.email()` instead. */
1786
+ email(params?: string | $ZodCheckEmailParams): this;
1787
+ /** @deprecated Use `z.url()` instead. */
1788
+ url(params?: string | $ZodCheckURLParams): this;
1789
+ /** @deprecated Use `z.jwt()` instead. */
1790
+ jwt(params?: string | $ZodCheckJWTParams): this;
1791
+ /** @deprecated Use `z.emoji()` instead. */
1792
+ emoji(params?: string | $ZodCheckEmojiParams): this;
1793
+ /** @deprecated Use `z.guid()` instead. */
1794
+ guid(params?: string | $ZodCheckGUIDParams): this;
1795
+ /** @deprecated Use `z.uuid()` instead. */
1796
+ uuid(params?: string | $ZodCheckUUIDParams): this;
1797
+ /** @deprecated Use `z.uuid()` instead. */
1798
+ uuidv4(params?: string | $ZodCheckUUIDParams): this;
1799
+ /** @deprecated Use `z.uuid()` instead. */
1800
+ uuidv6(params?: string | $ZodCheckUUIDParams): this;
1801
+ /** @deprecated Use `z.uuid()` instead. */
1802
+ uuidv7(params?: string | $ZodCheckUUIDParams): this;
1803
+ /** @deprecated Use `z.nanoid()` instead. */
1804
+ nanoid(params?: string | $ZodCheckNanoIDParams): this;
1805
+ /** @deprecated Use `z.guid()` instead. */
1806
+ guid(params?: string | $ZodCheckGUIDParams): this;
1807
+ /** @deprecated Use `z.cuid()` instead. */
1808
+ cuid(params?: string | $ZodCheckCUIDParams): this;
1809
+ /** @deprecated Use `z.cuid2()` instead. */
1810
+ cuid2(params?: string | $ZodCheckCUID2Params): this;
1811
+ /** @deprecated Use `z.ulid()` instead. */
1812
+ ulid(params?: string | $ZodCheckULIDParams): this;
1813
+ /** @deprecated Use `z.base64()` instead. */
1814
+ base64(params?: string | $ZodCheckBase64Params): this;
1815
+ /** @deprecated Use `z.base64url()` instead. */
1816
+ base64url(params?: string | $ZodCheckBase64URLParams): this;
1817
+ /** @deprecated Use `z.xid()` instead. */
1818
+ xid(params?: string | $ZodCheckXIDParams): this;
1819
+ /** @deprecated Use `z.ksuid()` instead. */
1820
+ ksuid(params?: string | $ZodCheckKSUIDParams): this;
1821
+ /** @deprecated Use `z.ipv4()` instead. */
1822
+ ipv4(params?: string | $ZodCheckIPv4Params): this;
1823
+ /** @deprecated Use `z.ipv6()` instead. */
1824
+ ipv6(params?: string | $ZodCheckIPv6Params): this;
1825
+ /** @deprecated Use `z.cidrv4()` instead. */
1826
+ cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
1827
+ /** @deprecated Use `z.cidrv6()` instead. */
1828
+ cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
1829
+ /** @deprecated Use `z.e164()` instead. */
1830
+ e164(params?: string | $ZodCheckE164Params): this;
1831
+ /** @deprecated Use `z.iso.datetime()` instead. */
1832
+ datetime(params?: string | $ZodCheckISODateTimeParams): this;
1833
+ /** @deprecated Use `z.iso.date()` instead. */
1834
+ date(params?: string | $ZodCheckISODateParams): this;
1835
+ /** @deprecated Use `z.iso.time()` instead. */
1836
+ time(params?: string | $ZodCheckISOTimeParams): this;
1837
+ /** @deprecated Use `z.iso.duration()` instead. */
1838
+ duration(params?: string | $ZodCheckISODurationParams): this;
1839
+ }
1840
+ declare const ZodString: $constructor<ZodString>;
1841
+ interface ZodAny extends _ZodType<$ZodAnyInternals> {}
1842
+ declare const ZodAny: $constructor<ZodAny>;
1843
+ interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
1844
+ element: T;
1845
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
1846
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
1847
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
1848
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
1849
+ unwrap(): T;
1850
+ "~standard": ZodStandardSchemaWithJSON<this>;
1851
+ }
1852
+ declare const ZodArray: $constructor<ZodArray>;
1853
+ interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
1854
+ "~standard": ZodStandardSchemaWithJSON<this>;
1855
+ options: T;
1856
+ }
1857
+ declare const ZodUnion: $constructor<ZodUnion>;
1858
+ interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
1859
+ "~standard": ZodStandardSchemaWithJSON<this>;
1860
+ }
1861
+ declare const ZodIntersection: $constructor<ZodIntersection>;
1862
+ interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
1863
+ "~standard": ZodStandardSchemaWithJSON<this>;
1864
+ }
1865
+ declare const ZodTransform: $constructor<ZodTransform>;
1866
+ interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
1867
+ "~standard": ZodStandardSchemaWithJSON<this>;
1868
+ unwrap(): T;
1869
+ }
1870
+ declare const ZodOptional: $constructor<ZodOptional>;
1871
+ interface ZodExactOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodExactOptionalInternals<T>>, $ZodExactOptional<T> {
1872
+ "~standard": ZodStandardSchemaWithJSON<this>;
1873
+ unwrap(): T;
1874
+ }
1875
+ declare const ZodExactOptional: $constructor<ZodExactOptional>;
1876
+ interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
1877
+ "~standard": ZodStandardSchemaWithJSON<this>;
1878
+ unwrap(): T;
1879
+ }
1880
+ declare const ZodNullable: $constructor<ZodNullable>;
1881
+ interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
1882
+ "~standard": ZodStandardSchemaWithJSON<this>;
1883
+ unwrap(): T;
1884
+ /** @deprecated Use `.unwrap()` instead. */
1885
+ removeDefault(): T;
1886
+ }
1887
+ declare const ZodDefault: $constructor<ZodDefault>;
1888
+ interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
1889
+ "~standard": ZodStandardSchemaWithJSON<this>;
1890
+ unwrap(): T;
1891
+ }
1892
+ declare const ZodPrefault: $constructor<ZodPrefault>;
1893
+ interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
1894
+ "~standard": ZodStandardSchemaWithJSON<this>;
1895
+ unwrap(): T;
1896
+ }
1897
+ declare const ZodNonOptional: $constructor<ZodNonOptional>;
1898
+ interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
1899
+ "~standard": ZodStandardSchemaWithJSON<this>;
1900
+ unwrap(): T;
1901
+ /** @deprecated Use `.unwrap()` instead. */
1902
+ removeCatch(): T;
1903
+ }
1904
+ declare const ZodCatch: $constructor<ZodCatch>;
1905
+ interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
1906
+ "~standard": ZodStandardSchemaWithJSON<this>;
1907
+ in: A;
1908
+ out: B;
1909
+ }
1910
+ declare const ZodPipe: $constructor<ZodPipe>;
1911
+ interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
1912
+ "~standard": ZodStandardSchemaWithJSON<this>;
1913
+ unwrap(): T;
1914
+ }
1915
+ declare const ZodReadonly: $constructor<ZodReadonly>;
1916
+ //#endregion
1917
+ //#region src/Filter/filters/checkboxes/schema.d.ts
1918
+ /** configuration of the filter */
1919
+ declare const config$1: _$_fuf_stack_veto0.VObjectSchema<{
1920
+ /**
1921
+ * Human‑readable label used in the UI (e.g. label and modal header).
1922
+ * Example: "Snacks", "Mood"
1923
+ */
1924
+ text: ZodString;
1925
+ /**
1926
+ * Options rendered as multiple checkboxes. Each option needs a `label`
1927
+ * (what the user sees) and a `value` (what is written into the form state).
1928
+ * Label can be a string, React node, or a function that receives mode
1929
+ * ('form' or 'display') and returns a React node.
1930
+ */
1931
+ options: ZodArray<_$_fuf_stack_veto0.VObjectSchema<{
1932
+ label: ZodAny;
1933
+ value: ZodString;
1934
+ }>>;
1935
+ }>;
1936
+ /** Type-safe Config that overrides label to support ReactNode or function */
1937
+ type Config = Omit<vInfer<typeof config$1>, 'options'> & {
1938
+ options: {
1939
+ label: ReactNode | ((mode: 'form' | 'display') => ReactNode);
1940
+ value: string;
1941
+ }[];
1942
+ };
1943
+ //#endregion
1944
+ //#region ../../node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/types.d.ts
1945
+ /**
1946
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
1947
+ *
1948
+ * Specifically:
1949
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
1950
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
1951
+ *
1952
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
1953
+ */
1954
+ type ClassNameValue = ClassNameArray | string | null | undefined | 0 | 0n | false;
1955
+ type ClassNameArray = ClassNameValue[];
1956
+ //#endregion
1957
+ //#region ../../node_modules/.pnpm/tailwind-variants@2.0.1_tailwind-merge@3.3.1_tailwindcss@4.2.2/node_modules/tailwind-variants/dist/index.d.ts
1958
+ type ClassProp<V extends unknown = ClassNameValue> = {
1959
+ class?: V;
1960
+ className?: never;
1961
+ } | {
1962
+ class?: never;
1963
+ className?: V;
1964
+ };
1965
+ type TVBaseName = "base";
1966
+ type TVSlots = Record<string, ClassNameValue> | undefined;
1967
+ /**
1968
+ * ----------------------------------------------------------------------
1969
+ * Utils
1970
+ * ----------------------------------------------------------------------
1971
+ */
1972
+ type StringToBoolean<T> = T extends "true" | "false" ? boolean : T;
1973
+ /**
1974
+ * ----------------------------------------------------------------------
1975
+ * TV Types
1976
+ * ----------------------------------------------------------------------
1977
+ */
1978
+ type TVSlotsWithBase<S extends TVSlots, B extends ClassNameValue> = B extends undefined ? keyof S : keyof S | TVBaseName;
1979
+ type SlotsClassValue<S extends TVSlots, B extends ClassNameValue> = { [K in TVSlotsWithBase<S, B>]?: ClassNameValue };
1980
+ type TVVariantsDefault<S extends TVSlots, B extends ClassNameValue> = S extends undefined ? {} : {
1981
+ [key: string]: {
1982
+ [key: string]: S extends TVSlots ? SlotsClassValue<S, B> | ClassNameValue : ClassNameValue;
1983
+ };
1984
+ };
1985
+ type TVVariants<S extends TVSlots | undefined, B extends ClassNameValue | undefined = undefined, EV extends TVVariants<ES> | undefined = undefined, ES extends TVSlots | undefined = undefined> = EV extends undefined ? TVVariantsDefault<S, B> : { [K in keyof EV]: { [K2 in keyof EV[K]]: S extends TVSlots ? SlotsClassValue<S, B> | ClassNameValue : ClassNameValue } } | TVVariantsDefault<S, B>;
1986
+ type TVCompoundVariants<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue, EV extends TVVariants<ES>, ES extends TVSlots> = Array<{ [K in keyof V | keyof EV]?: (K extends keyof V ? StringToBoolean<keyof V[K]> : never) | (K extends keyof EV ? StringToBoolean<keyof EV[K]> : never) | (K extends keyof V ? StringToBoolean<keyof V[K]>[] : never) } & ClassProp<SlotsClassValue<S, B> | ClassNameValue>>;
1987
+ type TVCompoundSlots<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue> = Array<V extends undefined ? {
1988
+ slots: Array<TVSlotsWithBase<S, B>>;
1989
+ } & ClassProp : {
1990
+ slots: Array<TVSlotsWithBase<S, B>>;
1991
+ } & { [K in keyof V]?: StringToBoolean<keyof V[K]> | StringToBoolean<keyof V[K]>[] } & ClassProp>;
1992
+ type TVDefaultVariants<V extends TVVariants<S>, S extends TVSlots, EV extends TVVariants<ES>, ES extends TVSlots> = { [K in keyof V | keyof EV]?: (K extends keyof V ? StringToBoolean<keyof V[K]> : never) | (K extends keyof EV ? StringToBoolean<keyof EV[K]> : never) };
1993
+ type TVProps<V extends TVVariants<S>, S extends TVSlots, EV extends TVVariants<ES>, ES extends TVSlots> = EV extends undefined ? V extends undefined ? ClassProp<ClassNameValue> : { [K in keyof V]?: StringToBoolean<keyof V[K]> | undefined } & ClassProp<ClassNameValue> : V extends undefined ? { [K in keyof EV]?: StringToBoolean<keyof EV[K]> | undefined } & ClassProp<ClassNameValue> : { [K in keyof V | keyof EV]?: (K extends keyof V ? StringToBoolean<keyof V[K]> : never) | (K extends keyof EV ? StringToBoolean<keyof EV[K]> : never) | undefined } & ClassProp<ClassNameValue>;
1994
+ type TVVariantKeys<V extends TVVariants<S>, S extends TVSlots> = V extends Object ? Array<keyof V> : undefined;
1995
+ type TVReturnProps<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue, EV extends TVVariants<ES>, ES extends TVSlots, // @ts-expect-error
1996
+ E extends TVReturnType = undefined> = {
1997
+ extend: E;
1998
+ base: B;
1999
+ slots: S;
2000
+ variants: V;
2001
+ defaultVariants: TVDefaultVariants<V, S, EV, ES>;
2002
+ compoundVariants: TVCompoundVariants<V, S, B, EV, ES>;
2003
+ compoundSlots: TVCompoundSlots<V, S, B>;
2004
+ variantKeys: TVVariantKeys<V, S>;
2005
+ };
2006
+ type HasSlots<S extends TVSlots, ES extends TVSlots> = S extends undefined ? ES extends undefined ? false : true : true;
2007
+ type TVReturnType<V extends TVVariants<S>, S extends TVSlots, B extends ClassNameValue, EV extends TVVariants<ES>, ES extends TVSlots, // @ts-expect-error
2008
+ E extends TVReturnType = undefined> = {
2009
+ (props?: TVProps<V, S, EV, ES>): HasSlots<S, ES> extends true ? { [K in keyof (ES extends undefined ? {} : ES)]: (slotProps?: TVProps<V, S, EV, ES>) => string } & { [K in keyof (S extends undefined ? {} : S)]: (slotProps?: TVProps<V, S, EV, ES>) => string } & { [K in TVSlotsWithBase<{}, B>]: (slotProps?: TVProps<V, S, EV, ES>) => string } : string;
2010
+ } & TVReturnProps<V, S, B, EV, ES, E>;
2011
+ //#endregion
2012
+ //#region src/Filter/filters/types.d.ts
2013
+ /**
2014
+ * FilterDefinition
2015
+ *
2016
+ * Declarative description of a filter. A FilterDefinition is not used
2017
+ * directly by the UI. Instead, it is passed to `createFilter` to produce a
2018
+ * concrete, runtime `FilterInstance` for a specific usage (with name/icon and
2019
+ * optional config overrides).
2020
+ *
2021
+ * @typeParam Config - The configuration object shape for this filter
2022
+ * @typeParam Value - The runtime value type produced/consumed by this filter
2023
+ */
2024
+ interface FilterDefinition<Config, Value> {
2025
+ components: {
2026
+ /**
2027
+ * Display component rendered inside the filter chip. Receives the current
2028
+ * filter `value` and the merged `config`.
2029
+ */
2030
+ Display: (props: {
2031
+ value: Value;
2032
+ config: Config;
2033
+ }) => ReactNode;
2034
+ /**
2035
+ * Form component rendered inside the modal. Receives the fully-qualified
2036
+ * field name and the merged, validated `config`.
2037
+ */
2038
+ Form: (props: {
2039
+ fieldName: string;
2040
+ config: Config;
2041
+ }) => ReactNode;
2042
+ };
2043
+ defaults: {
2044
+ /** Baseline configuration for the filter; can be overridden per usage */config: Config; /** Initial form value seeded when a filter is added */
2045
+ value: Value;
2046
+ };
2047
+ /**
2048
+ * Validation factory returning an ex-validator schema for the value shape.
2049
+ * Receives the (merged) `config` so the schema can depend on configuration.
2050
+ */
2051
+ validation: (config?: Config) => unknown;
2052
+ }
2053
+ /**
2054
+ * FilterFactory
2055
+ *
2056
+ * A filter exports a factory that, given name/icon and optional config
2057
+ * overrides, returns a concrete FilterInstance with merged config and a
2058
+ * computed defaultValue.
2059
+ *
2060
+ * @typeParam Config - Configuration object shape for the filter
2061
+ * @typeParam Value - Runtime value type for the filter
2062
+ */
2063
+ type FilterFactory<Config, Value> = (args: {
2064
+ /** Per-usage configuration overrides merged with `defaults.config` */config?: Partial<Config>; /** Optional icon element shown in menus/labels */
2065
+ icon?: ReactNode; /** Logical field name under `filter.{name}` */
2066
+ name: string;
2067
+ }) => FilterInstance<Config, Value>;
2068
+ /**
2069
+ * FilterInstance
2070
+ *
2071
+ * Runtime instance created by merging a filter's defaults with usage
2072
+ * overrides and attaching name/icon for UI.
2073
+ *
2074
+ * This is the only shape used by the rendering layer and context.
2075
+ *
2076
+ * @typeParam Config - Effective configuration object shape
2077
+ * @typeParam Value - Effective value type for the filter
2078
+ */
2079
+ interface FilterInstance<Config, Value> {
2080
+ /** UI components (Form/Display) provided by the filter */
2081
+ components: FilterDefinition<Config, Value>['components'];
2082
+ /** Merged configuration (`defaults.config` overlaid with per-usage overrides) */
2083
+ config: Config;
2084
+ /** Initial form value to seed when adding this filter */
2085
+ defaultValue: Value;
2086
+ /** Optional icon element used in menus/labels */
2087
+ icon?: ReactNode;
2088
+ /** Logical field name under `filter.{name}` */
2089
+ name: string;
2090
+ /** ex-validator schema factory for the value; typically closure over config */
2091
+ validation: (config?: Config) => unknown;
2092
+ }
2093
+ /**
2094
+ * FiltersConfiguration
2095
+ *
2096
+ * Top-level collection of instantiated filters used by the Filter component
2097
+ * and FiltersContext. Each entry is a concrete FilterInstance (already created
2098
+ * via a filter factory), carrying its merged config, default value, UI
2099
+ * components, and validate function.
2100
+ */
2101
+ type FiltersConfiguration = FilterInstance<any, any>[];
2102
+ /**
2103
+ * FilterDisplayProps
2104
+ *
2105
+ * Props provided to a filter's Display component. Derived from an active
2106
+ * FilterInstance at runtime.
2107
+ *
2108
+ * @typeParam Config - Effective configuration type for the instance
2109
+ * @typeParam Value - Effective value type for the instance
2110
+ */
2111
+ interface FilterDisplayProps<Config, Value> {
2112
+ /** Merged configuration for the filter instance */
2113
+ config: Config;
2114
+ /** Current (possibly partial) value for the filter instance */
2115
+ value: Value;
2116
+ }
2117
+ /**
2118
+ * FilterFormProps
2119
+ *
2120
+ * Props provided to a filter's Form component. The `fieldName` is the
2121
+ * fully-qualified path in the host form, and the `config` is the instance's
2122
+ * merged configuration.
2123
+ *
2124
+ * @typeParam Config - Effective configuration type for the instance
2125
+ */
2126
+ interface FilterFormProps<Config> {
2127
+ /** Merged configuration for the filter instance */
2128
+ config: Config;
2129
+ /** Fully-qualified form field path (e.g., `filter.status`) */
2130
+ fieldName: string;
2131
+ }
2132
+ //#endregion
2133
+ //#region src/Filter/Subcomponents/SearchInput.d.ts
2134
+ type SearchConfiguration = boolean | {
2135
+ /** Placeholder shown in the search input */placeholder?: string;
2136
+ };
2137
+ //#endregion
2138
+ //#region src/Filter/Filter.d.ts
2139
+ declare const filterVariants: TVReturnType<{
2140
+ [key: string]: {
2141
+ [key: string]: ClassNameValue | {
2142
+ base?: ClassNameValue;
2143
+ addFilterMenuButton?: ClassNameValue;
2144
+ addFilterMenuItem?: ClassNameValue;
2145
+ activeFilterLabel?: ClassNameValue;
2146
+ filterModalBody?: ClassNameValue;
2147
+ filterModalHeader?: ClassNameValue;
2148
+ filterModalFooter?: ClassNameValue;
2149
+ form?: ClassNameValue;
2150
+ searchInput?: ClassNameValue;
2151
+ searchInputWrapper?: ClassNameValue;
2152
+ searchMotionDiv?: ClassNameValue;
2153
+ searchShowButton?: ClassNameValue;
2154
+ searchSubmitButton?: ClassNameValue;
2155
+ searchWrapper?: ClassNameValue;
2156
+ };
2157
+ };
2158
+ } | {
2159
+ [x: string]: {
2160
+ [x: string]: ClassNameValue | {
2161
+ base?: ClassNameValue;
2162
+ addFilterMenuButton?: ClassNameValue;
2163
+ addFilterMenuItem?: ClassNameValue;
2164
+ activeFilterLabel?: ClassNameValue;
2165
+ filterModalBody?: ClassNameValue;
2166
+ filterModalHeader?: ClassNameValue;
2167
+ filterModalFooter?: ClassNameValue;
2168
+ form?: ClassNameValue;
2169
+ searchInput?: ClassNameValue;
2170
+ searchInputWrapper?: ClassNameValue;
2171
+ searchMotionDiv?: ClassNameValue;
2172
+ searchShowButton?: ClassNameValue;
2173
+ searchSubmitButton?: ClassNameValue;
2174
+ searchWrapper?: ClassNameValue;
2175
+ };
2176
+ };
2177
+ } | {}, {
2178
+ base: string;
2179
+ addFilterMenuButton: string;
2180
+ addFilterMenuItem: string;
2181
+ activeFilterLabel: string;
2182
+ filterModalBody: string;
2183
+ filterModalHeader: string;
2184
+ filterModalFooter: string;
2185
+ form: string;
2186
+ searchInput: string;
2187
+ searchInputWrapper: string;
2188
+ searchMotionDiv: string;
2189
+ searchShowButton: string;
2190
+ searchSubmitButton: string;
2191
+ searchWrapper: string;
2192
+ }, undefined, {
2193
+ [key: string]: {
2194
+ [key: string]: ClassNameValue | {
2195
+ base?: ClassNameValue;
2196
+ addFilterMenuButton?: ClassNameValue;
2197
+ addFilterMenuItem?: ClassNameValue;
2198
+ activeFilterLabel?: ClassNameValue;
2199
+ filterModalBody?: ClassNameValue;
2200
+ filterModalHeader?: ClassNameValue;
2201
+ filterModalFooter?: ClassNameValue;
2202
+ form?: ClassNameValue;
2203
+ searchInput?: ClassNameValue;
2204
+ searchInputWrapper?: ClassNameValue;
2205
+ searchMotionDiv?: ClassNameValue;
2206
+ searchShowButton?: ClassNameValue;
2207
+ searchSubmitButton?: ClassNameValue;
2208
+ searchWrapper?: ClassNameValue;
2209
+ };
2210
+ };
2211
+ } | {}, {
2212
+ base: string;
2213
+ addFilterMenuButton: string;
2214
+ addFilterMenuItem: string;
2215
+ activeFilterLabel: string;
2216
+ filterModalBody: string;
2217
+ filterModalHeader: string;
2218
+ filterModalFooter: string;
2219
+ form: string;
2220
+ searchInput: string;
2221
+ searchInputWrapper: string;
2222
+ searchMotionDiv: string;
2223
+ searchShowButton: string;
2224
+ searchSubmitButton: string;
2225
+ searchWrapper: string;
2226
+ }, TVReturnType<unknown, {
2227
+ base: string;
2228
+ addFilterMenuButton: string;
2229
+ addFilterMenuItem: string;
2230
+ activeFilterLabel: string;
2231
+ filterModalBody: string;
2232
+ filterModalHeader: string;
2233
+ filterModalFooter: string;
2234
+ form: string;
2235
+ searchInput: string;
2236
+ searchInputWrapper: string;
2237
+ searchMotionDiv: string;
2238
+ searchShowButton: string;
2239
+ searchSubmitButton: string;
2240
+ searchWrapper: string;
2241
+ }, undefined, unknown, unknown, undefined>>;
2242
+ type ClassName = TVClassName<typeof filterVariants>;
2243
+ interface FilterValues {
2244
+ search?: string;
2245
+ filter?: string | Record<string, unknown> | null;
2246
+ }
2247
+ type FilterChildRenderFn = (values: {
2248
+ search?: string;
2249
+ filter?: Record<string, unknown>;
2250
+ }) => ReactNode;
2251
+ /**
2252
+ * Filter
2253
+ *
2254
+ * Controlled, form-driven filter UI.
2255
+ *
2256
+ * Responsibilities
2257
+ * - Derives initial form values from the controlled `values` prop
2258
+ * - Builds a composite validation schema from the filter registry (and optional search)
2259
+ * - Exposes ergonomic UI: active filters list, add/remove actions, and per-filter modal
2260
+ * - Commits changes by invoking the controlled `onChange` callback on submit
2261
+ *
2262
+ * Structure
2263
+ * - Owns an ex-forms `Form` that wraps the entire filter experience
2264
+ * - Optionally renders a search input bound to the `search` field
2265
+ * - Renders ActiveFilters, AddFilterMenu, and FilterModal inside a shared context
2266
+ * - Optionally renders children as a render-prop with the resolved `values`
2267
+ */
2268
+ interface FilterProps {
2269
+ /** Optional render-prop that receives the resolved, controlled values */
2270
+ children?: FilterChildRenderFn;
2271
+ /** CSS class name */
2272
+ className?: ClassName;
2273
+ /** Configuration of the filter */
2274
+ config: {
2275
+ /**
2276
+ * Declarative filter configuration. Each entry ties a logical name to a
2277
+ * registry filter type and (optionally) per-usage config overrides.
2278
+ */
2279
+ filters: FiltersConfiguration; /** Optional configuration for search field */
2280
+ search?: SearchConfiguration;
2281
+ };
2282
+ /** ex-forms form instance name. Defaults to "filterComponentForm". */
2283
+ formName?: string;
2284
+ /** Controlled setter invoked on submit with the next canonical values */
2285
+ onChange: (nextValues: FilterValues) => void;
2286
+ /** Controlled committed state: the canonical `search` and `filter` values */
2287
+ values: FilterValues;
2288
+ }
2289
+ /**
2290
+ * Renders the filter UI bound to a single ex-forms `Form`.
2291
+ * The form is the source of truth during user interaction; the committed
2292
+ * state is controlled by the parent via `values`/`onChange`.
2293
+ */
2294
+ declare const Filter: ({
2295
+ children,
2296
+ className,
2297
+ config,
2298
+ formName,
2299
+ onChange,
2300
+ values
2301
+ }: FilterProps) => _$react_jsx_runtime0.JSX.Element;
2302
+ //#endregion
2303
+ //#region src/Filter/filters/createFilter.d.ts
2304
+ /**
2305
+ * createFilter
2306
+ *
2307
+ * Builds a filter factory from a static FilterDefinition. The returned factory
2308
+ * accepts a usage descriptor (name/icon and optional partial config) and
2309
+ * produces a concrete FilterInstance with:
2310
+ * - merged config (shallow: definition.defaults.config overlaid by overrides)
2311
+ * - Form/Display components
2312
+ * - validate function (forwarded from the definition)
2313
+ * - defaultValue (forwarded from the definition)
2314
+ * - name and icon for UI integration
2315
+ *
2316
+ * @typeParam Config - Configuration object shape for the filter
2317
+ * @typeParam Value - Runtime value type for the filter
2318
+ * @param definition - Static description of the filter (components, defaults, validate)
2319
+ * @returns FilterFactory that creates FilterInstance<Config, Value>
2320
+ */
2321
+ declare const createFilter: <Config, Value>(definition: FilterDefinition<Config, Value>) => FilterFactory<Config, Value>;
2322
+ //#endregion
2323
+ //#region src/Filter/index.d.ts
2324
+ declare const filters: {
2325
+ boolean: FilterFactory<{
2326
+ text: string;
2327
+ textPrefix?: string | undefined;
2328
+ textNoWord?: string | undefined;
2329
+ }, boolean | undefined>;
2330
+ checkboxes: FilterFactory<Config, string[]>;
2331
+ };
2332
+ //#endregion
2333
+ export { FilterProps as a, FilterDefinition as c, FilterFormProps as d, FilterInstance as f, FilterChildRenderFn as i, FilterDisplayProps as l, createFilter as n, FilterValues as o, FiltersConfiguration as p, Filter as r, filterVariants as s, filters as t, FilterFactory as u };
2334
+ //# sourceMappingURL=index-CjVHoz46.d.cts.map