virrun 2.31.1 → 2.32.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.
Files changed (35) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +29 -55
  3. package/dist/cli.js +2 -14
  4. package/dist/{createVirrun-Cg9BQxg_.js → createVirrun-B3b8HpM_.js} +512 -143
  5. package/dist/createVirrun-B6jYdgVI.js +23361 -0
  6. package/dist/createVirrun-B7d3DDOh.js +23361 -0
  7. package/dist/createVirrun-BRWPPzzC.js +23370 -0
  8. package/dist/createVirrun-Bx6rca4K.js +23364 -0
  9. package/dist/{createVirrun-C8zMQHAQ.js → createVirrun-CirfmuYa.js} +507 -144
  10. package/dist/createVirrun-D6vtkrkN.js +23357 -0
  11. package/dist/{createVirrun-rH3O-itW.js → createVirrun-F5Gqe026.js} +4497 -166
  12. package/dist/createVirrun-GQ4IRIfZ.js +23361 -0
  13. package/dist/createVirrun-oOCnOtt0.js +23519 -0
  14. package/dist/index.d.ts +3207 -45
  15. package/dist/index.js +22 -2
  16. package/dist/mainCommand-B99KFsCA.js +26295 -0
  17. package/dist/mainCommand-BuOZ5_tl.js +25784 -0
  18. package/dist/mainCommand-BwiSo5oU.js +26276 -0
  19. package/dist/mainCommand-BziUFOd-.js +26786 -0
  20. package/dist/mainCommand-C6beIti-.js +26748 -0
  21. package/dist/mainCommand-CNii8Hw2.js +26790 -0
  22. package/dist/mainCommand-CshwG7mT.js +26277 -0
  23. package/dist/mainCommand-D-8tCgpQ.js +26275 -0
  24. package/dist/mainCommand-D6J0bW3I.js +26290 -0
  25. package/dist/mainCommand-Dka4ZkbD.js +26786 -0
  26. package/dist/mainCommand-KhyFmO-q.js +26508 -0
  27. package/dist/mainCommand-WMKpWxk1.js +26731 -0
  28. package/dist/mainCommand-asfHvyFh.js +26323 -0
  29. package/dist/mainCommand-ePTFrlMi.js +26315 -0
  30. package/dist/mainCommand-nqEH0Sdn.js +26785 -0
  31. package/dist/mainCommand-pfsJR4Jj.js +26787 -0
  32. package/dist/mainCommand-sh3BgZHx.js +26522 -0
  33. package/dist/mainCommand-w8tHehgL.js +26785 -0
  34. package/package.json +13 -7
  35. package/schema.json +24 -0
package/dist/index.d.ts CHANGED
@@ -1,9 +1,2718 @@
1
+ /// <reference path="./locale/index.d.ts" />
2
+ import { ChildProcess } from "node:child_process";
3
+
4
+ //#region ../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/index.d.ts
5
+ declare function dayjs$1(date?: dayjs$1.ConfigType): dayjs$1.Dayjs;
6
+ declare function dayjs$1(date?: dayjs$1.ConfigType, format?: dayjs$1.OptionType, strict?: boolean): dayjs$1.Dayjs;
7
+ declare function dayjs$1(date?: dayjs$1.ConfigType, format?: dayjs$1.OptionType, locale?: string, strict?: boolean): dayjs$1.Dayjs;
8
+ declare namespace dayjs$1 {
9
+ interface ConfigTypeMap {
10
+ default: string | number | Date | Dayjs | null | undefined;
11
+ }
12
+ export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap];
13
+ export interface FormatObject {
14
+ locale?: string;
15
+ format?: string;
16
+ utc?: boolean;
17
+ }
18
+ export type OptionType = FormatObject | string | string[];
19
+ export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms';
20
+ export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date';
21
+ export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates';
22
+ export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;
23
+ export type OpUnitType = UnitType | "week" | "weeks" | 'w';
24
+ export type QUnitType = UnitType | "quarter" | "quarters" | 'Q';
25
+ export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;
26
+ class Dayjs {
27
+ constructor(config?: ConfigType);
28
+ /**
29
+ * All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
30
+ * ```
31
+ * dayjs().clone()// => Dayjs
32
+ * dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
33
+ * ```
34
+ * Docs: https://day.js.org/docs/en/parse/dayjs-clone
35
+ */
36
+ clone(): Dayjs;
37
+ /**
38
+ * This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
39
+ * ```
40
+ * dayjs().isValid()// => boolean
41
+ * ```
42
+ * Docs: https://day.js.org/docs/en/parse/is-valid
43
+ */
44
+ isValid(): boolean;
45
+ /**
46
+ * Get the year.
47
+ * ```
48
+ * dayjs().year()// => 2020
49
+ * ```
50
+ * Docs: https://day.js.org/docs/en/get-set/year
51
+ */
52
+ year(): number;
53
+ /**
54
+ * Set the year.
55
+ * ```
56
+ * dayjs().year(2000)// => Dayjs
57
+ * ```
58
+ * Docs: https://day.js.org/docs/en/get-set/year
59
+ */
60
+ year(value: number): Dayjs;
61
+ /**
62
+ * Get the month.
63
+ *
64
+ * Months are zero indexed, so January is month 0.
65
+ * ```
66
+ * dayjs().month()// => 0-11
67
+ * ```
68
+ * Docs: https://day.js.org/docs/en/get-set/month
69
+ */
70
+ month(): number;
71
+ /**
72
+ * Set the month.
73
+ *
74
+ * Months are zero indexed, so January is month 0.
75
+ *
76
+ * Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.
77
+ * ```
78
+ * dayjs().month(0)// => Dayjs
79
+ * ```
80
+ * Docs: https://day.js.org/docs/en/get-set/month
81
+ */
82
+ month(value: number): Dayjs;
83
+ /**
84
+ * Get the date of the month.
85
+ * ```
86
+ * dayjs().date()// => 1-31
87
+ * ```
88
+ * Docs: https://day.js.org/docs/en/get-set/date
89
+ */
90
+ date(): number;
91
+ /**
92
+ * Set the date of the month.
93
+ *
94
+ * Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.
95
+ * ```
96
+ * dayjs().date(1)// => Dayjs
97
+ * ```
98
+ * Docs: https://day.js.org/docs/en/get-set/date
99
+ */
100
+ date(value: number): Dayjs;
101
+ /**
102
+ * Get the day of the week.
103
+ *
104
+ * Returns numbers from 0 (Sunday) to 6 (Saturday).
105
+ * ```
106
+ * dayjs().day()// 0-6
107
+ * ```
108
+ * Docs: https://day.js.org/docs/en/get-set/day
109
+ */
110
+ day(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
111
+ /**
112
+ * Set the day of the week.
113
+ *
114
+ * Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.
115
+ * ```
116
+ * dayjs().day(0)// => Dayjs
117
+ * ```
118
+ * Docs: https://day.js.org/docs/en/get-set/day
119
+ */
120
+ day(value: number): Dayjs;
121
+ /**
122
+ * Get the hour.
123
+ * ```
124
+ * dayjs().hour()// => 0-23
125
+ * ```
126
+ * Docs: https://day.js.org/docs/en/get-set/hour
127
+ */
128
+ hour(): number;
129
+ /**
130
+ * Set the hour.
131
+ *
132
+ * Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.
133
+ * ```
134
+ * dayjs().hour(12)// => Dayjs
135
+ * ```
136
+ * Docs: https://day.js.org/docs/en/get-set/hour
137
+ */
138
+ hour(value: number): Dayjs;
139
+ /**
140
+ * Get the minutes.
141
+ * ```
142
+ * dayjs().minute()// => 0-59
143
+ * ```
144
+ * Docs: https://day.js.org/docs/en/get-set/minute
145
+ */
146
+ minute(): number;
147
+ /**
148
+ * Set the minutes.
149
+ *
150
+ * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.
151
+ * ```
152
+ * dayjs().minute(59)// => Dayjs
153
+ * ```
154
+ * Docs: https://day.js.org/docs/en/get-set/minute
155
+ */
156
+ minute(value: number): Dayjs;
157
+ /**
158
+ * Get the seconds.
159
+ * ```
160
+ * dayjs().second()// => 0-59
161
+ * ```
162
+ * Docs: https://day.js.org/docs/en/get-set/second
163
+ */
164
+ second(): number;
165
+ /**
166
+ * Set the seconds.
167
+ *
168
+ * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.
169
+ * ```
170
+ * dayjs().second(1)// Dayjs
171
+ * ```
172
+ */
173
+ second(value: number): Dayjs;
174
+ /**
175
+ * Get the milliseconds.
176
+ * ```
177
+ * dayjs().millisecond()// => 0-999
178
+ * ```
179
+ * Docs: https://day.js.org/docs/en/get-set/millisecond
180
+ */
181
+ millisecond(): number;
182
+ /**
183
+ * Set the milliseconds.
184
+ *
185
+ * Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.
186
+ * ```
187
+ * dayjs().millisecond(1)// => Dayjs
188
+ * ```
189
+ * Docs: https://day.js.org/docs/en/get-set/millisecond
190
+ */
191
+ millisecond(value: number): Dayjs;
192
+ /**
193
+ * Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
194
+ *
195
+ * In general:
196
+ * ```
197
+ * dayjs().set(unit, value) === dayjs()[unit](value)
198
+ * ```
199
+ * Units are case insensitive, and support plural and short forms.
200
+ * ```
201
+ * dayjs().set('date', 1)
202
+ * dayjs().set('month', 3) // April
203
+ * dayjs().set('second', 30)
204
+ * ```
205
+ * Docs: https://day.js.org/docs/en/get-set/set
206
+ */
207
+ set(unit: UnitType, value: number): Dayjs;
208
+ /**
209
+ * String getter, returns the corresponding information getting from Day.js object.
210
+ *
211
+ * In general:
212
+ * ```
213
+ * dayjs().get(unit) === dayjs()[unit]()
214
+ * ```
215
+ * Units are case insensitive, and support plural and short forms.
216
+ * ```
217
+ * dayjs().get('year')
218
+ * dayjs().get('month') // start 0
219
+ * dayjs().get('date')
220
+ * ```
221
+ * Docs: https://day.js.org/docs/en/get-set/get
222
+ */
223
+ get(unit: UnitType): number;
224
+ /**
225
+ * Returns a cloned Day.js object with a specified amount of time added.
226
+ * ```
227
+ * dayjs().add(7, 'day')// => Dayjs
228
+ * ```
229
+ * Units are case insensitive, and support plural and short forms.
230
+ *
231
+ * Docs: https://day.js.org/docs/en/manipulate/add
232
+ */
233
+ add(value: number, unit?: ManipulateType): Dayjs;
234
+ /**
235
+ * Returns a cloned Day.js object with a specified amount of time subtracted.
236
+ * ```
237
+ * dayjs().subtract(7, 'year')// => Dayjs
238
+ * ```
239
+ * Units are case insensitive, and support plural and short forms.
240
+ *
241
+ * Docs: https://day.js.org/docs/en/manipulate/subtract
242
+ */
243
+ subtract(value: number, unit?: ManipulateType): Dayjs;
244
+ /**
245
+ * Returns a cloned Day.js object and set it to the start of a unit of time.
246
+ * ```
247
+ * dayjs().startOf('year')// => Dayjs
248
+ * ```
249
+ * Units are case insensitive, and support plural and short forms.
250
+ *
251
+ * Docs: https://day.js.org/docs/en/manipulate/start-of
252
+ */
253
+ startOf(unit: OpUnitType): Dayjs;
254
+ /**
255
+ * Returns a cloned Day.js object and set it to the end of a unit of time.
256
+ * ```
257
+ * dayjs().endOf('month')// => Dayjs
258
+ * ```
259
+ * Units are case insensitive, and support plural and short forms.
260
+ *
261
+ * Docs: https://day.js.org/docs/en/manipulate/end-of
262
+ */
263
+ endOf(unit: OpUnitType): Dayjs;
264
+ /**
265
+ * Get the formatted date according to the string of tokens passed in.
266
+ *
267
+ * To escape characters, wrap them in square brackets (e.g. [MM]).
268
+ * ```
269
+ * dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
270
+ * dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
271
+ * dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
272
+ * ```
273
+ * Docs: https://day.js.org/docs/en/display/format
274
+ */
275
+ format(template?: string): string;
276
+ /**
277
+ * This indicates the difference between two date-time in the specified unit.
278
+ *
279
+ * To get the difference in milliseconds, use `dayjs#diff`
280
+ * ```
281
+ * const date1 = dayjs('2019-01-25')
282
+ * const date2 = dayjs('2018-06-05')
283
+ * date1.diff(date2) // 20214000000 default milliseconds
284
+ * date1.diff() // milliseconds to current time
285
+ * ```
286
+ *
287
+ * To get the difference in another unit of measurement, pass that measurement as the second argument.
288
+ * ```
289
+ * const date1 = dayjs('2019-01-25')
290
+ * date1.diff('2018-06-05', 'month') // 7
291
+ * ```
292
+ * Units are case insensitive, and support plural and short forms.
293
+ *
294
+ * Docs: https://day.js.org/docs/en/display/difference
295
+ */
296
+ diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number;
297
+ /**
298
+ * This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
299
+ * ```
300
+ * dayjs('2019-01-25').valueOf() // 1548381600000
301
+ * +dayjs(1548381600000) // 1548381600000
302
+ * ```
303
+ * To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
304
+ *
305
+ * Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
306
+ */
307
+ valueOf(): number;
308
+ /**
309
+ * This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
310
+ * ```
311
+ * dayjs('2019-01-25').unix() // 1548381600
312
+ * ```
313
+ * This value is floored to the nearest second, and does not include a milliseconds component.
314
+ *
315
+ * Docs: https://day.js.org/docs/en/display/unix-timestamp
316
+ */
317
+ unix(): number;
318
+ /**
319
+ * Get the number of days in the current month.
320
+ * ```
321
+ * dayjs('2019-01-25').daysInMonth() // 31
322
+ * ```
323
+ * Docs: https://day.js.org/docs/en/display/days-in-month
324
+ */
325
+ daysInMonth(): number;
326
+ /**
327
+ * To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
328
+ * ```
329
+ * dayjs('2019-01-25').toDate()// => Date
330
+ * ```
331
+ */
332
+ toDate(): Date;
333
+ /**
334
+ * To serialize as an ISO 8601 string.
335
+ * ```
336
+ * dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
337
+ * ```
338
+ * Docs: https://day.js.org/docs/en/display/as-json
339
+ */
340
+ toJSON(): string;
341
+ /**
342
+ * To format as an ISO 8601 string.
343
+ * ```
344
+ * dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
345
+ * ```
346
+ * Docs: https://day.js.org/docs/en/display/as-iso-string
347
+ */
348
+ toISOString(): string;
349
+ /**
350
+ * Returns a string representation of the date.
351
+ * ```
352
+ * dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
353
+ * ```
354
+ * Docs: https://day.js.org/docs/en/display/as-string
355
+ */
356
+ toString(): string;
357
+ /**
358
+ * Get the UTC offset in minutes.
359
+ * ```
360
+ * dayjs().utcOffset()
361
+ * ```
362
+ * Docs: https://day.js.org/docs/en/manipulate/utc-offset
363
+ */
364
+ utcOffset(): number;
365
+ /**
366
+ * This indicates whether the Day.js object is before the other supplied date-time.
367
+ * ```
368
+ * dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
369
+ * ```
370
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
371
+ * ```
372
+ * dayjs().isBefore('2011-01-01', 'year')// => boolean
373
+ * ```
374
+ * Units are case insensitive, and support plural and short forms.
375
+ *
376
+ * Docs: https://day.js.org/docs/en/query/is-before
377
+ */
378
+ isBefore(date?: ConfigType, unit?: OpUnitType): boolean;
379
+ /**
380
+ * This indicates whether the Day.js object is the same as the other supplied date-time.
381
+ * ```
382
+ * dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
383
+ * ```
384
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
385
+ * ```
386
+ * dayjs().isSame('2011-01-01', 'year')// => boolean
387
+ * ```
388
+ * Docs: https://day.js.org/docs/en/query/is-same
389
+ */
390
+ isSame(date?: ConfigType, unit?: OpUnitType): boolean;
391
+ /**
392
+ * This indicates whether the Day.js object is after the other supplied date-time.
393
+ * ```
394
+ * dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
395
+ * ```
396
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
397
+ * ```
398
+ * dayjs().isAfter('2011-01-01', 'year')// => boolean
399
+ * ```
400
+ * Units are case insensitive, and support plural and short forms.
401
+ *
402
+ * Docs: https://day.js.org/docs/en/query/is-after
403
+ */
404
+ isAfter(date?: ConfigType, unit?: OpUnitType): boolean;
405
+ locale(): string;
406
+ locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs;
407
+ }
408
+ export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs$1) => void;
409
+ export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs;
410
+ export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string;
411
+ export function isDayjs(d: any): d is Dayjs;
412
+ export function unix(t: number): Dayjs;
413
+ const Ls: {
414
+ [key: string]: ILocale;
415
+ };
416
+ }
417
+ //#endregion
418
+ //#region src/services/dayjs.d.ts
419
+ declare const dayjs: typeof dayjs$1;
420
+ //#endregion
421
+ //#region ../../node_modules/.pnpm/citty@0.2.2/node_modules/citty/dist/index.d.mts
422
+ //#region src/types.d.ts
423
+ type ArgType = "boolean" | "string" | "enum" | "positional" | undefined;
424
+ type _ArgDef<T extends ArgType, VT extends boolean | number | string> = {
425
+ type?: T;
426
+ description?: string;
427
+ valueHint?: string;
428
+ alias?: string | string[];
429
+ default?: VT;
430
+ required?: boolean;
431
+ options?: string[];
432
+ };
433
+ type BooleanArgDef = Omit<_ArgDef<"boolean", boolean>, "options"> & {
434
+ negativeDescription?: string;
435
+ };
436
+ type StringArgDef = Omit<_ArgDef<"string", string>, "options">;
437
+ type EnumArgDef = _ArgDef<"enum", string>;
438
+ type PositionalArgDef = Omit<_ArgDef<"positional", string>, "alias" | "options">;
439
+ type ArgDef = BooleanArgDef | StringArgDef | PositionalArgDef | EnumArgDef;
440
+ type ArgsDef = Record<string, ArgDef>;
441
+ type ResolveParsedArgType<T extends ArgDef, VT> = T extends {
442
+ default?: any;
443
+ required?: boolean;
444
+ } ? T["default"] extends NonNullable<VT> ? VT : T["required"] extends true ? VT : VT | undefined : VT | undefined;
445
+ type ParsedPositionalArg<T extends ArgDef> = T extends {
446
+ type: "positional";
447
+ } ? ResolveParsedArgType<T, string> : never;
448
+ type ParsedStringArg<T extends ArgDef> = T extends {
449
+ type: "string";
450
+ } ? ResolveParsedArgType<T, string> : never;
451
+ type ParsedBooleanArg<T extends ArgDef> = T extends {
452
+ type: "boolean";
453
+ } ? ResolveParsedArgType<T, boolean> : never;
454
+ type ParsedEnumArg<T extends ArgDef> = T extends {
455
+ type: "enum";
456
+ options: infer U;
457
+ } ? U extends Array<any> ? ResolveParsedArgType<T, U[number]> : never : never;
458
+ type RawArgs = {
459
+ _: string[];
460
+ };
461
+ type ParsedArg<T extends ArgDef> = T["type"] extends "positional" ? ParsedPositionalArg<T> : T["type"] extends "boolean" ? ParsedBooleanArg<T> : T["type"] extends "string" ? ParsedStringArg<T> : T["type"] extends "enum" ? ParsedEnumArg<T> : never;
462
+ type ParsedArgs<T extends ArgsDef = ArgsDef> = RawArgs & { [K in keyof T]: ParsedArg<T[K]> } & { [K in keyof T as T[K] extends {
463
+ alias: string;
464
+ } ? T[K]["alias"] : never]: ParsedArg<T[K]> } & { [K in keyof T as T[K] extends {
465
+ alias: string[];
466
+ } ? T[K]["alias"][number] : never]: ParsedArg<T[K]> } & Record<string, string | number | boolean | string[]>;
467
+ interface CommandMeta {
468
+ name?: string;
469
+ version?: string;
470
+ description?: string;
471
+ hidden?: boolean;
472
+ alias?: string | string[];
473
+ }
474
+ type SubCommandsDef = Record<string, Resolvable<CommandDef<any>>>;
475
+ type CommandDef<T extends ArgsDef = ArgsDef> = {
476
+ meta?: Resolvable<CommandMeta>;
477
+ args?: Resolvable<T>;
478
+ default?: Resolvable<string>;
479
+ subCommands?: Resolvable<SubCommandsDef>;
480
+ plugins?: Resolvable<CittyPlugin>[];
481
+ setup?: (context: CommandContext<T>) => any | Promise<any>;
482
+ cleanup?: (context: CommandContext<T>) => any | Promise<any>;
483
+ run?: (context: CommandContext<T>) => any | Promise<any>;
484
+ };
485
+ type CommandContext<T extends ArgsDef = ArgsDef> = {
486
+ rawArgs: string[];
487
+ args: ParsedArgs<T>;
488
+ cmd: CommandDef<T>;
489
+ subCommand?: CommandDef<T>;
490
+ data?: any;
491
+ };
492
+ type CittyPlugin = {
493
+ name: string;
494
+ setup?(context: CommandContext<any>): void | Promise<void>;
495
+ cleanup?(context: CommandContext<any>): void | Promise<void>;
496
+ };
497
+ type Resolvable<T> = T | Promise<T> | (() => T) | (() => Promise<T>); //#endregion
498
+ //#region src/command.d.ts
499
+ //#endregion
500
+ //#region src/models/cli/CleanArgs.d.ts
501
+ interface CleanArgs {
502
+ [key: string]: ArgDef;
503
+ all: {
504
+ default: boolean;
505
+ description: string;
506
+ type: "boolean";
507
+ };
508
+ }
509
+ //#endregion
510
+ //#region src/models/cli/DiagnosticCheckType.d.ts
511
+ declare enum DiagnosticCheckType {
512
+ Bubblewrap = "bubblewrap",
513
+ Python3 = "python3",
514
+ Sandbox = "sandbox",
515
+ WslNode = "wslNode"
516
+ }
517
+ //#endregion
518
+ //#region src/models/cli/DiagnosticStatus.d.ts
519
+ declare enum DiagnosticStatus {
520
+ Missing = "missing",
521
+ NotApplicable = "n/a",
522
+ Ok = "ok"
523
+ }
524
+ //#endregion
525
+ //#region src/models/cli/DiagnosticCheck.d.ts
526
+ interface DiagnosticCheck {
527
+ fix: string;
528
+ label: string;
529
+ note: string;
530
+ status: DiagnosticStatus;
531
+ type: DiagnosticCheckType;
532
+ }
533
+ //#endregion
534
+ //#region src/models/virrun/BackendType.d.ts
535
+ declare enum BackendType {
536
+ Auto = "auto",
537
+ Native = "native",
538
+ Os = "os",
539
+ Vfs = "vfs"
540
+ }
541
+ //#endregion
542
+ //#region src/models/cli/InitArgs.d.ts
543
+ interface InitArgs {
544
+ [key: string]: ArgDef;
545
+ backend: {
546
+ default: BackendType;
547
+ description: string;
548
+ options: BackendType[];
549
+ type: "enum";
550
+ };
551
+ force: {
552
+ default: boolean;
553
+ description: string;
554
+ type: "boolean";
555
+ };
556
+ }
557
+ //#endregion
558
+ //#region src/models/cli/RunArgs.d.ts
559
+ interface RunArgs {
560
+ [key: string]: ArgDef;
561
+ cache: {
562
+ default: boolean;
563
+ description: string;
564
+ type: "boolean";
565
+ };
566
+ ephemeral: {
567
+ default: boolean;
568
+ description: string;
569
+ type: "boolean";
570
+ };
571
+ }
572
+ //#endregion
573
+ //#region src/models/exec/BwrapCommand.d.ts
574
+ interface BwrapCommand {
575
+ readonly command: readonly [string, ...string[]];
576
+ readonly env: NodeJS.ProcessEnv;
577
+ readonly onTerminate?: () => void;
578
+ readonly statusSource: "fd" | "stderr";
579
+ }
580
+ //#endregion
581
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.d.cts
582
+ type _JSONSchema = boolean | JSONSchema;
583
+ type JSONSchema = {
584
+ [k: string]: unknown;
585
+ $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
586
+ $id?: string;
587
+ $anchor?: string;
588
+ $ref?: string;
589
+ $dynamicRef?: string;
590
+ $dynamicAnchor?: string;
591
+ $vocabulary?: Record<string, boolean>;
592
+ $comment?: string;
593
+ $defs?: Record<string, JSONSchema>;
594
+ type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
595
+ additionalItems?: _JSONSchema;
596
+ unevaluatedItems?: _JSONSchema;
597
+ prefixItems?: _JSONSchema[];
598
+ items?: _JSONSchema | _JSONSchema[];
599
+ contains?: _JSONSchema;
600
+ additionalProperties?: _JSONSchema;
601
+ unevaluatedProperties?: _JSONSchema;
602
+ properties?: Record<string, _JSONSchema>;
603
+ patternProperties?: Record<string, _JSONSchema>;
604
+ dependentSchemas?: Record<string, _JSONSchema>;
605
+ propertyNames?: _JSONSchema;
606
+ if?: _JSONSchema;
607
+ then?: _JSONSchema;
608
+ else?: _JSONSchema;
609
+ allOf?: JSONSchema[];
610
+ anyOf?: JSONSchema[];
611
+ oneOf?: JSONSchema[];
612
+ not?: _JSONSchema;
613
+ multipleOf?: number;
614
+ maximum?: number;
615
+ exclusiveMaximum?: number | boolean;
616
+ minimum?: number;
617
+ exclusiveMinimum?: number | boolean;
618
+ maxLength?: number;
619
+ minLength?: number;
620
+ pattern?: string;
621
+ maxItems?: number;
622
+ minItems?: number;
623
+ uniqueItems?: boolean;
624
+ maxContains?: number;
625
+ minContains?: number;
626
+ maxProperties?: number;
627
+ minProperties?: number;
628
+ required?: string[];
629
+ dependentRequired?: Record<string, string[]>;
630
+ enum?: Array<string | number | boolean | null>;
631
+ const?: string | number | boolean | null;
632
+ id?: string;
633
+ title?: string;
634
+ description?: string;
635
+ default?: unknown;
636
+ deprecated?: boolean;
637
+ readOnly?: boolean;
638
+ writeOnly?: boolean;
639
+ nullable?: boolean;
640
+ examples?: unknown[];
641
+ format?: string;
642
+ contentMediaType?: string;
643
+ contentEncoding?: string;
644
+ contentSchema?: JSONSchema;
645
+ _prefault?: unknown;
646
+ };
647
+ type BaseSchema = JSONSchema;
648
+ //#endregion
649
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/standard-schema.d.cts
650
+ /** The Standard interface. */
651
+ interface StandardTypedV1<Input = unknown, Output = Input> {
652
+ /** The Standard properties. */
653
+ readonly "~standard": StandardTypedV1.Props<Input, Output>;
654
+ }
655
+ declare namespace StandardTypedV1 {
656
+ /** The Standard properties interface. */
657
+ interface Props<Input = unknown, Output = Input> {
658
+ /** The version number of the standard. */
659
+ readonly version: 1;
660
+ /** The vendor name of the schema library. */
661
+ readonly vendor: string;
662
+ /** Inferred types associated with the schema. */
663
+ readonly types?: Types<Input, Output> | undefined;
664
+ }
665
+ /** The Standard types interface. */
666
+ interface Types<Input = unknown, Output = Input> {
667
+ /** The input type of the schema. */
668
+ readonly input: Input;
669
+ /** The output type of the schema. */
670
+ readonly output: Output;
671
+ }
672
+ /** Infers the input type of a Standard. */
673
+ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
674
+ /** Infers the output type of a Standard. */
675
+ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
676
+ }
677
+ /** The Standard Schema interface. */
678
+ interface StandardSchemaV1<Input = unknown, Output = Input> {
679
+ /** The Standard Schema properties. */
680
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
681
+ }
682
+ declare namespace StandardSchemaV1 {
683
+ /** The Standard Schema properties interface. */
684
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
685
+ /** Validates unknown input values. */
686
+ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
687
+ }
688
+ /** The result interface of the validate function. */
689
+ type Result<Output> = SuccessResult<Output> | FailureResult;
690
+ /** The result interface if validation succeeds. */
691
+ interface SuccessResult<Output> {
692
+ /** The typed output value. */
693
+ readonly value: Output;
694
+ /** The absence of issues indicates success. */
695
+ readonly issues?: undefined;
696
+ }
697
+ interface Options {
698
+ /** Implicit support for additional vendor-specific parameters, if needed. */
699
+ readonly libraryOptions?: Record<string, unknown> | undefined;
700
+ }
701
+ /** The result interface if validation fails. */
702
+ interface FailureResult {
703
+ /** The issues of failed validation. */
704
+ readonly issues: ReadonlyArray<Issue>;
705
+ }
706
+ /** The issue interface of the failure output. */
707
+ interface Issue {
708
+ /** The error message of the issue. */
709
+ readonly message: string;
710
+ /** The path of the issue, if any. */
711
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
712
+ }
713
+ /** The path segment interface of the issue. */
714
+ interface PathSegment {
715
+ /** The key representing a path segment. */
716
+ readonly key: PropertyKey;
717
+ }
718
+ /** The Standard types interface. */
719
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
720
+ /** Infers the input type of a Standard. */
721
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
722
+ /** Infers the output type of a Standard. */
723
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
724
+ }
725
+ /** The Standard JSON Schema interface. */
726
+ interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
727
+ /** The Standard JSON Schema properties. */
728
+ readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
729
+ }
730
+ declare namespace StandardJSONSchemaV1 {
731
+ /** The Standard JSON Schema properties interface. */
732
+ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
733
+ /** Methods for generating the input/output JSON Schema. */
734
+ readonly jsonSchema: Converter;
735
+ }
736
+ /** The Standard JSON Schema converter interface. */
737
+ interface Converter {
738
+ /** Converts the input type to JSON Schema. May throw if conversion is not supported. */
739
+ readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
740
+ /** Converts the output type to JSON Schema. May throw if conversion is not supported. */
741
+ readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
742
+ }
743
+ /** The target version of the generated JSON Schema.
744
+ *
745
+ * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use.
746
+ *
747
+ * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
748
+ *
749
+ * All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
750
+ */
751
+ type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
752
+ /** The options for the input/output methods. */
753
+ interface Options {
754
+ /** 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. */
755
+ readonly target: Target;
756
+ /** Implicit support for additional vendor-specific parameters, if needed. */
757
+ readonly libraryOptions?: Record<string, unknown> | undefined;
758
+ }
759
+ /** The Standard types interface. */
760
+ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
761
+ /** Infers the input type of a Standard. */
762
+ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
763
+ /** Infers the output type of a Standard. */
764
+ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
765
+ }
766
+ interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
767
+ //#endregion
768
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.d.cts
769
+ declare const $output: unique symbol;
770
+ type $output = typeof $output;
771
+ declare const $input: unique symbol;
772
+ type $input = typeof $input;
773
+ 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;
774
+ type MetadataType = object | undefined;
775
+ declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
776
+ _meta: Meta;
777
+ _schema: Schema;
778
+ _map: WeakMap<Schema, $replace<Meta, Schema>>;
779
+ _idmap: Map<string, Schema>;
780
+ add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
781
+ clear(): this;
782
+ remove(schema: Schema): this;
783
+ get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
784
+ has(schema: Schema): boolean;
785
+ }
786
+ interface JSONSchemaMeta {
787
+ id?: string | undefined;
788
+ title?: string | undefined;
789
+ description?: string | undefined;
790
+ deprecated?: boolean | undefined;
791
+ [k: string]: unknown;
792
+ }
793
+ interface GlobalMeta extends JSONSchemaMeta {}
794
+ //#endregion
795
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.d.cts
796
+ type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
797
+ interface JSONSchemaGeneratorParams {
798
+ processors: Record<string, Processor>;
799
+ /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
800
+ * @default globalRegistry */
801
+ metadata?: $ZodRegistry<Record<string, any>>;
802
+ /** The JSON Schema version to target.
803
+ * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
804
+ * - `"draft-07"` — JSON Schema Draft 7
805
+ * - `"draft-04"` — JSON Schema Draft 4
806
+ * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
807
+ target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
808
+ /** How to handle unrepresentable types.
809
+ * - `"throw"` — Default. Unrepresentable types throw an error
810
+ * - `"any"` — Unrepresentable types become `{}` */
811
+ unrepresentable?: "throw" | "any";
812
+ /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
813
+ override?: (ctx: {
814
+ zodSchema: $ZodTypes;
815
+ jsonSchema: BaseSchema;
816
+ path: (string | number)[];
817
+ }) => void;
818
+ /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
819
+ * - `"output"` — Default. Convert the output schema.
820
+ * - `"input"` — Convert the input schema. */
821
+ io?: "input" | "output";
822
+ cycles?: "ref" | "throw";
823
+ reused?: "ref" | "inline";
824
+ external?: {
825
+ registry: $ZodRegistry<{
826
+ id?: string | undefined;
827
+ }>;
828
+ uri?: ((id: string) => string) | undefined;
829
+ defs: Record<string, BaseSchema>;
830
+ } | undefined;
831
+ }
832
+ /**
833
+ * Parameters for the toJSONSchema function.
834
+ */
835
+ type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
836
+ interface ProcessParams {
837
+ schemaPath: $ZodType[];
838
+ path: (string | number)[];
839
+ }
840
+ interface Seen {
841
+ /** JSON Schema result for this Zod schema */
842
+ schema: BaseSchema;
843
+ /** A cached version of the schema that doesn't get overwritten during ref resolution */
844
+ def?: BaseSchema;
845
+ defId?: string | undefined;
846
+ /** Number of times this schema was encountered during traversal */
847
+ count: number;
848
+ /** Cycle path */
849
+ cycle?: (string | number)[] | undefined;
850
+ isParent?: boolean | undefined;
851
+ /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
852
+ ref?: $ZodType | null;
853
+ /** JSON Schema property path for this schema */
854
+ path?: (string | number)[] | undefined;
855
+ }
856
+ interface ToJSONSchemaContext {
857
+ processors: Record<string, Processor>;
858
+ metadataRegistry: $ZodRegistry<Record<string, any>>;
859
+ target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
860
+ unrepresentable: "throw" | "any";
861
+ override: (ctx: {
862
+ zodSchema: $ZodType;
863
+ jsonSchema: BaseSchema;
864
+ path: (string | number)[];
865
+ }) => void;
866
+ io: "input" | "output";
867
+ counter: number;
868
+ seen: Map<$ZodType, Seen>;
869
+ cycles: "ref" | "throw";
870
+ reused: "ref" | "inline";
871
+ external?: {
872
+ registry: $ZodRegistry<{
873
+ id?: string | undefined;
874
+ }>;
875
+ uri?: ((id: string) => string) | undefined;
876
+ defs: Record<string, BaseSchema>;
877
+ } | undefined;
878
+ }
879
+ type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
880
+ interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
881
+ "~standard": ZodStandardSchemaWithJSON$1<T>;
882
+ }
883
+ //#endregion
884
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.d.cts
885
+ type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
886
+ 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 & {});
887
+ type IsAny<T> = 0 extends 1 & T ? true : false;
888
+ type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
889
+ type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
890
+ type NoUndefined<T> = T extends undefined ? never : T;
891
+ type LoosePartial<T extends object> = InexactPartial<T> & {
892
+ [k: string]: unknown;
893
+ };
894
+ type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
895
+ type Writeable<T> = { -readonly [P in keyof T]: T[P] } & {};
896
+ type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
897
+ type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
898
+ readonly [Symbol.toStringTag]: string;
899
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
900
+ 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>;
901
+ type SomeObject = Record<PropertyKey, any>;
902
+ type Identity<T> = T;
903
+ type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
904
+ type Prettify<T> = { [K in keyof T]: T[K] } & {};
905
+ type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }>;
906
+ type TupleItems = ReadonlyArray<SomeType>;
907
+ type AnyFunc = (...args: any[]) => any;
908
+ type MaybeAsync<T> = T | Promise<T>;
909
+ type EnumValue = string | number;
910
+ type EnumLike = Readonly<Record<string, EnumValue>>;
911
+ type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k }>;
912
+ type Literal = string | number | bigint | boolean | null | undefined;
913
+ type Primitive = string | number | symbol | bigint | boolean | null | undefined;
914
+ type HasLength = {
915
+ length: number;
916
+ };
917
+ type Numeric = number | bigint | Date;
918
+ type PropValues = Record<string, Set<Primitive>>;
919
+ type PrimitiveSet = Set<Primitive>;
920
+ type EmptyToNever<T> = keyof T extends never ? never : T;
921
+ declare abstract class Class {
922
+ constructor(..._args: any[]);
923
+ }
924
+ //#endregion
925
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.d.cts
926
+ declare const version: {
927
+ readonly major: 4;
928
+ readonly minor: 4;
929
+ readonly patch: number;
930
+ };
931
+ //#endregion
932
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.d.cts
933
+ interface ParseContext<T extends $ZodIssueBase = never> {
934
+ /** Customize error messages. */
935
+ readonly error?: $ZodErrorMap<T>;
936
+ /** Include the `input` field in issue objects. Default `false`. */
937
+ readonly reportInput?: boolean;
938
+ /** Skip eval-based fast path. Default `false`. */
939
+ readonly jitless?: boolean;
940
+ }
941
+ /** @internal */
942
+ interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
943
+ readonly async?: boolean | undefined;
944
+ readonly direction?: "forward" | "backward";
945
+ readonly skipChecks?: boolean;
946
+ }
947
+ interface ParsePayload<T = unknown> {
948
+ value: T;
949
+ issues: $ZodRawIssue[];
950
+ /** A way to mark a whole payload as aborted. Used in codecs/pipes. */
951
+ aborted?: boolean;
952
+ /** @internal Marks a value as a fallback that an outer wrapper (e.g.
953
+ * $ZodOptional) may override with its own interpretation when input was
954
+ * undefined. Set by $ZodCatch when catchValue substitutes and by every
955
+ * $ZodTransform invocation. */
956
+ fallback?: boolean | undefined;
957
+ }
958
+ type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
959
+ interface $ZodTypeDef {
960
+ 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";
961
+ error?: $ZodErrorMap<never> | undefined;
962
+ checks?: $ZodCheck<never>[];
963
+ }
964
+ interface _$ZodTypeInternals {
965
+ /** The `@zod/core` version of this schema */
966
+ version: typeof version;
967
+ /** Schema definition. */
968
+ def: $ZodTypeDef;
969
+ /** @internal Randomly generated ID for this schema. */
970
+ /** @internal List of deferred initializers. */
971
+ deferred: AnyFunc[] | undefined;
972
+ /** @internal Parses input and runs all checks (refinements). */
973
+ run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
974
+ /** @internal Parses input, doesn't run checks. */
975
+ parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
976
+ /** @internal Stores identifiers for the set of traits implemented by this schema. */
977
+ traits: Set<string>;
978
+ /** @internal Indicates that a schema output type should be considered optional inside objects.
979
+ * @default Required
980
+ */
981
+ /** @internal */
982
+ optin?: "optional" | undefined;
983
+ /** @internal */
984
+ optout?: "optional" | undefined;
985
+ /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
986
+ *
987
+ * Defined on: enum, const, literal, null, undefined
988
+ * Passthrough: optional, nullable, branded, default, catch, pipe
989
+ * Todo: unions?
990
+ */
991
+ values?: PrimitiveSet | undefined;
992
+ /** Default value bubbled up from */
993
+ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */
994
+ propValues?: PropValues | undefined;
995
+ /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
996
+ pattern: RegExp | undefined;
997
+ /** @internal The constructor function of this schema. */
998
+ constr: new (def: any) => $ZodType;
999
+ /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
1000
+ bag: Record<string, unknown>;
1001
+ /** @internal The set of issues this schema might throw during type checking. */
1002
+ isst: $ZodIssueBase;
1003
+ /** @internal Subject to change, not a public API. */
1004
+ processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
1005
+ /** An optional method used to override `toJSONSchema` logic. */
1006
+ toJSONSchema?: () => unknown;
1007
+ /** @internal The parent of this schema. Only set during certain clone operations. */
1008
+ parent?: $ZodType | undefined;
1009
+ }
1010
+ /** @internal */
1011
+ interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
1012
+ /** @internal The inferred output type */
1013
+ output: O;
1014
+ /** @internal The inferred input type */
1015
+ input: I;
1016
+ }
1017
+ type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
1018
+ type SomeType = {
1019
+ _zod: _$ZodTypeInternals;
1020
+ };
1021
+ interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
1022
+ _zod: Internals;
1023
+ "~standard": $ZodStandardSchema<this>;
1024
+ }
1025
+ interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
1026
+ declare const $ZodType: $constructor<$ZodType>;
1027
+ interface $ZodStringDef extends $ZodTypeDef {
1028
+ type: "string";
1029
+ coerce?: boolean;
1030
+ checks?: $ZodCheck<string>[];
1031
+ }
1032
+ interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
1033
+ def: $ZodStringDef;
1034
+ /** @deprecated Internal API, use with caution (not deprecated) */
1035
+ pattern: RegExp;
1036
+ /** @deprecated Internal API, use with caution (not deprecated) */
1037
+ isst: $ZodIssueInvalidType;
1038
+ bag: LoosePartial<{
1039
+ minimum: number;
1040
+ maximum: number;
1041
+ patterns: Set<RegExp>;
1042
+ format: string;
1043
+ contentEncoding: string;
1044
+ }>;
1045
+ }
1046
+ interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
1047
+ declare const $ZodString: $constructor<$ZodString>;
1048
+ interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
1049
+ interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
1050
+ def: $ZodStringFormatDef<Format>;
1051
+ }
1052
+ interface $ZodStringFormat<Format extends string = string> extends $ZodType {
1053
+ _zod: $ZodStringFormatInternals<Format>;
1054
+ }
1055
+ declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
1056
+ interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
1057
+ interface $ZodGUID extends $ZodType {
1058
+ _zod: $ZodGUIDInternals;
1059
+ }
1060
+ declare const $ZodGUID: $constructor<$ZodGUID>;
1061
+ interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
1062
+ version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
1063
+ }
1064
+ interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
1065
+ def: $ZodUUIDDef;
1066
+ }
1067
+ interface $ZodUUID extends $ZodType {
1068
+ _zod: $ZodUUIDInternals;
1069
+ }
1070
+ declare const $ZodUUID: $constructor<$ZodUUID>;
1071
+ interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
1072
+ interface $ZodEmail extends $ZodType {
1073
+ _zod: $ZodEmailInternals;
1074
+ }
1075
+ declare const $ZodEmail: $constructor<$ZodEmail>;
1076
+ interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
1077
+ hostname?: RegExp | undefined;
1078
+ protocol?: RegExp | undefined;
1079
+ normalize?: boolean | undefined;
1080
+ }
1081
+ interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
1082
+ def: $ZodURLDef;
1083
+ }
1084
+ interface $ZodURL extends $ZodType {
1085
+ _zod: $ZodURLInternals;
1086
+ }
1087
+ declare const $ZodURL: $constructor<$ZodURL>;
1088
+ interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
1089
+ interface $ZodEmoji extends $ZodType {
1090
+ _zod: $ZodEmojiInternals;
1091
+ }
1092
+ declare const $ZodEmoji: $constructor<$ZodEmoji>;
1093
+ interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
1094
+ interface $ZodNanoID extends $ZodType {
1095
+ _zod: $ZodNanoIDInternals;
1096
+ }
1097
+ declare const $ZodNanoID: $constructor<$ZodNanoID>;
1098
+ /**
1099
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1100
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1101
+ * See https://github.com/paralleldrive/cuid.
1102
+ */
1103
+ interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
1104
+ /**
1105
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1106
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1107
+ * See https://github.com/paralleldrive/cuid.
1108
+ */
1109
+ interface $ZodCUID extends $ZodType {
1110
+ _zod: $ZodCUIDInternals;
1111
+ }
1112
+ /**
1113
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1114
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1115
+ * See https://github.com/paralleldrive/cuid.
1116
+ */
1117
+ declare const $ZodCUID: $constructor<$ZodCUID>;
1118
+ interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
1119
+ interface $ZodCUID2 extends $ZodType {
1120
+ _zod: $ZodCUID2Internals;
1121
+ }
1122
+ declare const $ZodCUID2: $constructor<$ZodCUID2>;
1123
+ interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
1124
+ interface $ZodULID extends $ZodType {
1125
+ _zod: $ZodULIDInternals;
1126
+ }
1127
+ declare const $ZodULID: $constructor<$ZodULID>;
1128
+ interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
1129
+ interface $ZodXID extends $ZodType {
1130
+ _zod: $ZodXIDInternals;
1131
+ }
1132
+ declare const $ZodXID: $constructor<$ZodXID>;
1133
+ interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
1134
+ interface $ZodKSUID extends $ZodType {
1135
+ _zod: $ZodKSUIDInternals;
1136
+ }
1137
+ declare const $ZodKSUID: $constructor<$ZodKSUID>;
1138
+ interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
1139
+ precision: number | null;
1140
+ offset: boolean;
1141
+ local: boolean;
1142
+ }
1143
+ interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
1144
+ def: $ZodISODateTimeDef;
1145
+ }
1146
+ interface $ZodISODateTime extends $ZodType {
1147
+ _zod: $ZodISODateTimeInternals;
1148
+ }
1149
+ declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
1150
+ interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
1151
+ interface $ZodISODate extends $ZodType {
1152
+ _zod: $ZodISODateInternals;
1153
+ }
1154
+ declare const $ZodISODate: $constructor<$ZodISODate>;
1155
+ interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
1156
+ precision?: number | null;
1157
+ }
1158
+ interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
1159
+ def: $ZodISOTimeDef;
1160
+ }
1161
+ interface $ZodISOTime extends $ZodType {
1162
+ _zod: $ZodISOTimeInternals;
1163
+ }
1164
+ declare const $ZodISOTime: $constructor<$ZodISOTime>;
1165
+ interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
1166
+ interface $ZodISODuration extends $ZodType {
1167
+ _zod: $ZodISODurationInternals;
1168
+ }
1169
+ declare const $ZodISODuration: $constructor<$ZodISODuration>;
1170
+ interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
1171
+ version?: "v4";
1172
+ }
1173
+ interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
1174
+ def: $ZodIPv4Def;
1175
+ }
1176
+ interface $ZodIPv4 extends $ZodType {
1177
+ _zod: $ZodIPv4Internals;
1178
+ }
1179
+ declare const $ZodIPv4: $constructor<$ZodIPv4>;
1180
+ interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
1181
+ version?: "v6";
1182
+ }
1183
+ interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
1184
+ def: $ZodIPv6Def;
1185
+ }
1186
+ interface $ZodIPv6 extends $ZodType {
1187
+ _zod: $ZodIPv6Internals;
1188
+ }
1189
+ declare const $ZodIPv6: $constructor<$ZodIPv6>;
1190
+ interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
1191
+ version?: "v4";
1192
+ }
1193
+ interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
1194
+ def: $ZodCIDRv4Def;
1195
+ }
1196
+ interface $ZodCIDRv4 extends $ZodType {
1197
+ _zod: $ZodCIDRv4Internals;
1198
+ }
1199
+ declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
1200
+ interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
1201
+ version?: "v6";
1202
+ }
1203
+ interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
1204
+ def: $ZodCIDRv6Def;
1205
+ }
1206
+ interface $ZodCIDRv6 extends $ZodType {
1207
+ _zod: $ZodCIDRv6Internals;
1208
+ }
1209
+ declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
1210
+ interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
1211
+ interface $ZodBase64 extends $ZodType {
1212
+ _zod: $ZodBase64Internals;
1213
+ }
1214
+ declare const $ZodBase64: $constructor<$ZodBase64>;
1215
+ interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
1216
+ interface $ZodBase64URL extends $ZodType {
1217
+ _zod: $ZodBase64URLInternals;
1218
+ }
1219
+ declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
1220
+ interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
1221
+ interface $ZodE164 extends $ZodType {
1222
+ _zod: $ZodE164Internals;
1223
+ }
1224
+ declare const $ZodE164: $constructor<$ZodE164>;
1225
+ interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
1226
+ alg?: JWTAlgorithm | undefined;
1227
+ }
1228
+ interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
1229
+ def: $ZodJWTDef;
1230
+ }
1231
+ interface $ZodJWT extends $ZodType {
1232
+ _zod: $ZodJWTInternals;
1233
+ }
1234
+ declare const $ZodJWT: $constructor<$ZodJWT>;
1235
+ interface $ZodNumberDef extends $ZodTypeDef {
1236
+ type: "number";
1237
+ coerce?: boolean;
1238
+ }
1239
+ interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
1240
+ def: $ZodNumberDef;
1241
+ /** @deprecated Internal API, use with caution (not deprecated) */
1242
+ pattern: RegExp;
1243
+ /** @deprecated Internal API, use with caution (not deprecated) */
1244
+ isst: $ZodIssueInvalidType;
1245
+ bag: LoosePartial<{
1246
+ minimum: number;
1247
+ maximum: number;
1248
+ exclusiveMinimum: number;
1249
+ exclusiveMaximum: number;
1250
+ format: string;
1251
+ pattern: RegExp;
1252
+ }>;
1253
+ }
1254
+ interface $ZodNumber<Input = unknown> extends $ZodType {
1255
+ _zod: $ZodNumberInternals<Input>;
1256
+ }
1257
+ declare const $ZodNumber: $constructor<$ZodNumber>;
1258
+ interface $ZodBooleanDef extends $ZodTypeDef {
1259
+ type: "boolean";
1260
+ coerce?: boolean;
1261
+ checks?: $ZodCheck<boolean>[];
1262
+ }
1263
+ interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
1264
+ pattern: RegExp;
1265
+ def: $ZodBooleanDef;
1266
+ isst: $ZodIssueInvalidType;
1267
+ }
1268
+ interface $ZodBoolean<T = unknown> extends $ZodType {
1269
+ _zod: $ZodBooleanInternals<T>;
1270
+ }
1271
+ declare const $ZodBoolean: $constructor<$ZodBoolean>;
1272
+ interface $ZodBigIntDef extends $ZodTypeDef {
1273
+ type: "bigint";
1274
+ coerce?: boolean;
1275
+ }
1276
+ interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
1277
+ pattern: RegExp;
1278
+ /** @internal Internal API, use with caution */
1279
+ def: $ZodBigIntDef;
1280
+ isst: $ZodIssueInvalidType;
1281
+ bag: LoosePartial<{
1282
+ minimum: bigint;
1283
+ maximum: bigint;
1284
+ format: string;
1285
+ }>;
1286
+ }
1287
+ interface $ZodBigInt<T = unknown> extends $ZodType {
1288
+ _zod: $ZodBigIntInternals<T>;
1289
+ }
1290
+ declare const $ZodBigInt: $constructor<$ZodBigInt>;
1291
+ interface $ZodSymbolDef extends $ZodTypeDef {
1292
+ type: "symbol";
1293
+ }
1294
+ interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
1295
+ def: $ZodSymbolDef;
1296
+ isst: $ZodIssueInvalidType;
1297
+ }
1298
+ interface $ZodSymbol extends $ZodType {
1299
+ _zod: $ZodSymbolInternals;
1300
+ }
1301
+ declare const $ZodSymbol: $constructor<$ZodSymbol>;
1302
+ interface $ZodUndefinedDef extends $ZodTypeDef {
1303
+ type: "undefined";
1304
+ }
1305
+ interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
1306
+ pattern: RegExp;
1307
+ def: $ZodUndefinedDef;
1308
+ values: PrimitiveSet;
1309
+ isst: $ZodIssueInvalidType;
1310
+ }
1311
+ interface $ZodUndefined extends $ZodType {
1312
+ _zod: $ZodUndefinedInternals;
1313
+ }
1314
+ declare const $ZodUndefined: $constructor<$ZodUndefined>;
1315
+ interface $ZodNullDef extends $ZodTypeDef {
1316
+ type: "null";
1317
+ }
1318
+ interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
1319
+ pattern: RegExp;
1320
+ def: $ZodNullDef;
1321
+ values: PrimitiveSet;
1322
+ isst: $ZodIssueInvalidType;
1323
+ }
1324
+ interface $ZodNull extends $ZodType {
1325
+ _zod: $ZodNullInternals;
1326
+ }
1327
+ declare const $ZodNull: $constructor<$ZodNull>;
1328
+ interface $ZodAnyDef extends $ZodTypeDef {
1329
+ type: "any";
1330
+ }
1331
+ interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
1332
+ def: $ZodAnyDef;
1333
+ isst: never;
1334
+ }
1335
+ interface $ZodAny extends $ZodType {
1336
+ _zod: $ZodAnyInternals;
1337
+ }
1338
+ declare const $ZodAny: $constructor<$ZodAny>;
1339
+ interface $ZodUnknownDef extends $ZodTypeDef {
1340
+ type: "unknown";
1341
+ }
1342
+ interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
1343
+ def: $ZodUnknownDef;
1344
+ isst: never;
1345
+ }
1346
+ interface $ZodUnknown extends $ZodType {
1347
+ _zod: $ZodUnknownInternals;
1348
+ }
1349
+ declare const $ZodUnknown: $constructor<$ZodUnknown>;
1350
+ interface $ZodNeverDef extends $ZodTypeDef {
1351
+ type: "never";
1352
+ }
1353
+ interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
1354
+ def: $ZodNeverDef;
1355
+ isst: $ZodIssueInvalidType;
1356
+ }
1357
+ interface $ZodNever extends $ZodType {
1358
+ _zod: $ZodNeverInternals;
1359
+ }
1360
+ declare const $ZodNever: $constructor<$ZodNever>;
1361
+ interface $ZodVoidDef extends $ZodTypeDef {
1362
+ type: "void";
1363
+ }
1364
+ interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
1365
+ def: $ZodVoidDef;
1366
+ isst: $ZodIssueInvalidType;
1367
+ }
1368
+ interface $ZodVoid extends $ZodType {
1369
+ _zod: $ZodVoidInternals;
1370
+ }
1371
+ declare const $ZodVoid: $constructor<$ZodVoid>;
1372
+ interface $ZodDateDef extends $ZodTypeDef {
1373
+ type: "date";
1374
+ coerce?: boolean;
1375
+ }
1376
+ interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
1377
+ def: $ZodDateDef;
1378
+ isst: $ZodIssueInvalidType;
1379
+ bag: LoosePartial<{
1380
+ minimum: Date;
1381
+ maximum: Date;
1382
+ format: string;
1383
+ }>;
1384
+ }
1385
+ interface $ZodDate<T = unknown> extends $ZodType {
1386
+ _zod: $ZodDateInternals<T>;
1387
+ }
1388
+ declare const $ZodDate: $constructor<$ZodDate>;
1389
+ interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1390
+ type: "array";
1391
+ element: T;
1392
+ }
1393
+ interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
1394
+ def: $ZodArrayDef<T>;
1395
+ isst: $ZodIssueInvalidType;
1396
+ output: output<T>[];
1397
+ input: input<T>[];
1398
+ }
1399
+ interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
1400
+ declare const $ZodArray: $constructor<$ZodArray>;
1401
+ type OptionalOutSchema = {
1402
+ _zod: {
1403
+ optout: "optional";
1404
+ };
1405
+ };
1406
+ type OptionalInSchema = {
1407
+ _zod: {
1408
+ optin: "optional";
1409
+ };
1410
+ };
1411
+ 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>;
1412
+ 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>;
1413
+ type $ZodObjectConfig = {
1414
+ out: Record<string, unknown>;
1415
+ in: Record<string, unknown>;
1416
+ };
1417
+ type $loose = {
1418
+ out: Record<string, unknown>;
1419
+ in: Record<string, unknown>;
1420
+ };
1421
+ type $strict = {
1422
+ out: {};
1423
+ in: {};
1424
+ };
1425
+ type $strip = {
1426
+ out: {};
1427
+ in: {};
1428
+ };
1429
+ type $catchall<T extends SomeType> = {
1430
+ out: {
1431
+ [k: string]: output<T>;
1432
+ };
1433
+ in: {
1434
+ [k: string]: input<T>;
1435
+ };
1436
+ };
1437
+ type $ZodShape = Readonly<{
1438
+ [k: string]: $ZodType;
1439
+ }>;
1440
+ interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
1441
+ type: "object";
1442
+ shape: Shape;
1443
+ catchall?: $ZodType | undefined;
1444
+ }
1445
+ interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
1446
+ def: $ZodObjectDef<Shape>;
1447
+ config: Config;
1448
+ isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
1449
+ propValues: PropValues;
1450
+ output: $InferObjectOutput<Shape, Config["out"]>;
1451
+ input: $InferObjectInput<Shape, Config["in"]>;
1452
+ optin?: "optional" | undefined;
1453
+ optout?: "optional" | undefined;
1454
+ }
1455
+ type $ZodLooseShape = Record<string, any>;
1456
+ 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>> {}
1457
+ declare const $ZodObject: $constructor<$ZodObject>;
1458
+ type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
1459
+ type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
1460
+ interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
1461
+ type: "union";
1462
+ options: Options;
1463
+ inclusive?: boolean;
1464
+ }
1465
+ type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
1466
+ type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
1467
+ interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
1468
+ def: $ZodUnionDef<T>;
1469
+ isst: $ZodIssueInvalidUnion;
1470
+ pattern: T[number]["_zod"]["pattern"];
1471
+ values: T[number]["_zod"]["values"];
1472
+ output: $InferUnionOutput<T[number]>;
1473
+ input: $InferUnionInput<T[number]>;
1474
+ optin: IsOptionalIn<T[number]> extends false ? "optional" | undefined : "optional";
1475
+ optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
1476
+ }
1477
+ interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
1478
+ _zod: $ZodUnionInternals<T>;
1479
+ }
1480
+ declare const $ZodUnion: $constructor<$ZodUnion>;
1481
+ interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
1482
+ type: "intersection";
1483
+ left: Left;
1484
+ right: Right;
1485
+ }
1486
+ interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
1487
+ def: $ZodIntersectionDef<A, B>;
1488
+ isst: never;
1489
+ optin: A["_zod"]["optin"] | B["_zod"]["optin"];
1490
+ optout: A["_zod"]["optout"] | B["_zod"]["optout"];
1491
+ output: output<A> & output<B>;
1492
+ input: input<A> & input<B>;
1493
+ }
1494
+ interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1495
+ _zod: $ZodIntersectionInternals<A, B>;
1496
+ }
1497
+ declare const $ZodIntersection: $constructor<$ZodIntersection>;
1498
+ interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
1499
+ type: "tuple";
1500
+ items: T;
1501
+ rest: Rest;
1502
+ }
1503
+ type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
1504
+ type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]> };
1505
+ 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> : [];
1506
+ type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
1507
+ type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]> };
1508
+ 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> : [];
1509
+ interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
1510
+ def: $ZodTupleDef<T, Rest>;
1511
+ isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
1512
+ output: $InferTupleOutputType<T, Rest>;
1513
+ input: $InferTupleInputType<T, Rest>;
1514
+ }
1515
+ interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
1516
+ _zod: $ZodTupleInternals<T, Rest>;
1517
+ }
1518
+ declare const $ZodTuple: $constructor<$ZodTuple>;
1519
+ type $ZodRecordKey = $ZodType<string | number | symbol, unknown>;
1520
+ interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
1521
+ type: "record";
1522
+ keyType: Key;
1523
+ valueType: Value;
1524
+ /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
1525
+ mode?: "strict" | "loose";
1526
+ }
1527
+ type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
1528
+ 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>>;
1529
+ interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
1530
+ def: $ZodRecordDef<Key, Value>;
1531
+ isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
1532
+ optin?: "optional" | undefined;
1533
+ optout?: "optional" | undefined;
1534
+ }
1535
+ type $partial = {
1536
+ "~~partial": true;
1537
+ };
1538
+ interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
1539
+ _zod: $ZodRecordInternals<Key, Value>;
1540
+ }
1541
+ declare const $ZodRecord: $constructor<$ZodRecord>;
1542
+ interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
1543
+ type: "map";
1544
+ keyType: Key;
1545
+ valueType: Value;
1546
+ }
1547
+ interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
1548
+ def: $ZodMapDef<Key, Value>;
1549
+ isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
1550
+ optin?: "optional" | undefined;
1551
+ optout?: "optional" | undefined;
1552
+ }
1553
+ interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
1554
+ _zod: $ZodMapInternals<Key, Value>;
1555
+ }
1556
+ declare const $ZodMap: $constructor<$ZodMap>;
1557
+ interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1558
+ type: "set";
1559
+ valueType: T;
1560
+ }
1561
+ interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
1562
+ def: $ZodSetDef<T>;
1563
+ isst: $ZodIssueInvalidType;
1564
+ optin?: "optional" | undefined;
1565
+ optout?: "optional" | undefined;
1566
+ }
1567
+ interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
1568
+ _zod: $ZodSetInternals<T>;
1569
+ }
1570
+ declare const $ZodSet: $constructor<$ZodSet>;
1571
+ type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
1572
+ type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
1573
+ interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
1574
+ type: "enum";
1575
+ entries: T;
1576
+ }
1577
+ interface $ZodEnumInternals< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
1578
+ def: $ZodEnumDef<T>;
1579
+ /** @deprecated Internal API, use with caution (not deprecated) */
1580
+ values: PrimitiveSet;
1581
+ /** @deprecated Internal API, use with caution (not deprecated) */
1582
+ pattern: RegExp;
1583
+ isst: $ZodIssueInvalidValue;
1584
+ }
1585
+ interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType {
1586
+ _zod: $ZodEnumInternals<T>;
1587
+ }
1588
+ declare const $ZodEnum: $constructor<$ZodEnum>;
1589
+ interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef {
1590
+ type: "literal";
1591
+ values: T[];
1592
+ }
1593
+ interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> {
1594
+ def: $ZodLiteralDef<T>;
1595
+ values: Set<T>;
1596
+ pattern: RegExp;
1597
+ isst: $ZodIssueInvalidValue;
1598
+ }
1599
+ interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
1600
+ _zod: $ZodLiteralInternals<T>;
1601
+ }
1602
+ declare const $ZodLiteral: $constructor<$ZodLiteral>;
1603
+ type _File = typeof globalThis extends {
1604
+ File: infer F extends new (...args: any[]) => any;
1605
+ } ? InstanceType<F> : {};
1606
+ /** Do not reference this directly. */
1607
+ interface File extends _File {
1608
+ readonly type: string;
1609
+ readonly size: number;
1610
+ }
1611
+ interface $ZodFileDef extends $ZodTypeDef {
1612
+ type: "file";
1613
+ }
1614
+ interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
1615
+ def: $ZodFileDef;
1616
+ isst: $ZodIssueInvalidType;
1617
+ bag: LoosePartial<{
1618
+ minimum: number;
1619
+ maximum: number;
1620
+ mime: MimeTypes[];
1621
+ }>;
1622
+ }
1623
+ interface $ZodFile extends $ZodType {
1624
+ _zod: $ZodFileInternals;
1625
+ }
1626
+ declare const $ZodFile: $constructor<$ZodFile>;
1627
+ interface $ZodTransformDef extends $ZodTypeDef {
1628
+ type: "transform";
1629
+ transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
1630
+ }
1631
+ interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
1632
+ def: $ZodTransformDef;
1633
+ isst: never;
1634
+ }
1635
+ interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
1636
+ _zod: $ZodTransformInternals<O, I>;
1637
+ }
1638
+ declare const $ZodTransform: $constructor<$ZodTransform>;
1639
+ interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1640
+ type: "optional";
1641
+ innerType: T;
1642
+ }
1643
+ interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
1644
+ def: $ZodOptionalDef<T>;
1645
+ optin: "optional";
1646
+ optout: "optional";
1647
+ isst: never;
1648
+ values: T["_zod"]["values"];
1649
+ pattern: T["_zod"]["pattern"];
1650
+ }
1651
+ interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
1652
+ _zod: $ZodOptionalInternals<T>;
1653
+ }
1654
+ declare const $ZodOptional: $constructor<$ZodOptional>;
1655
+ interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {}
1656
+ interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
1657
+ def: $ZodExactOptionalDef<T>;
1658
+ output: output<T>;
1659
+ input: input<T>;
1660
+ }
1661
+ interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
1662
+ _zod: $ZodExactOptionalInternals<T>;
1663
+ }
1664
+ declare const $ZodExactOptional: $constructor<$ZodExactOptional>;
1665
+ interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1666
+ type: "nullable";
1667
+ innerType: T;
1668
+ }
1669
+ interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
1670
+ def: $ZodNullableDef<T>;
1671
+ optin: T["_zod"]["optin"];
1672
+ optout: T["_zod"]["optout"];
1673
+ isst: never;
1674
+ values: T["_zod"]["values"];
1675
+ pattern: T["_zod"]["pattern"];
1676
+ }
1677
+ interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
1678
+ _zod: $ZodNullableInternals<T>;
1679
+ }
1680
+ declare const $ZodNullable: $constructor<$ZodNullable>;
1681
+ interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1682
+ type: "default";
1683
+ innerType: T;
1684
+ /** The default value. May be a getter. */
1685
+ defaultValue: NoUndefined<output<T>>;
1686
+ }
1687
+ interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
1688
+ def: $ZodDefaultDef<T>;
1689
+ optin: "optional";
1690
+ optout?: "optional" | undefined;
1691
+ isst: never;
1692
+ values: T["_zod"]["values"];
1693
+ }
1694
+ interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
1695
+ _zod: $ZodDefaultInternals<T>;
1696
+ }
1697
+ declare const $ZodDefault: $constructor<$ZodDefault>;
1698
+ interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1699
+ type: "prefault";
1700
+ innerType: T;
1701
+ /** The default value. May be a getter. */
1702
+ defaultValue: input<T>;
1703
+ }
1704
+ interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
1705
+ def: $ZodPrefaultDef<T>;
1706
+ optin: "optional";
1707
+ optout?: "optional" | undefined;
1708
+ isst: never;
1709
+ values: T["_zod"]["values"];
1710
+ }
1711
+ interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
1712
+ _zod: $ZodPrefaultInternals<T>;
1713
+ }
1714
+ declare const $ZodPrefault: $constructor<$ZodPrefault>;
1715
+ interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1716
+ type: "nonoptional";
1717
+ innerType: T;
1718
+ }
1719
+ interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
1720
+ def: $ZodNonOptionalDef<T>;
1721
+ isst: $ZodIssueInvalidType;
1722
+ values: T["_zod"]["values"];
1723
+ optin: "optional" | undefined;
1724
+ optout: "optional" | undefined;
1725
+ }
1726
+ interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
1727
+ _zod: $ZodNonOptionalInternals<T>;
1728
+ }
1729
+ declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
1730
+ interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1731
+ type: "success";
1732
+ innerType: T;
1733
+ }
1734
+ interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
1735
+ def: $ZodSuccessDef<T>;
1736
+ isst: never;
1737
+ optin: T["_zod"]["optin"];
1738
+ optout: "optional" | undefined;
1739
+ }
1740
+ interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
1741
+ _zod: $ZodSuccessInternals<T>;
1742
+ }
1743
+ declare const $ZodSuccess: $constructor<$ZodSuccess>;
1744
+ interface $ZodCatchCtx extends ParsePayload {
1745
+ /** @deprecated Use `ctx.issues` */
1746
+ error: {
1747
+ issues: $ZodIssue[];
1748
+ };
1749
+ /** @deprecated Use `ctx.value` */
1750
+ input: unknown;
1751
+ }
1752
+ interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1753
+ type: "catch";
1754
+ innerType: T;
1755
+ catchValue: (ctx: $ZodCatchCtx) => unknown;
1756
+ }
1757
+ interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
1758
+ def: $ZodCatchDef<T>;
1759
+ optin: T["_zod"]["optin"];
1760
+ optout: T["_zod"]["optout"];
1761
+ isst: never;
1762
+ values: T["_zod"]["values"];
1763
+ }
1764
+ interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
1765
+ _zod: $ZodCatchInternals<T>;
1766
+ }
1767
+ declare const $ZodCatch: $constructor<$ZodCatch>;
1768
+ interface $ZodNaNDef extends $ZodTypeDef {
1769
+ type: "nan";
1770
+ }
1771
+ interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
1772
+ def: $ZodNaNDef;
1773
+ isst: $ZodIssueInvalidType;
1774
+ }
1775
+ interface $ZodNaN extends $ZodType {
1776
+ _zod: $ZodNaNInternals;
1777
+ }
1778
+ declare const $ZodNaN: $constructor<$ZodNaN>;
1779
+ interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
1780
+ type: "pipe";
1781
+ in: A;
1782
+ out: B;
1783
+ /** Only defined inside $ZodCodec instances. */
1784
+ transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
1785
+ /** Only defined inside $ZodCodec instances. */
1786
+ reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
1787
+ }
1788
+ interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
1789
+ def: $ZodPipeDef<A, B>;
1790
+ isst: never;
1791
+ values: A["_zod"]["values"];
1792
+ optin: A["_zod"]["optin"];
1793
+ optout: B["_zod"]["optout"];
1794
+ propValues: A["_zod"]["propValues"];
1795
+ }
1796
+ interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1797
+ _zod: $ZodPipeInternals<A, B>;
1798
+ }
1799
+ declare const $ZodPipe: $constructor<$ZodPipe>;
1800
+ interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1801
+ type: "readonly";
1802
+ innerType: T;
1803
+ }
1804
+ interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
1805
+ def: $ZodReadonlyDef<T>;
1806
+ optin: T["_zod"]["optin"];
1807
+ optout: T["_zod"]["optout"];
1808
+ isst: never;
1809
+ propValues: T["_zod"]["propValues"];
1810
+ values: T["_zod"]["values"];
1811
+ }
1812
+ interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
1813
+ _zod: $ZodReadonlyInternals<T>;
1814
+ }
1815
+ declare const $ZodReadonly: $constructor<$ZodReadonly>;
1816
+ interface $ZodTemplateLiteralDef extends $ZodTypeDef {
1817
+ type: "template_literal";
1818
+ parts: $ZodTemplateLiteralPart[];
1819
+ format?: string | undefined;
1820
+ }
1821
+ interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
1822
+ pattern: RegExp;
1823
+ def: $ZodTemplateLiteralDef;
1824
+ isst: $ZodIssueInvalidType;
1825
+ }
1826
+ interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
1827
+ _zod: $ZodTemplateLiteralInternals<Template>;
1828
+ }
1829
+ type LiteralPart = Exclude<Literal, symbol>;
1830
+ interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
1831
+ pattern: RegExp;
1832
+ }
1833
+ interface SchemaPart extends $ZodType {
1834
+ _zod: SchemaPartInternals;
1835
+ }
1836
+ type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
1837
+ declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
1838
+ type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
1839
+ type $ZodFunctionIn = $ZodFunctionArgs;
1840
+ type $ZodFunctionOut = $ZodType;
1841
+ type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
1842
+ type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
1843
+ type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
1844
+ type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
1845
+ interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
1846
+ type: "function";
1847
+ input: In;
1848
+ output: Out;
1849
+ }
1850
+ interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
1851
+ def: $ZodFunctionDef<Args, Returns>;
1852
+ isst: $ZodIssueInvalidType;
1853
+ }
1854
+ interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
1855
+ /** @deprecated */
1856
+ _def: $ZodFunctionDef<Args, Returns>;
1857
+ _input: $InferInnerFunctionType<Args, Returns>;
1858
+ _output: $InferOuterFunctionType<Args, Returns>;
1859
+ implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
1860
+ implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
1861
+ input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
1862
+ input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
1863
+ input(...args: any[]): $ZodFunction<any, Returns>;
1864
+ output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
1865
+ }
1866
+ declare const $ZodFunction: $constructor<$ZodFunction>;
1867
+ interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1868
+ type: "promise";
1869
+ innerType: T;
1870
+ }
1871
+ interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
1872
+ def: $ZodPromiseDef<T>;
1873
+ isst: never;
1874
+ }
1875
+ interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
1876
+ _zod: $ZodPromiseInternals<T>;
1877
+ }
1878
+ declare const $ZodPromise: $constructor<$ZodPromise>;
1879
+ interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1880
+ type: "lazy";
1881
+ getter: () => T;
1882
+ }
1883
+ interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
1884
+ def: $ZodLazyDef<T>;
1885
+ isst: never;
1886
+ /** Auto-cached way to retrieve the inner schema */
1887
+ innerType: T;
1888
+ pattern: T["_zod"]["pattern"];
1889
+ propValues: T["_zod"]["propValues"];
1890
+ optin: T["_zod"]["optin"];
1891
+ optout: T["_zod"]["optout"];
1892
+ }
1893
+ interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
1894
+ _zod: $ZodLazyInternals<T>;
1895
+ }
1896
+ declare const $ZodLazy: $constructor<$ZodLazy>;
1897
+ interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
1898
+ type: "custom";
1899
+ check: "custom";
1900
+ path?: PropertyKey[] | undefined;
1901
+ error?: $ZodErrorMap | undefined;
1902
+ params?: Record<string, any> | undefined;
1903
+ fn: (arg: O) => unknown;
1904
+ }
1905
+ interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
1906
+ def: $ZodCustomDef;
1907
+ issc: $ZodIssue;
1908
+ isst: never;
1909
+ bag: LoosePartial<{
1910
+ Class: typeof Class;
1911
+ }>;
1912
+ }
1913
+ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
1914
+ _zod: $ZodCustomInternals<O, I>;
1915
+ }
1916
+ declare const $ZodCustom: $constructor<$ZodCustom>;
1917
+ 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;
1918
+ //#endregion
1919
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.d.cts
1920
+ interface $ZodCheckDef {
1921
+ check: string;
1922
+ error?: $ZodErrorMap<never> | undefined;
1923
+ /** If true, no later checks will be executed if this check fails. Default `false`. */
1924
+ abort?: boolean | undefined;
1925
+ /** If provided, the check runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
1926
+ when?: ((payload: ParsePayload) => boolean) | undefined;
1927
+ }
1928
+ interface $ZodCheckInternals<T> {
1929
+ def: $ZodCheckDef;
1930
+ /** The set of issues this check might throw. */
1931
+ issc?: $ZodIssueBase;
1932
+ check(payload: ParsePayload<T>): MaybeAsync<void>;
1933
+ onattach: ((schema: $ZodType) => void)[];
1934
+ }
1935
+ interface $ZodCheck<in T = never> {
1936
+ _zod: $ZodCheckInternals<T>;
1937
+ }
1938
+ declare const $ZodCheck: $constructor<$ZodCheck<any>>;
1939
+ interface $ZodCheckLessThanDef extends $ZodCheckDef {
1940
+ check: "less_than";
1941
+ value: Numeric;
1942
+ inclusive: boolean;
1943
+ }
1944
+ interface $ZodCheckLessThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
1945
+ def: $ZodCheckLessThanDef;
1946
+ issc: $ZodIssueTooBig<T>;
1947
+ }
1948
+ interface $ZodCheckLessThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
1949
+ _zod: $ZodCheckLessThanInternals<T>;
1950
+ }
1951
+ declare const $ZodCheckLessThan: $constructor<$ZodCheckLessThan>;
1952
+ interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
1953
+ check: "greater_than";
1954
+ value: Numeric;
1955
+ inclusive: boolean;
1956
+ }
1957
+ interface $ZodCheckGreaterThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
1958
+ def: $ZodCheckGreaterThanDef;
1959
+ issc: $ZodIssueTooSmall<T>;
1960
+ }
1961
+ interface $ZodCheckGreaterThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
1962
+ _zod: $ZodCheckGreaterThanInternals<T>;
1963
+ }
1964
+ declare const $ZodCheckGreaterThan: $constructor<$ZodCheckGreaterThan>;
1965
+ interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {
1966
+ check: "multiple_of";
1967
+ value: T;
1968
+ }
1969
+ interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {
1970
+ def: $ZodCheckMultipleOfDef<T>;
1971
+ issc: $ZodIssueNotMultipleOf;
1972
+ }
1973
+ interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {
1974
+ _zod: $ZodCheckMultipleOfInternals<T>;
1975
+ }
1976
+ declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
1977
+ type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
1978
+ interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
1979
+ check: "number_format";
1980
+ format: $ZodNumberFormats;
1981
+ }
1982
+ interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
1983
+ def: $ZodCheckNumberFormatDef;
1984
+ issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
1985
+ }
1986
+ interface $ZodCheckNumberFormat extends $ZodCheck<number> {
1987
+ _zod: $ZodCheckNumberFormatInternals;
1988
+ }
1989
+ declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
1990
+ interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
1991
+ check: "max_length";
1992
+ maximum: number;
1993
+ }
1994
+ interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1995
+ def: $ZodCheckMaxLengthDef;
1996
+ issc: $ZodIssueTooBig<T>;
1997
+ }
1998
+ interface $ZodCheckMaxLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
1999
+ _zod: $ZodCheckMaxLengthInternals<T>;
2000
+ }
2001
+ declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
2002
+ interface $ZodCheckMinLengthDef extends $ZodCheckDef {
2003
+ check: "min_length";
2004
+ minimum: number;
2005
+ }
2006
+ interface $ZodCheckMinLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
2007
+ def: $ZodCheckMinLengthDef;
2008
+ issc: $ZodIssueTooSmall<T>;
2009
+ }
2010
+ interface $ZodCheckMinLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
2011
+ _zod: $ZodCheckMinLengthInternals<T>;
2012
+ }
2013
+ declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
2014
+ interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
2015
+ check: "length_equals";
2016
+ length: number;
2017
+ }
2018
+ interface $ZodCheckLengthEqualsInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
2019
+ def: $ZodCheckLengthEqualsDef;
2020
+ issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
2021
+ }
2022
+ interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodCheck<T> {
2023
+ _zod: $ZodCheckLengthEqualsInternals<T>;
2024
+ }
2025
+ declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
2026
+ 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";
2027
+ interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
2028
+ check: "string_format";
2029
+ format: Format;
2030
+ pattern?: RegExp | undefined;
2031
+ }
2032
+ interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
2033
+ def: $ZodCheckStringFormatDef;
2034
+ issc: $ZodIssueInvalidStringFormat;
2035
+ }
2036
+ interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
2037
+ format: "regex";
2038
+ pattern: RegExp;
2039
+ }
2040
+ interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
2041
+ def: $ZodCheckRegexDef;
2042
+ issc: $ZodIssueInvalidStringFormat;
2043
+ }
2044
+ interface $ZodCheckRegex extends $ZodCheck<string> {
2045
+ _zod: $ZodCheckRegexInternals;
2046
+ }
2047
+ declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
2048
+ interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
2049
+ interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
2050
+ def: $ZodCheckLowerCaseDef;
2051
+ issc: $ZodIssueInvalidStringFormat;
2052
+ }
2053
+ interface $ZodCheckLowerCase extends $ZodCheck<string> {
2054
+ _zod: $ZodCheckLowerCaseInternals;
2055
+ }
2056
+ declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
2057
+ interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
2058
+ interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
2059
+ def: $ZodCheckUpperCaseDef;
2060
+ issc: $ZodIssueInvalidStringFormat;
2061
+ }
2062
+ interface $ZodCheckUpperCase extends $ZodCheck<string> {
2063
+ _zod: $ZodCheckUpperCaseInternals;
2064
+ }
2065
+ declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
2066
+ interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
2067
+ includes: string;
2068
+ position?: number | undefined;
2069
+ }
2070
+ interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
2071
+ def: $ZodCheckIncludesDef;
2072
+ issc: $ZodIssueInvalidStringFormat;
2073
+ }
2074
+ interface $ZodCheckIncludes extends $ZodCheck<string> {
2075
+ _zod: $ZodCheckIncludesInternals;
2076
+ }
2077
+ declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
2078
+ interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
2079
+ prefix: string;
2080
+ }
2081
+ interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
2082
+ def: $ZodCheckStartsWithDef;
2083
+ issc: $ZodIssueInvalidStringFormat;
2084
+ }
2085
+ interface $ZodCheckStartsWith extends $ZodCheck<string> {
2086
+ _zod: $ZodCheckStartsWithInternals;
2087
+ }
2088
+ declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
2089
+ interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
2090
+ suffix: string;
2091
+ }
2092
+ interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
2093
+ def: $ZodCheckEndsWithDef;
2094
+ issc: $ZodIssueInvalidStringFormat;
2095
+ }
2096
+ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
2097
+ _zod: $ZodCheckEndsWithInternals;
2098
+ }
2099
+ declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
2100
+ //#endregion
2101
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.d.cts
2102
+ interface $ZodIssueBase {
2103
+ readonly code?: string;
2104
+ readonly input?: unknown;
2105
+ readonly path: PropertyKey[];
2106
+ readonly message: string;
2107
+ }
2108
+ type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {});
2109
+ interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
2110
+ readonly code: "invalid_type";
2111
+ readonly expected: $ZodInvalidTypeExpected;
2112
+ readonly input?: Input;
2113
+ }
2114
+ interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
2115
+ readonly code: "too_big";
2116
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
2117
+ readonly maximum: number | bigint;
2118
+ readonly inclusive?: boolean;
2119
+ readonly exact?: boolean;
2120
+ readonly input?: Input;
2121
+ }
2122
+ interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
2123
+ readonly code: "too_small";
2124
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
2125
+ readonly minimum: number | bigint;
2126
+ /** True if the allowable range includes the minimum */
2127
+ readonly inclusive?: boolean;
2128
+ /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
2129
+ readonly exact?: boolean;
2130
+ readonly input?: Input;
2131
+ }
2132
+ interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
2133
+ readonly code: "invalid_format";
2134
+ readonly format: $ZodStringFormats | (string & {});
2135
+ readonly pattern?: string;
2136
+ readonly input?: string;
2137
+ }
2138
+ interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
2139
+ readonly code: "not_multiple_of";
2140
+ readonly divisor: number;
2141
+ readonly input?: Input;
2142
+ }
2143
+ interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
2144
+ readonly code: "unrecognized_keys";
2145
+ readonly keys: string[];
2146
+ readonly input?: Record<string, unknown>;
2147
+ }
2148
+ interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
2149
+ readonly code: "invalid_union";
2150
+ readonly errors: $ZodIssue[][];
2151
+ readonly input?: unknown;
2152
+ readonly discriminator?: string | undefined;
2153
+ readonly options?: Primitive[];
2154
+ readonly inclusive?: true;
2155
+ }
2156
+ interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
2157
+ readonly code: "invalid_union";
2158
+ readonly errors: [];
2159
+ readonly input?: unknown;
2160
+ readonly discriminator?: string | undefined;
2161
+ readonly inclusive: false;
2162
+ }
2163
+ type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
2164
+ interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
2165
+ readonly code: "invalid_key";
2166
+ readonly origin: "map" | "record";
2167
+ readonly issues: $ZodIssue[];
2168
+ readonly input?: Input;
2169
+ }
2170
+ interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
2171
+ readonly code: "invalid_element";
2172
+ readonly origin: "map" | "set";
2173
+ readonly key: unknown;
2174
+ readonly issues: $ZodIssue[];
2175
+ readonly input?: Input;
2176
+ }
2177
+ interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
2178
+ readonly code: "invalid_value";
2179
+ readonly values: Primitive[];
2180
+ readonly input?: Input;
2181
+ }
2182
+ interface $ZodIssueCustom extends $ZodIssueBase {
2183
+ readonly code: "custom";
2184
+ readonly params?: Record<string, any> | undefined;
2185
+ readonly input?: unknown;
2186
+ }
2187
+ type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
2188
+ type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
2189
+ type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
2190
+ /** The input data */readonly input: unknown; /** The schema or check that originated this issue. */
2191
+ readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will continue executing checks/refinements after this issue. */
2192
+ readonly continue?: boolean | undefined;
2193
+ } & Record<string, unknown>> : never;
2194
+ type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
2195
+ interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
2196
+ (issue: $ZodRawIssue<T>): {
2197
+ message: string;
2198
+ } | string | undefined | null;
2199
+ }
2200
+ interface $ZodError<T = unknown> extends Error {
2201
+ type: T;
2202
+ issues: $ZodIssue[];
2203
+ _zod: {
2204
+ output: T;
2205
+ def: $ZodIssue[];
2206
+ };
2207
+ stack?: string;
2208
+ name: string;
2209
+ }
2210
+ declare const $ZodError: $constructor<$ZodError>;
2211
+ type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
2212
+ type _FlattenedError<T, U = string> = {
2213
+ formErrors: U[];
2214
+ fieldErrors: { [P in keyof T]?: U[] };
2215
+ };
2216
+ type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U> } : T extends any[] ? {
2217
+ [k: number]: $ZodFormattedError<T[number], U>;
2218
+ } : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U> }> : any;
2219
+ type $ZodFormattedError<T, U = string> = {
2220
+ _errors: U[];
2221
+ } & Flatten<_ZodFormattedError<T, U>>;
2222
+ //#endregion
2223
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.d.cts
2224
+ type ZodTrait = {
2225
+ _zod: {
2226
+ def: any;
2227
+ [k: string]: any;
2228
+ };
2229
+ };
2230
+ interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
2231
+ new (def: D): T;
2232
+ init(inst: T, def: D): asserts inst is T;
2233
+ }
2234
+ declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
2235
+ Parent?: typeof Class;
2236
+ }): $constructor<T, D>;
2237
+ declare const $brand: unique symbol;
2238
+ type $brand<T extends string | number | symbol = string | number | symbol> = {
2239
+ [$brand]: { [k in T]: true };
2240
+ };
2241
+ type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
2242
+ _zod: {
2243
+ input: input<T> & $brand<Brand>;
2244
+ output: output<T> & $brand<Brand>;
2245
+ };
2246
+ } : Dir extends "in" ? {
2247
+ _zod: {
2248
+ input: input<T> & $brand<Brand>;
2249
+ };
2250
+ } : {
2251
+ _zod: {
2252
+ output: output<T> & $brand<Brand>;
2253
+ };
2254
+ });
2255
+ type input<T> = T extends {
2256
+ _zod: {
2257
+ input: any;
2258
+ };
2259
+ } ? T["_zod"]["input"] : unknown;
2260
+ type output<T> = T extends {
2261
+ _zod: {
2262
+ output: any;
2263
+ };
2264
+ } ? T["_zod"]["output"] : unknown;
2265
+ //#endregion
2266
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.d.cts
2267
+ 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] ? {} : {
2268
+ error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
2269
+ message?: string | undefined;
2270
+ })>>>;
2271
+ type TypeParams<T extends $ZodType = $ZodType & {
2272
+ _isst: never;
2273
+ }, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
2274
+ type CheckParams<T extends $ZodCheck = $ZodCheck, // & { _issc: never },
2275
+ AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
2276
+ 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>;
2277
+ 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>;
2278
+ type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
2279
+ type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
2280
+ type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
2281
+ type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
2282
+ type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
2283
+ type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
2284
+ /**
2285
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
2286
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
2287
+ * See https://github.com/paralleldrive/cuid.
2288
+ */
2289
+ type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
2290
+ type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
2291
+ type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
2292
+ type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
2293
+ type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
2294
+ type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
2295
+ type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
2296
+ type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
2297
+ type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
2298
+ type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
2299
+ type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
2300
+ type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
2301
+ type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
2302
+ type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
2303
+ type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
2304
+ type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
2305
+ type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
2306
+ type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
2307
+ type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
2308
+ type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
2309
+ type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
2310
+ type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
2311
+ type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
2312
+ type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
2313
+ type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
2314
+ type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
2315
+ type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
2316
+ type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
2317
+ type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
2318
+ type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
2319
+ type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
2320
+ type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
2321
+ type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
2322
+ type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
2323
+ type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
2324
+ /** The schema or check that originated this issue. */readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
2325
+ readonly continue?: boolean | undefined;
2326
+ } & Record<string, unknown>> : never;
2327
+ interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
2328
+ addIssue(arg: string | $ZodSuperRefineIssue): void;
2329
+ }
2330
+ interface $ZodSuperRefineParams {
2331
+ /** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
2332
+ when?: ((payload: ParsePayload) => boolean) | undefined;
2333
+ }
2334
+ //#endregion
2335
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.d.cts
2336
+ /** An Error-like class used to store Zod validation issues. */
2337
+ interface ZodError<T = unknown> extends $ZodError<T> {
2338
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
2339
+ format(): $ZodFormattedError<T>;
2340
+ format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
2341
+ /** @deprecated Use the `z.treeifyError(err)` function instead. */
2342
+ flatten(): $ZodFlattenedError<T>;
2343
+ flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T, U>;
2344
+ /** @deprecated Push directly to `.issues` instead. */
2345
+ addIssue(issue: $ZodIssue): void;
2346
+ /** @deprecated Push directly to `.issues` instead. */
2347
+ addIssues(issues: $ZodIssue[]): void;
2348
+ /** @deprecated Check `err.issues.length === 0` instead. */
2349
+ isEmpty: boolean;
2350
+ }
2351
+ declare const ZodError: $constructor<ZodError>;
2352
+ //#endregion
2353
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.d.cts
2354
+ type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
2355
+ type ZodSafeParseSuccess<T> = {
2356
+ success: true;
2357
+ data: T;
2358
+ error?: never;
2359
+ };
2360
+ type ZodSafeParseError<T> = {
2361
+ success: false;
2362
+ data?: never;
2363
+ error: ZodError<T>;
2364
+ };
2365
+ //#endregion
2366
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.d.cts
2367
+ type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
2368
+ interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
2369
+ def: Internals["def"];
2370
+ type: Internals["def"]["type"];
2371
+ /** @deprecated Use `.def` instead. */
2372
+ _def: Internals["def"];
2373
+ /** @deprecated Use `z.output<typeof schema>` instead. */
2374
+ _output: Internals["output"];
2375
+ /** @deprecated Use `z.input<typeof schema>` instead. */
2376
+ _input: Internals["input"];
2377
+ "~standard": ZodStandardSchemaWithJSON<this>;
2378
+ /** Converts this schema to a JSON Schema representation. */
2379
+ toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
2380
+ check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
2381
+ with(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
2382
+ clone(def?: Internals["def"], params?: {
2383
+ parent: boolean;
2384
+ }): this;
2385
+ 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;
2386
+ brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
2387
+ parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
2388
+ safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
2389
+ parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
2390
+ safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
2391
+ spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
2392
+ encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
2393
+ decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
2394
+ encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
2395
+ decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
2396
+ safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
2397
+ safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
2398
+ safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
2399
+ safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
2400
+ 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;
2401
+ superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
2402
+ overwrite(fn: (x: output<this>) => output<this>): this;
2403
+ optional(): ZodOptional<this>;
2404
+ exactOptional(): ZodExactOptional<this>;
2405
+ nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
2406
+ nullable(): ZodNullable<this>;
2407
+ nullish(): ZodOptional<ZodNullable<this>>;
2408
+ default(def: NoUndefined<output<this>>): ZodDefault<this>;
2409
+ default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
2410
+ prefault(def: () => input<this>): ZodPrefault<this>;
2411
+ prefault(def: input<this>): ZodPrefault<this>;
2412
+ array(): ZodArray<this>;
2413
+ or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
2414
+ and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
2415
+ transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
2416
+ catch(def: output<this>): ZodCatch<this>;
2417
+ catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
2418
+ pipe<T extends $ZodType<any, output<this>>>(target: T | $ZodType<any, output<this>>): ZodPipe<this, T>;
2419
+ readonly(): ZodReadonly<this>;
2420
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
2421
+ describe(description: string): this;
2422
+ description?: string;
2423
+ /** Returns the metadata associated with this instance in `z.globalRegistry` */
2424
+ meta(): $replace<GlobalMeta, this> | undefined;
2425
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
2426
+ meta(data: $replace<GlobalMeta, this>): this;
2427
+ /** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
2428
+ *
2429
+ * ```ts
2430
+ * const schema = z.string().optional();
2431
+ * const isOptional = schema.safeParse(undefined).success; // true
2432
+ * ```
2433
+ */
2434
+ isOptional(): boolean;
2435
+ /**
2436
+ * @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
2437
+ *
2438
+ * ```ts
2439
+ * const schema = z.string().nullable();
2440
+ * const isNullable = schema.safeParse(null).success; // true
2441
+ * ```
2442
+ */
2443
+ isNullable(): boolean;
2444
+ apply<T>(fn: (schema: this) => T): T;
2445
+ }
2446
+ interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
2447
+ declare const ZodType: $constructor<ZodType>;
2448
+ interface _ZodString<T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T> {
2449
+ format: string | null;
2450
+ minLength: number | null;
2451
+ maxLength: number | null;
2452
+ regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
2453
+ includes(value: string, params?: string | $ZodCheckIncludesParams): this;
2454
+ startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
2455
+ endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
2456
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
2457
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
2458
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
2459
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
2460
+ lowercase(params?: string | $ZodCheckLowerCaseParams): this;
2461
+ uppercase(params?: string | $ZodCheckUpperCaseParams): this;
2462
+ trim(): this;
2463
+ normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
2464
+ toLowerCase(): this;
2465
+ toUpperCase(): this;
2466
+ slugify(): this;
2467
+ }
2468
+ /** @internal */
2469
+ declare const _ZodString: $constructor<_ZodString>;
2470
+ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
2471
+ /** @deprecated Use `z.email()` instead. */
2472
+ email(params?: string | $ZodCheckEmailParams): this;
2473
+ /** @deprecated Use `z.url()` instead. */
2474
+ url(params?: string | $ZodCheckURLParams): this;
2475
+ /** @deprecated Use `z.jwt()` instead. */
2476
+ jwt(params?: string | $ZodCheckJWTParams): this;
2477
+ /** @deprecated Use `z.emoji()` instead. */
2478
+ emoji(params?: string | $ZodCheckEmojiParams): this;
2479
+ /** @deprecated Use `z.guid()` instead. */
2480
+ guid(params?: string | $ZodCheckGUIDParams): this;
2481
+ /** @deprecated Use `z.uuid()` instead. */
2482
+ uuid(params?: string | $ZodCheckUUIDParams): this;
2483
+ /** @deprecated Use `z.uuid()` instead. */
2484
+ uuidv4(params?: string | $ZodCheckUUIDParams): this;
2485
+ /** @deprecated Use `z.uuid()` instead. */
2486
+ uuidv6(params?: string | $ZodCheckUUIDParams): this;
2487
+ /** @deprecated Use `z.uuid()` instead. */
2488
+ uuidv7(params?: string | $ZodCheckUUIDParams): this;
2489
+ /** @deprecated Use `z.nanoid()` instead. */
2490
+ nanoid(params?: string | $ZodCheckNanoIDParams): this;
2491
+ /** @deprecated Use `z.guid()` instead. */
2492
+ guid(params?: string | $ZodCheckGUIDParams): this;
2493
+ /**
2494
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
2495
+ * (timestamps embedded in the id). Use `z.cuid2()` instead.
2496
+ * See https://github.com/paralleldrive/cuid.
2497
+ */
2498
+ cuid(params?: string | $ZodCheckCUIDParams): this;
2499
+ /** @deprecated Use `z.cuid2()` instead. */
2500
+ cuid2(params?: string | $ZodCheckCUID2Params): this;
2501
+ /** @deprecated Use `z.ulid()` instead. */
2502
+ ulid(params?: string | $ZodCheckULIDParams): this;
2503
+ /** @deprecated Use `z.base64()` instead. */
2504
+ base64(params?: string | $ZodCheckBase64Params): this;
2505
+ /** @deprecated Use `z.base64url()` instead. */
2506
+ base64url(params?: string | $ZodCheckBase64URLParams): this;
2507
+ /** @deprecated Use `z.xid()` instead. */
2508
+ xid(params?: string | $ZodCheckXIDParams): this;
2509
+ /** @deprecated Use `z.ksuid()` instead. */
2510
+ ksuid(params?: string | $ZodCheckKSUIDParams): this;
2511
+ /** @deprecated Use `z.ipv4()` instead. */
2512
+ ipv4(params?: string | $ZodCheckIPv4Params): this;
2513
+ /** @deprecated Use `z.ipv6()` instead. */
2514
+ ipv6(params?: string | $ZodCheckIPv6Params): this;
2515
+ /** @deprecated Use `z.cidrv4()` instead. */
2516
+ cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
2517
+ /** @deprecated Use `z.cidrv6()` instead. */
2518
+ cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
2519
+ /** @deprecated Use `z.e164()` instead. */
2520
+ e164(params?: string | $ZodCheckE164Params): this;
2521
+ /** @deprecated Use `z.iso.datetime()` instead. */
2522
+ datetime(params?: string | $ZodCheckISODateTimeParams): this;
2523
+ /** @deprecated Use `z.iso.date()` instead. */
2524
+ date(params?: string | $ZodCheckISODateParams): this;
2525
+ /** @deprecated Use `z.iso.time()` instead. */
2526
+ time(params?: string | $ZodCheckISOTimeParams): this;
2527
+ /** @deprecated Use `z.iso.duration()` instead. */
2528
+ duration(params?: string | $ZodCheckISODurationParams): this;
2529
+ }
2530
+ declare const ZodString: $constructor<ZodString>;
2531
+ interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
2532
+ gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
2533
+ /** Identical to .min() */
2534
+ gte(value: number, params?: string | $ZodCheckGreaterThanParams): this;
2535
+ min(value: number, params?: string | $ZodCheckGreaterThanParams): this;
2536
+ lt(value: number, params?: string | $ZodCheckLessThanParams): this;
2537
+ /** Identical to .max() */
2538
+ lte(value: number, params?: string | $ZodCheckLessThanParams): this;
2539
+ max(value: number, params?: string | $ZodCheckLessThanParams): this;
2540
+ /** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
2541
+ int(params?: string | $ZodCheckNumberFormatParams): this;
2542
+ /** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
2543
+ safe(params?: string | $ZodCheckNumberFormatParams): this;
2544
+ positive(params?: string | $ZodCheckGreaterThanParams): this;
2545
+ nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
2546
+ negative(params?: string | $ZodCheckLessThanParams): this;
2547
+ nonpositive(params?: string | $ZodCheckLessThanParams): this;
2548
+ multipleOf(value: number, params?: string | $ZodCheckMultipleOfParams): this;
2549
+ /** @deprecated Use `.multipleOf()` instead. */
2550
+ step(value: number, params?: string | $ZodCheckMultipleOfParams): this;
2551
+ /** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
2552
+ finite(params?: unknown): this;
2553
+ minValue: number | null;
2554
+ maxValue: number | null;
2555
+ /** @deprecated Check the `format` property instead. */
2556
+ isInt: boolean;
2557
+ /** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
2558
+ isFinite: boolean;
2559
+ format: string | null;
2560
+ }
2561
+ interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
2562
+ declare const ZodNumber: $constructor<ZodNumber>;
2563
+ interface _ZodBoolean<T extends $ZodBooleanInternals = $ZodBooleanInternals> extends _ZodType<T> {}
2564
+ interface ZodBoolean extends _ZodBoolean<$ZodBooleanInternals<boolean>> {}
2565
+ declare const ZodBoolean: $constructor<ZodBoolean>;
2566
+ interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
2567
+ element: T;
2568
+ min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
2569
+ nonempty(params?: string | $ZodCheckMinLengthParams): this;
2570
+ max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
2571
+ length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
2572
+ unwrap(): T;
2573
+ "~standard": ZodStandardSchemaWithJSON<this>;
2574
+ }
2575
+ declare const ZodArray: $constructor<ZodArray>;
2576
+ type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K] };
2577
+ interface ZodObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
2578
+ "~standard": ZodStandardSchemaWithJSON<this>;
2579
+ shape: Shape;
2580
+ keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
2581
+ /** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
2582
+ catchall<T extends SomeType>(schema: T): ZodObject<Shape, $catchall<T>>;
2583
+ /** @deprecated Use `z.looseObject()` or `.loose()` instead. */
2584
+ passthrough(): ZodObject<Shape, $loose>;
2585
+ /** Consider `z.looseObject(A.shape)` instead */
2586
+ loose(): ZodObject<Shape, $loose>;
2587
+ /** Consider `z.strictObject(A.shape)` instead */
2588
+ strict(): ZodObject<Shape, $strict>;
2589
+ /** This is the default behavior. This method call is likely unnecessary. */
2590
+ strip(): ZodObject<Shape, $strip>;
2591
+ extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, Writeable<U>>, Config>;
2592
+ safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, Writeable<U>>, Config>;
2593
+ /**
2594
+ * @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
2595
+ */
2596
+ merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
2597
+ pick<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
2598
+ omit<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
2599
+ partial(): ZodObject<{ -readonly [k in keyof Shape]: ZodOptional<Shape[k]> }, Config>;
2600
+ partial<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k] }, Config>;
2601
+ required(): ZodObject<{ -readonly [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config>;
2602
+ required<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k] }, Config>;
2603
+ }
2604
+ declare const ZodObject: $constructor<ZodObject>;
2605
+ interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
2606
+ "~standard": ZodStandardSchemaWithJSON<this>;
2607
+ options: T;
2608
+ }
2609
+ declare const ZodUnion: $constructor<ZodUnion>;
2610
+ interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
2611
+ "~standard": ZodStandardSchemaWithJSON<this>;
2612
+ }
2613
+ declare const ZodIntersection: $constructor<ZodIntersection>;
2614
+ interface ZodEnum< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
2615
+ "~standard": ZodStandardSchemaWithJSON<this>;
2616
+ enum: T;
2617
+ options: Array<T[keyof T]>;
2618
+ extract<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T, U[number]>>>;
2619
+ exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T, U[number]>>>;
2620
+ }
2621
+ declare const ZodEnum: $constructor<ZodEnum>;
2622
+ interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
2623
+ "~standard": ZodStandardSchemaWithJSON<this>;
2624
+ }
2625
+ declare const ZodTransform: $constructor<ZodTransform>;
2626
+ interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
2627
+ "~standard": ZodStandardSchemaWithJSON<this>;
2628
+ unwrap(): T;
2629
+ }
2630
+ declare const ZodOptional: $constructor<ZodOptional>;
2631
+ interface ZodExactOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodExactOptionalInternals<T>>, $ZodExactOptional<T> {
2632
+ "~standard": ZodStandardSchemaWithJSON<this>;
2633
+ unwrap(): T;
2634
+ }
2635
+ declare const ZodExactOptional: $constructor<ZodExactOptional>;
2636
+ interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
2637
+ "~standard": ZodStandardSchemaWithJSON<this>;
2638
+ unwrap(): T;
2639
+ }
2640
+ declare const ZodNullable: $constructor<ZodNullable>;
2641
+ interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
2642
+ "~standard": ZodStandardSchemaWithJSON<this>;
2643
+ unwrap(): T;
2644
+ /** @deprecated Use `.unwrap()` instead. */
2645
+ removeDefault(): T;
2646
+ }
2647
+ declare const ZodDefault: $constructor<ZodDefault>;
2648
+ interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
2649
+ "~standard": ZodStandardSchemaWithJSON<this>;
2650
+ unwrap(): T;
2651
+ }
2652
+ declare const ZodPrefault: $constructor<ZodPrefault>;
2653
+ interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
2654
+ "~standard": ZodStandardSchemaWithJSON<this>;
2655
+ unwrap(): T;
2656
+ }
2657
+ declare const ZodNonOptional: $constructor<ZodNonOptional>;
2658
+ interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
2659
+ "~standard": ZodStandardSchemaWithJSON<this>;
2660
+ unwrap(): T;
2661
+ /** @deprecated Use `.unwrap()` instead. */
2662
+ removeCatch(): T;
2663
+ }
2664
+ declare const ZodCatch: $constructor<ZodCatch>;
2665
+ interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
2666
+ "~standard": ZodStandardSchemaWithJSON<this>;
2667
+ in: A;
2668
+ out: B;
2669
+ }
2670
+ declare const ZodPipe: $constructor<ZodPipe>;
2671
+ interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
2672
+ "~standard": ZodStandardSchemaWithJSON<this>;
2673
+ unwrap(): T;
2674
+ }
2675
+ declare const ZodReadonly: $constructor<ZodReadonly>;
2676
+ //#endregion
2677
+ //#region src/models/exec/CapabilityCache.d.ts
2678
+ interface CapabilityCache {
2679
+ readonly key: string;
2680
+ readonly supported: boolean;
2681
+ }
2682
+ declare const capabilityCacheSchema: ZodObject<{
2683
+ key: ZodString;
2684
+ supported: ZodBoolean;
2685
+ }>;
2686
+ //#endregion
2687
+ //#region src/models/exec/NormalizationRule.d.ts
2688
+ interface NormalizationRule {
2689
+ pattern: RegExp;
2690
+ placeholder: string;
2691
+ }
2692
+ //#endregion
2693
+ //#region src/models/exec/DifferentialCase.d.ts
2694
+ interface DifferentialCase {
2695
+ command: readonly string[] | string;
2696
+ name: string;
2697
+ rules?: readonly NormalizationRule[];
2698
+ }
2699
+ //#endregion
2700
+ //#region src/models/exec/OverlayLayers.d.ts
2701
+ interface OverlayLayers {
2702
+ lowerDirs?: readonly string[];
2703
+ upperDir?: string;
2704
+ workDir?: string;
2705
+ }
2706
+ //#endregion
1
2707
  //#region src/models/exec/ExecOptions.d.ts
2
2708
  interface ExecOptions {
2709
+ bindDirs?: readonly string[];
3
2710
  cwd: string;
4
- network?: boolean;
5
- overlayDirs?: readonly string[];
2711
+ env?: Readonly<Record<string, string>>;
2712
+ isNetworkEnabled?: boolean;
2713
+ overlayLayers?: OverlayLayers;
6
2714
  stdio: ExecStdio;
2715
+ tee?: boolean;
7
2716
  }
8
2717
  type ExecStdio = "inherit" | "pipe";
9
2718
  //#endregion
@@ -17,7 +2726,7 @@ interface ExecResult {
17
2726
  //#region src/models/exec/ExecBackend.d.ts
18
2727
  interface ExecBackend {
19
2728
  exec: (command: readonly string[] | string, options: ExecOptions) => Promise<ExecResult>;
20
- readonly name: string;
2729
+ readonly name: BackendType;
21
2730
  }
22
2731
  //#endregion
23
2732
  //#region src/models/exec/ExitSignalError.d.ts
@@ -26,12 +2735,99 @@ declare class ExitSignalError extends Error {
26
2735
  constructor(code: number);
27
2736
  }
28
2737
  //#endregion
2738
+ //#region src/models/exec/FlushOp.d.ts
2739
+ declare enum FlushOpType {
2740
+ Copy = "copy",
2741
+ Delete = "delete"
2742
+ }
2743
+ interface FlushOp {
2744
+ readonly relativePath: string;
2745
+ readonly type: FlushOpType;
2746
+ }
2747
+ //#endregion
29
2748
  //#region src/models/exec/NodeInvocation.d.ts
30
2749
  interface NodeInvocation {
31
2750
  code: string;
32
2751
  file: string;
33
2752
  }
34
2753
  //#endregion
2754
+ //#region src/models/exec/OverlayEntryKind.d.ts
2755
+ declare enum OverlayEntryKind {
2756
+ OpaqueDir = "opaqueDir",
2757
+ Regular = "regular",
2758
+ Whiteout = "whiteout"
2759
+ }
2760
+ //#endregion
2761
+ //#region src/models/exec/OverlayEntry.d.ts
2762
+ interface OverlayEntry {
2763
+ readonly kind: OverlayEntryKind;
2764
+ readonly relativePath: string;
2765
+ }
2766
+ //#endregion
2767
+ //#region src/models/exec/OverlayEntryStats.d.ts
2768
+ interface OverlayEntryStats {
2769
+ readonly isCharacterDevice: boolean;
2770
+ readonly isDirectory: boolean;
2771
+ readonly rdev: number;
2772
+ }
2773
+ //#endregion
2774
+ //#region src/models/exec/OverlayManifestEntry.d.ts
2775
+ interface OverlayManifestEntry {
2776
+ readonly isCharacterDevice: boolean;
2777
+ readonly isDirectory: boolean;
2778
+ readonly isOpaque: boolean;
2779
+ readonly isSnapshotLowerPath: boolean;
2780
+ readonly rdev: number;
2781
+ readonly relativePath: string;
2782
+ }
2783
+ declare const overlayManifestEntrySchema: ZodObject<{
2784
+ isCharacterDevice: ZodBoolean;
2785
+ isDirectory: ZodBoolean;
2786
+ isOpaque: ZodBoolean;
2787
+ isSnapshotLowerPath: ZodBoolean;
2788
+ rdev: ZodNumber;
2789
+ relativePath: ZodString;
2790
+ }>;
2791
+ //#endregion
2792
+ //#region src/models/exec/SnapshotLocation.d.ts
2793
+ interface SnapshotLocation {
2794
+ readonly dir: string;
2795
+ readonly exists: boolean;
2796
+ readonly hash: string;
2797
+ readonly upperDir: string;
2798
+ }
2799
+ //#endregion
2800
+ //#region src/models/exec/SnapshotCapture.d.ts
2801
+ interface SnapshotCapture {
2802
+ location: SnapshotLocation;
2803
+ result: ExecResult;
2804
+ }
2805
+ //#endregion
2806
+ //#region src/models/exec/TaskCacheEntry.d.ts
2807
+ interface TaskCacheEntry {
2808
+ readonly exitCode: number;
2809
+ readonly plan: readonly FlushOp[];
2810
+ readonly stderr: string;
2811
+ readonly stdout: string;
2812
+ }
2813
+ declare const taskCacheEntrySchema: ZodObject<{
2814
+ exitCode: ZodNumber;
2815
+ plan: ZodArray<ZodObject<{
2816
+ relativePath: ZodString;
2817
+ type: ZodEnum<typeof FlushOpType>;
2818
+ }>>;
2819
+ stderr: ZodString;
2820
+ stdout: ZodString;
2821
+ }>;
2822
+ //#endregion
2823
+ //#region src/models/exec/TaskCacheLocation.d.ts
2824
+ interface TaskCacheLocation {
2825
+ readonly dir: string;
2826
+ readonly exists: boolean;
2827
+ readonly metaFile: string;
2828
+ readonly payloadDir: string;
2829
+ }
2830
+ //#endregion
35
2831
  //#region src/models/source/SourceType.d.ts
36
2832
  declare enum SourceType {
37
2833
  Dir = "dir",
@@ -81,71 +2877,151 @@ interface FsProvider {
81
2877
  //#endregion
82
2878
  //#region src/models/vfs/FsProviderOptions.d.ts
83
2879
  interface FsProviderOptions {
84
- overlay: boolean;
2880
+ isOverlayEnabled: boolean;
85
2881
  }
86
2882
  //#endregion
87
- //#region src/models/virrun/BackendType.d.ts
88
- declare enum BackendType {
89
- Auto = "auto",
90
- Native = "native",
91
- Os = "os",
92
- Vfs = "vfs"
2883
+ //#region src/models/virrun/CommandType.d.ts
2884
+ declare enum CommandType {
2885
+ Cache = "cache",
2886
+ Clean = "clean",
2887
+ Doctor = "doctor",
2888
+ Exec = "exec",
2889
+ Init = "init",
2890
+ Ls = "ls",
2891
+ Run = "run",
2892
+ Snapshot = "snapshot"
2893
+ }
2894
+ //#endregion
2895
+ //#region src/models/virrun/ExecutionMode.d.ts
2896
+ declare enum ExecutionMode {
2897
+ Exec = "exec",
2898
+ Fork = "fork",
2899
+ Persist = "persist"
93
2900
  }
94
2901
  //#endregion
95
2902
  //#region src/models/virrun/Virrun.d.ts
96
2903
  interface Virrun {
97
- readonly backend: string;
2904
+ readonly backend: BackendType;
98
2905
  dispose: () => Promise<void>;
99
2906
  exec: (command: readonly string[] | string, stdio?: ExecStdio) => Promise<ExecResult>;
2907
+ fork: (command: readonly string[] | string, stdio?: ExecStdio) => Promise<ExecResult>;
2908
+ persist: (command: readonly string[] | string, stdio?: ExecStdio) => Promise<ExecResult>;
100
2909
  }
101
2910
  //#endregion
2911
+ //#region src/models/virrun/VirrunConfiguration.d.ts
2912
+ interface VirrunConfiguration {
2913
+ readonly backend: BackendType;
2914
+ }
2915
+ declare const virrunConfigurationSchema: ZodObject<{
2916
+ $schema: ZodOptional<ZodString>;
2917
+ backend: ZodDefault<ZodEnum<typeof BackendType>>;
2918
+ }, $strict>;
2919
+ //#endregion
102
2920
  //#region src/models/virrun/VirrunOptions.d.ts
103
2921
  interface VirrunOptions {
104
2922
  backend: BackendType;
105
2923
  source: Source;
106
2924
  }
107
2925
  //#endregion
108
- //#region src/services/cli/parseCliCommand.d.ts
109
- declare const parseCliCommand: (argv: readonly string[]) => string[];
2926
+ //#region src/services/cli/formatCacheListing.d.ts
2927
+ declare const formatCacheListing: ({
2928
+ isRepoStorePresent,
2929
+ repoStorePath,
2930
+ snapshotHashes,
2931
+ snapshotsPath,
2932
+ taskCount,
2933
+ tasksPath
2934
+ }: {
2935
+ isRepoStorePresent: boolean;
2936
+ repoStorePath: string;
2937
+ snapshotHashes: readonly string[];
2938
+ snapshotsPath: string;
2939
+ taskCount: number;
2940
+ tasksPath: string;
2941
+ }) => string;
110
2942
  //#endregion
111
- //#region src/services/exec/buildBwrapArgs.d.ts
112
- declare const buildBwrapArgs: (command: readonly string[] | string, cwd: string, {
113
- network,
114
- overlayDirs
115
- }?: Pick<ExecOptions, "network" | "overlayDirs">) => string[];
2943
+ //#region src/services/cli/formatDoctorReport.d.ts
2944
+ declare const formatDoctorReport: ({
2945
+ checks,
2946
+ platform
2947
+ }: {
2948
+ checks: readonly DiagnosticCheck[];
2949
+ platform: string;
2950
+ }) => string;
116
2951
  //#endregion
117
- //#region src/services/exec/createNativeBackend.d.ts
118
- declare const createNativeBackend: () => ExecBackend;
2952
+ //#region src/services/cli/formatVirrunBanner.d.ts
2953
+ declare const formatVirrunBanner: ({
2954
+ backend,
2955
+ command,
2956
+ nodeVersion
2957
+ }: {
2958
+ backend: BackendType;
2959
+ command: readonly string[];
2960
+ nodeVersion: string;
2961
+ }) => string;
119
2962
  //#endregion
120
- //#region src/services/exec/createOsBackend.d.ts
121
- declare const createOsBackend: () => ExecBackend;
2963
+ //#region src/services/cli/formatVirrunCacheHit.d.ts
2964
+ declare const formatVirrunCacheHit: (command: readonly string[] | string) => string;
122
2965
  //#endregion
123
- //#region src/services/exec/createVfsBackend.d.ts
124
- declare const createVfsBackend: () => ExecBackend;
2966
+ //#region src/services/cli/formatVirrunProvisioning.d.ts
2967
+ declare const formatVirrunProvisioning: ({
2968
+ exists,
2969
+ hash
2970
+ }: {
2971
+ exists: boolean;
2972
+ hash: string;
2973
+ }) => string;
125
2974
  //#endregion
126
- //#region src/services/exec/isOsBackendSupported.d.ts
127
- declare const isOsBackendSupported: () => boolean;
2975
+ //#region src/services/cli/formatVirrunResult.d.ts
2976
+ declare const formatVirrunResult: ({
2977
+ command,
2978
+ durationMs,
2979
+ exitCode
2980
+ }: {
2981
+ command: readonly string[];
2982
+ durationMs: number;
2983
+ exitCode: number;
2984
+ }) => string;
128
2985
  //#endregion
129
- //#region src/services/exec/parseBwrapExitCode.d.ts
130
- declare const parseBwrapExitCode: (status: string) => number | undefined;
2986
+ //#region src/services/cli/getDoctorExitCode.d.ts
2987
+ declare const getDoctorExitCode: (checks: readonly DiagnosticCheck[]) => number;
131
2988
  //#endregion
132
- //#region src/services/exec/parseNodeInvocation.d.ts
133
- declare const parseNodeInvocation: (command: readonly string[] | string) => NodeInvocation | undefined;
2989
+ //#region src/services/cli/isVersionAtLeast.d.ts
2990
+ declare const isVersionAtLeast: (version: string, minimum: string) => boolean;
134
2991
  //#endregion
135
- //#region src/services/exec/runNodeInProcess.d.ts
136
- declare const runNodeInProcess: ({
137
- code,
138
- file
139
- }: NodeInvocation, {
140
- cwd,
141
- stdio
142
- }: ExecOptions) => ExecResult | undefined;
2992
+ //#region src/services/cli/probeOsBackendChecks.d.ts
2993
+ declare const probeOsBackendChecks: () => DiagnosticCheck[];
143
2994
  //#endregion
144
- //#region src/services/exec/toExitCode.d.ts
145
- declare const toExitCode: (code: null | number, signal: NodeJS.Signals | null) => number;
2995
+ //#region src/services/cli/runDoctor.d.ts
2996
+ declare const runDoctor: () => number;
146
2997
  //#endregion
147
- //#region src/services/exec/tokenizeShellCommand.d.ts
148
- declare const tokenizeShellCommand: (input: string) => string[] | undefined;
2998
+ //#region src/services/cli/runPassthrough.d.ts
2999
+ declare const runPassthrough: <T extends ArgsDef>(command: readonly string[], cmd: CommandDef<T>, mode: ExecutionMode) => Promise<void>;
3000
+ //#endregion
3001
+ //#region src/services/cli/runVirrunCommand.d.ts
3002
+ declare const runVirrunCommand: (command: readonly string[], {
3003
+ mode
3004
+ }: {
3005
+ mode: ExecutionMode;
3006
+ }) => Promise<number>;
3007
+ //#endregion
3008
+ //#region src/services/cli/warmSnapshot.d.ts
3009
+ declare const warmSnapshot: () => Promise<number>;
3010
+ //#endregion
3011
+ //#region src/services/configuration/buildVirrunConfigurationContent.d.ts
3012
+ declare const buildVirrunConfigurationContent: (backend: BackendType) => string;
3013
+ //#endregion
3014
+ //#region src/services/configuration/isVirrunEnabled.d.ts
3015
+ declare const isVirrunEnabled: (env: NodeJS.ProcessEnv) => boolean;
3016
+ //#endregion
3017
+ //#region src/services/configuration/parseVirrunConfiguration.d.ts
3018
+ declare const parseVirrunConfiguration: (content: string) => VirrunConfiguration;
3019
+ //#endregion
3020
+ //#region src/services/configuration/resolveBackend.d.ts
3021
+ declare const resolveBackend: (configuration: undefined | VirrunConfiguration, env?: NodeJS.ProcessEnv) => BackendType;
3022
+ //#endregion
3023
+ //#region src/services/configuration/resolveVirrunConfiguration.d.ts
3024
+ declare const resolveVirrunConfiguration: (cwd?: string) => undefined | VirrunConfiguration;
149
3025
  //#endregion
150
3026
  //#region src/services/source/loadDirSource.d.ts
151
3027
  declare const loadDirSource: (source: DirSource) => Promise<LoadedSource>;
@@ -161,10 +3037,296 @@ declare const loadSource: (source: Source) => Promise<LoadedSource>;
161
3037
  //#endregion
162
3038
  //#region src/services/vfs/createPlatformaticFsProvider.d.ts
163
3039
  declare const createPlatformaticFsProvider: ({
164
- overlay
3040
+ isOverlayEnabled
165
3041
  }?: Partial<FsProviderOptions>) => FsProvider;
166
3042
  //#endregion
167
3043
  //#region src/services/virrun/createVirrun.d.ts
168
- declare const createVirrun: (options?: Partial<VirrunOptions>) => Promise<Virrun>;
3044
+ declare const createVirrun: ({
3045
+ backend,
3046
+ source
3047
+ }?: Partial<VirrunOptions>) => Promise<Virrun>;
3048
+ //#endregion
3049
+ //#region src/services/cli/commands/cacheCleanCommand.d.ts
3050
+ declare const cacheCleanCommand: CommandDef<CleanArgs>;
3051
+ //#endregion
3052
+ //#region src/services/cli/commands/cacheCommand.d.ts
3053
+ declare const cacheCommand: CommandDef;
3054
+ //#endregion
3055
+ //#region src/services/cli/commands/cacheLsCommand.d.ts
3056
+ declare const cacheLsCommand: CommandDef;
3057
+ //#endregion
3058
+ //#region src/services/cli/commands/doctorCommand.d.ts
3059
+ declare const doctorCommand: CommandDef;
3060
+ //#endregion
3061
+ //#region src/services/cli/commands/execCommand.d.ts
3062
+ declare const execCommand: CommandDef;
3063
+ //#endregion
3064
+ //#region src/services/cli/commands/initCommand.d.ts
3065
+ declare const initCommand: CommandDef<InitArgs>;
3066
+ //#endregion
3067
+ //#region src/services/cli/commands/mainCommand.d.ts
3068
+ declare const mainCommand: CommandDef;
3069
+ //#endregion
3070
+ //#region src/services/cli/commands/runCommand.d.ts
3071
+ declare const runCommand: CommandDef<RunArgs>;
3072
+ //#endregion
3073
+ //#region src/services/cli/commands/snapshotCommand.d.ts
3074
+ declare const snapshotCommand: CommandDef;
3075
+ //#endregion
3076
+ //#region src/services/exec/bwrap/buildBwrapArgs.d.ts
3077
+ declare const buildBwrapArgs: (command: readonly string[] | string, cwd: string, {
3078
+ bindDirs,
3079
+ isNetworkEnabled
3080
+ }?: Pick<ExecOptions, "bindDirs" | "isNetworkEnabled">, {
3081
+ lowerDirs,
3082
+ upperDir,
3083
+ workDir
3084
+ }?: OverlayLayers) => string[];
3085
+ //#endregion
3086
+ //#region src/services/exec/bwrap/constants.d.ts
3087
+ declare const WSL_BWRAP_STATUS_BEGIN = "\n__VIRRUN_BWRAP_STATUS_BEGIN__\n";
3088
+ declare const WSL_BWRAP_STATUS_END = "\n__VIRRUN_BWRAP_STATUS_END__\n";
3089
+ //#endregion
3090
+ //#region src/services/exec/bwrap/createBwrapBackend.d.ts
3091
+ declare const createBwrapBackend: (createBwrapArgs: (command: readonly string[] | string, cwd: string, options: Pick<ExecOptions, "bindDirs" | "isNetworkEnabled" | "overlayLayers">) => string[], createBwrapCommand: (bwrapArgs: readonly string[], options: ExecOptions) => BwrapCommand, errorName: string) => ExecBackend;
3092
+ //#endregion
3093
+ //#region src/services/exec/bwrap/createLinuxOsBackend.d.ts
3094
+ declare const createLinuxOsBackend: (errorName: string) => ExecBackend;
3095
+ //#endregion
3096
+ //#region src/services/exec/bwrap/createStderrLiveWriter.d.ts
3097
+ declare const createStderrLiveWriter: () => ((stderr: string) => void);
3098
+ //#endregion
3099
+ //#region src/services/exec/bwrap/parseBwrapExitCode.d.ts
3100
+ declare const parseBwrapExitCode: (status: string) => number | undefined;
3101
+ //#endregion
3102
+ //#region src/services/exec/bwrap/parseBwrapStderrStatus.d.ts
3103
+ declare const parseBwrapStderrStatus: (stderr: string) => {
3104
+ status: string;
3105
+ stderr: string;
3106
+ };
3107
+ //#endregion
3108
+ //#region src/services/exec/cache/computeSourceTreeHash.d.ts
3109
+ declare const computeSourceTreeHash: (cwd: string) => null | string;
3110
+ //#endregion
3111
+ //#region src/services/exec/cache/computeTaskCacheKey.d.ts
3112
+ declare const computeTaskCacheKey: (command: readonly string[] | string, cwd: string) => null | string;
3113
+ //#endregion
3114
+ //#region src/services/exec/cache/constants.d.ts
3115
+ declare const VIRRUN_TASKS_DIRECTORY_NAME = "tasks";
3116
+ declare const TASK_CACHE_META_FILENAME = "meta.json";
3117
+ declare const TASK_CACHE_PAYLOAD_DIRECTORY_NAME = "upper";
3118
+ declare const SOURCE_TREE_HASH_MAX_BUFFER: number;
3119
+ //#endregion
3120
+ //#region src/services/exec/cache/isTaskCacheEnabled.d.ts
3121
+ declare const isTaskCacheEnabled: () => boolean;
3122
+ //#endregion
3123
+ //#region src/services/exec/cache/parseTaskCacheEntry.d.ts
3124
+ declare const parseTaskCacheEntry: (meta: string) => TaskCacheEntry;
3125
+ //#endregion
3126
+ //#region src/services/exec/cache/persistWithCache.d.ts
3127
+ declare const persistWithCache: (backend: ExecBackend, command: readonly string[] | string, options: ExecOptions) => Promise<ExecResult>;
3128
+ //#endregion
3129
+ //#region src/services/exec/cache/recordTaskCache.d.ts
3130
+ declare const recordTaskCache: (key: string, upperDir: string, plan: readonly FlushOp[], result: ExecResult) => void;
3131
+ //#endregion
3132
+ //#region src/services/exec/cache/replayTaskCache.d.ts
3133
+ declare const replayTaskCache: (key: string, hostDir: string) => ExecResult;
3134
+ //#endregion
3135
+ //#region src/services/exec/cache/resolveTaskCacheLocation.d.ts
3136
+ declare const resolveTaskCacheLocation: (key: string) => TaskCacheLocation;
3137
+ //#endregion
3138
+ //#region src/services/exec/differential/normalizeExecResult.d.ts
3139
+ declare const normalizeExecResult: (result: ExecResult, rules: readonly NormalizationRule[]) => ExecResult;
3140
+ //#endregion
3141
+ //#region src/services/exec/native/createNativeBackend.d.ts
3142
+ declare const createNativeBackend: () => ExecBackend;
3143
+ //#endregion
3144
+ //#region src/services/exec/os/createOsBackend.d.ts
3145
+ declare const createOsBackend: () => ExecBackend;
3146
+ //#endregion
3147
+ //#region src/services/exec/os/createOsExecOptions.d.ts
3148
+ declare const createOsExecOptions: (cwd: string, stdio: ExecStdio) => ExecOptions;
3149
+ //#endregion
3150
+ //#region src/services/exec/os/createOsInstallOptions.d.ts
3151
+ declare const createOsInstallOptions: (cwd: string, stdio: ExecStdio) => ExecOptions;
3152
+ //#endregion
3153
+ //#region src/services/exec/os/getCapabilityCacheKey.d.ts
3154
+ declare const getCapabilityCacheKey: () => string;
3155
+ //#endregion
3156
+ //#region src/services/exec/os/getOsCacheRoot.d.ts
3157
+ declare const getOsCacheRoot: (cwd: string) => string;
3158
+ //#endregion
3159
+ //#region src/services/exec/os/isOsBackendSupported.d.ts
3160
+ declare const isOsBackendSupported: () => boolean;
3161
+ //#endregion
3162
+ //#region src/services/exec/os/readCapabilityCache.d.ts
3163
+ declare const readCapabilityCache: (key: string) => boolean | undefined;
3164
+ //#endregion
3165
+ //#region src/services/exec/os/writeCapabilityCache.d.ts
3166
+ declare const writeCapabilityCache: (cache: CapabilityCache) => void;
3167
+ //#endregion
3168
+ //#region src/services/exec/snapshot/applyFlushPlan.d.ts
3169
+ declare const applyFlushPlan: (sourceDir: string, destinationDir: string, plan: readonly FlushOp[]) => void;
3170
+ //#endregion
3171
+ //#region src/services/exec/snapshot/buildFlushPlan.d.ts
3172
+ declare const buildFlushPlan: (entries: readonly OverlayEntry[], isSnapshotLowerPath: (relativePath: string) => boolean) => FlushOp[];
3173
+ //#endregion
3174
+ //#region src/services/exec/snapshot/buildHostFlushPlan.d.ts
3175
+ declare const buildHostFlushPlan: (upperDir: string, snapshotUpperDir: string) => FlushOp[];
3176
+ //#endregion
3177
+ //#region src/services/exec/snapshot/computeLockfileHash.d.ts
3178
+ declare const computeLockfileHash: (cwd: string) => string;
3179
+ //#endregion
3180
+ //#region src/services/exec/snapshot/constants.d.ts
3181
+ declare const VIRRUN_SNAPSHOTS_DIRECTORY_NAME = "snapshots";
3182
+ declare const VIRRUN_SNAPSHOT_UPPER_DIRECTORY_NAME = "upper";
3183
+ declare const VIRRUN_SNAPSHOT_WORK_DIRECTORY_NAME = "work";
3184
+ declare const WINDOWS_VIRTUAL_STORE_DIR_MAX_LENGTH = 60;
3185
+ declare const SETUP_COMMAND_WIN32: string;
3186
+ declare const SETUP_COMMAND_LINUX = "pnpm install --frozen-lockfile";
3187
+ declare const OVERLAY_PROBE_SCRIPT = "\nimport json, os, stat, sys\nup = sys.argv[1]\nsnapshot = sys.argv[2] if len(sys.argv) > 2 else \"\"\nentries = []\nfor root, _dirs, _files in os.walk(up):\n for name in _dirs + _files:\n path = os.path.join(root, name)\n rel = os.path.relpath(path, up).replace(os.sep, \"/\")\n st = os.lstat(path)\n is_dir = stat.S_ISDIR(st.st_mode)\n is_opaque = False\n if is_dir:\n try:\n is_opaque = os.getxattr(path, \"user.overlay.opaque\", follow_symlinks=False) == b\"y\"\n except OSError:\n is_opaque = False\n is_lower = bool(snapshot) and os.path.lexists(os.path.join(snapshot, *rel.split(\"/\")))\n entries.append({\n \"isCharacterDevice\": stat.S_ISCHR(st.st_mode),\n \"isDirectory\": is_dir,\n \"isOpaque\": is_opaque,\n \"isSnapshotLowerPath\": is_lower,\n \"rdev\": st.st_rdev,\n \"relativePath\": rel,\n })\njson.dump(entries, sys.stdout)\n";
3188
+ declare const OVERLAY_APPLY_SCRIPT = "\nimport json, os, shutil, sys\nup, host = sys.argv[1], sys.argv[2]\nfor op in json.load(sys.stdin):\n dest = os.path.join(host, *op[\"relativePath\"].split(\"/\"))\n if op[\"type\"] == \"delete\":\n if os.path.islink(dest) or os.path.isfile(dest):\n os.remove(dest)\n elif os.path.isdir(dest):\n shutil.rmtree(dest)\n continue\n src = os.path.join(up, *op[\"relativePath\"].split(\"/\"))\n os.makedirs(os.path.dirname(dest), exist_ok=True)\n # A pre-existing symlink at dest must go first: os.path.isdir/isfile follow links, so a dir/file copy onto a\n # Host symlink would otherwise write *through* it and escape hostDir. After this every isdir(dest) below is honest.\n if os.path.islink(dest):\n os.remove(dest)\n if os.path.islink(src):\n os.symlink(os.readlink(src), dest)\n elif os.path.isdir(src):\n if os.path.lexists(dest) and not os.path.isdir(dest):\n os.remove(dest)\n os.makedirs(dest, exist_ok=True)\n shutil.copystat(src, dest)\n else:\n if os.path.isdir(dest):\n shutil.rmtree(dest)\n shutil.copy2(src, dest)\n";
3189
+ //#endregion
3190
+ //#region src/services/exec/snapshot/createSnapshot.d.ts
3191
+ declare const createSnapshot: (backend: ExecBackend, command: readonly string[] | string, options: ExecOptions) => Promise<SnapshotCapture>;
3192
+ //#endregion
3193
+ //#region src/services/exec/snapshot/flushUpperToHost.d.ts
3194
+ declare const flushUpperToHost: (upperDir: string, hostDir: string, snapshotUpperDir: string) => void;
3195
+ //#endregion
3196
+ //#region src/services/exec/snapshot/forkSnapshot.d.ts
3197
+ declare const forkSnapshot: (backend: ExecBackend, command: readonly string[] | string, options: ExecOptions) => Promise<ExecResult>;
3198
+ //#endregion
3199
+ //#region src/services/exec/snapshot/isUnderSnapshotLower.d.ts
3200
+ declare const isUnderSnapshotLower: (relativePath: string, snapshotLowerPaths: ReadonlySet<string>) => boolean;
3201
+ //#endregion
3202
+ //#region src/services/exec/snapshot/parseOverlayEntryKind.d.ts
3203
+ declare const parseOverlayEntryKind: (stats: OverlayEntryStats, isOpaque: boolean) => OverlayEntryKind;
3204
+ //#endregion
3205
+ //#region src/services/exec/snapshot/parseOverlayManifest.d.ts
3206
+ declare const parseOverlayManifest: (manifest: string) => OverlayManifestEntry[];
3207
+ //#endregion
3208
+ //#region src/services/exec/snapshot/persistRun.d.ts
3209
+ declare const persistRun: (backend: ExecBackend, command: readonly string[] | string, options: ExecOptions, onPersist?: (upperDir: string, plan: readonly FlushOp[], result: ExecResult) => void) => Promise<ExecResult>;
3210
+ //#endregion
3211
+ //#region src/services/exec/snapshot/pruneSnapshotUpper.d.ts
3212
+ declare const pruneSnapshotUpper: (dir: string) => void;
3213
+ //#endregion
3214
+ //#region src/services/exec/snapshot/removeSnapshotDirectory.d.ts
3215
+ declare const removeSnapshotDirectory: (dir: string) => void;
3216
+ //#endregion
3217
+ //#region src/services/exec/snapshot/resolveSetupCommand.d.ts
3218
+ declare const resolveSetupCommand: () => string;
3219
+ //#endregion
3220
+ //#region src/services/exec/snapshot/resolveSnapshotLocation.d.ts
3221
+ declare const resolveSnapshotLocation: (cwd: string) => SnapshotLocation;
3222
+ //#endregion
3223
+ //#region src/services/exec/snapshot/runOverlayScript.d.ts
3224
+ declare const runOverlayScript: (script: string, paths: readonly string[], input?: string) => string;
3225
+ //#endregion
3226
+ //#region src/services/exec/store/createSharedPackageStoreOptions.d.ts
3227
+ declare const createSharedPackageStoreOptions: (cwd: string, cacheRoot: string) => Pick<ExecOptions, "bindDirs" | "env">;
3228
+ //#endregion
3229
+ //#region src/services/exec/test/getAcceptanceCacheHome.d.ts
3230
+ declare const getAcceptanceCacheHome: () => string;
3231
+ //#endregion
3232
+ //#region src/services/exec/util/constants.d.ts
3233
+ declare const GITIGNORE_FILENAME = ".gitignore";
3234
+ declare const VIRRUN_CACHE_DIRECTORY_NAME = ".virrun";
3235
+ declare const VIRRUN_GITIGNORE_ENTRY: string;
3236
+ declare const VIRRUN_STORE_DIRECTORY_NAME = "store";
3237
+ declare const VIRRUN_PNPM_STORE_DIRECTORY_NAME = "pnpm";
3238
+ declare const VIRRUN_COREPACK_STORE_DIRECTORY_NAME = "corepack";
3239
+ declare const PACKAGE_JSON_FILENAME = "package.json";
3240
+ declare const PNPM_WORKSPACE_FILENAME = "pnpm-workspace.yaml";
3241
+ declare const PNPM_LOCKFILE_FILENAME = "pnpm-lock.yaml";
3242
+ declare const NODE_MODULES_DIRECTORY = "node_modules";
3243
+ declare const VIRRUN_CONFIGURATION_FILENAME = "virrun.config.json";
3244
+ declare const VIRRUN_SCHEMA_RELATIVE_PATH: string;
3245
+ declare const VIRRUN_ENV_KEY = "VIRRUN";
3246
+ declare const COREPACK_HOME_KEY = "COREPACK_HOME";
3247
+ declare const VIRRUN_CACHE_HOME_KEY = "VIRRUN_CACHE_HOME";
3248
+ declare const CAPABILITY_CACHE_FILENAME = "capability.json";
3249
+ declare const VIRRUN_FORCE_PROBE_KEY = "VIRRUN_FORCE_PROBE";
3250
+ declare const VIRRUN_NO_CACHE_KEY = "VIRRUN_NO_CACHE";
3251
+ declare const PNPM_CONFIG_PACKAGE_IMPORT_METHOD_KEY = "PNPM_CONFIG_PACKAGE_IMPORT_METHOD";
3252
+ declare const PNPM_CONFIG_PACKAGE_IMPORT_METHOD_VALUE = "copy";
3253
+ declare const PNPM_CONFIG_STORE_DIR_KEY = "PNPM_CONFIG_STORE_DIR";
3254
+ declare const CI_ENV_KEY = "CI";
3255
+ declare const CI_ENV_VALUE = "true";
3256
+ declare const VIRRUN_TEMP_DIR_PREFIX = "virrun-temp-";
3257
+ declare const HOME_CACHE_DIRECTORY_NAME = ".cache";
3258
+ declare const ACCEPTANCE_CACHE_DIRECTORY_NAME = "acceptance";
3259
+ //#endregion
3260
+ //#region src/services/exec/util/forwardTerminationSignals.d.ts
3261
+ declare const forwardTerminationSignals: (child: ChildProcess, onTerminate?: () => void) => void;
3262
+ //#endregion
3263
+ //#region src/services/exec/util/getGlobalCacheDirectory.d.ts
3264
+ declare const getGlobalCacheDirectory: () => string;
3265
+ //#endregion
3266
+ //#region src/services/exec/util/getRepoCacheDirectory.d.ts
3267
+ declare const getRepoCacheDirectory: (cwd: string) => string;
3268
+ //#endregion
3269
+ //#region src/services/exec/util/resolveCwd.d.ts
3270
+ declare const resolveCwd: (cwd: string) => string;
3271
+ //#endregion
3272
+ //#region src/services/exec/util/resolveWorkspaceRoot.d.ts
3273
+ declare const resolveWorkspaceRoot: (cwd: string) => string;
3274
+ //#endregion
3275
+ //#region src/services/exec/util/toExitCode.d.ts
3276
+ declare const toExitCode: (code: null | number, signal: NodeJS.Signals | null) => number;
3277
+ //#endregion
3278
+ //#region src/services/exec/vfs/createVfsBackend.d.ts
3279
+ declare const createVfsBackend: () => ExecBackend;
3280
+ //#endregion
3281
+ //#region src/services/exec/vfs/parseNodeInvocation.d.ts
3282
+ declare const parseNodeInvocation: (command: readonly string[] | string) => NodeInvocation | undefined;
3283
+ //#endregion
3284
+ //#region src/services/exec/vfs/runNodeInProcess.d.ts
3285
+ declare const runNodeInProcess: ({
3286
+ code,
3287
+ file
3288
+ }: NodeInvocation, {
3289
+ cwd,
3290
+ stdio
3291
+ }: ExecOptions) => ExecResult | undefined;
3292
+ //#endregion
3293
+ //#region src/services/exec/vfs/tokenizeShellCommand.d.ts
3294
+ declare const tokenizeShellCommand: (input: string) => string[] | undefined;
3295
+ //#endregion
3296
+ //#region src/services/exec/wsl/buildWslLoginShellCommand.d.ts
3297
+ declare const buildWslLoginShellCommand: (command: string) => string;
3298
+ //#endregion
3299
+ //#region src/services/exec/wsl/buildWslReapCommand.d.ts
3300
+ declare const buildWslReapCommand: (marker: string) => [string, ...string[]];
3301
+ //#endregion
3302
+ //#region src/services/exec/wsl/constants.d.ts
3303
+ declare const VIRRUN_WSL_PROCESS_MARKER = "virrun-bwrap";
3304
+ //#endregion
3305
+ //#region src/services/exec/wsl/createWslBwrapArgs.d.ts
3306
+ declare const createWslBwrapArgs: (command: readonly string[] | string, cwd: string, {
3307
+ bindDirs,
3308
+ isNetworkEnabled,
3309
+ overlayLayers
3310
+ }?: Pick<ExecOptions, "bindDirs" | "isNetworkEnabled" | "overlayLayers">) => string[];
3311
+ //#endregion
3312
+ //#region src/services/exec/wsl/createWslEnvArgs.d.ts
3313
+ declare const createWslEnvArgs: ({
3314
+ env
3315
+ }: Pick<ExecOptions, "env">) => string[];
3316
+ //#endregion
3317
+ //#region src/services/exec/wsl/createWslOsBackend.d.ts
3318
+ declare const createWslOsBackend: (errorName: string) => ExecBackend;
3319
+ //#endregion
3320
+ //#region src/services/exec/wsl/createWslProcessMarker.d.ts
3321
+ declare const createWslProcessMarker: () => string;
3322
+ //#endregion
3323
+ //#region src/services/exec/wsl/getWslNativeCacheRoot.d.ts
3324
+ declare const getWslNativeCacheRoot: () => string;
3325
+ //#endregion
3326
+ //#region src/services/exec/wsl/readWslLoginPath.d.ts
3327
+ declare const readWslLoginPath: () => string;
3328
+ //#endregion
3329
+ //#region src/services/exec/wsl/readWslPath.d.ts
3330
+ declare const readWslPath: (path: string) => string;
169
3331
  //#endregion
170
- export { BackendType, DirSource, ExecBackend, ExecOptions, ExecResult, ExecStdio, ExitSignalError, FilesSource, FsProvider, FsProviderOptions, GitSource, LoadedSource, NodeInvocation, Source, SourceType, Virrun, VirrunOptions, buildBwrapArgs, createNativeBackend, createOsBackend, createPlatformaticFsProvider, createVfsBackend, createVirrun, isOsBackendSupported, loadDirSource, loadFilesSource, loadGitSource, loadSource, parseBwrapExitCode, parseCliCommand, parseNodeInvocation, runNodeInProcess, toExitCode, tokenizeShellCommand };
3332
+ export { ACCEPTANCE_CACHE_DIRECTORY_NAME, BackendType, BwrapCommand, CAPABILITY_CACHE_FILENAME, CI_ENV_KEY, CI_ENV_VALUE, COREPACK_HOME_KEY, CapabilityCache, CleanArgs, CommandType, DiagnosticCheck, DiagnosticCheckType, DiagnosticStatus, DifferentialCase, DirSource, ExecBackend, ExecOptions, ExecResult, ExecStdio, ExecutionMode, ExitSignalError, FilesSource, FlushOp, FlushOpType, FsProvider, FsProviderOptions, GITIGNORE_FILENAME, GitSource, HOME_CACHE_DIRECTORY_NAME, InitArgs, LoadedSource, NODE_MODULES_DIRECTORY, NodeInvocation, NormalizationRule, OVERLAY_APPLY_SCRIPT, OVERLAY_PROBE_SCRIPT, OverlayEntry, OverlayEntryKind, OverlayEntryStats, OverlayLayers, OverlayManifestEntry, PACKAGE_JSON_FILENAME, PNPM_CONFIG_PACKAGE_IMPORT_METHOD_KEY, PNPM_CONFIG_PACKAGE_IMPORT_METHOD_VALUE, PNPM_CONFIG_STORE_DIR_KEY, PNPM_LOCKFILE_FILENAME, PNPM_WORKSPACE_FILENAME, RunArgs, SETUP_COMMAND_LINUX, SETUP_COMMAND_WIN32, SOURCE_TREE_HASH_MAX_BUFFER, SnapshotCapture, SnapshotLocation, Source, SourceType, TASK_CACHE_META_FILENAME, TASK_CACHE_PAYLOAD_DIRECTORY_NAME, TaskCacheEntry, TaskCacheLocation, VIRRUN_CACHE_DIRECTORY_NAME, VIRRUN_CACHE_HOME_KEY, VIRRUN_CONFIGURATION_FILENAME, VIRRUN_COREPACK_STORE_DIRECTORY_NAME, VIRRUN_ENV_KEY, VIRRUN_FORCE_PROBE_KEY, VIRRUN_GITIGNORE_ENTRY, VIRRUN_NO_CACHE_KEY, VIRRUN_PNPM_STORE_DIRECTORY_NAME, VIRRUN_SCHEMA_RELATIVE_PATH, VIRRUN_SNAPSHOTS_DIRECTORY_NAME, VIRRUN_SNAPSHOT_UPPER_DIRECTORY_NAME, VIRRUN_SNAPSHOT_WORK_DIRECTORY_NAME, VIRRUN_STORE_DIRECTORY_NAME, VIRRUN_TASKS_DIRECTORY_NAME, VIRRUN_TEMP_DIR_PREFIX, VIRRUN_WSL_PROCESS_MARKER, Virrun, VirrunConfiguration, VirrunOptions, WINDOWS_VIRTUAL_STORE_DIR_MAX_LENGTH, WSL_BWRAP_STATUS_BEGIN, WSL_BWRAP_STATUS_END, applyFlushPlan, buildBwrapArgs, buildFlushPlan, buildHostFlushPlan, buildVirrunConfigurationContent, buildWslLoginShellCommand, buildWslReapCommand, cacheCleanCommand, cacheCommand, cacheLsCommand, capabilityCacheSchema, computeLockfileHash, computeSourceTreeHash, computeTaskCacheKey, createBwrapBackend, createLinuxOsBackend, createNativeBackend, createOsBackend, createOsExecOptions, createOsInstallOptions, createPlatformaticFsProvider, createSharedPackageStoreOptions, createSnapshot, createStderrLiveWriter, createVfsBackend, createVirrun, createWslBwrapArgs, createWslEnvArgs, createWslOsBackend, createWslProcessMarker, dayjs, doctorCommand, execCommand, flushUpperToHost, forkSnapshot, formatCacheListing, formatDoctorReport, formatVirrunBanner, formatVirrunCacheHit, formatVirrunProvisioning, formatVirrunResult, forwardTerminationSignals, getAcceptanceCacheHome, getCapabilityCacheKey, getDoctorExitCode, getGlobalCacheDirectory, getOsCacheRoot, getRepoCacheDirectory, getWslNativeCacheRoot, initCommand, isOsBackendSupported, isTaskCacheEnabled, isUnderSnapshotLower, isVersionAtLeast, isVirrunEnabled, loadDirSource, loadFilesSource, loadGitSource, loadSource, mainCommand, normalizeExecResult, overlayManifestEntrySchema, parseBwrapExitCode, parseBwrapStderrStatus, parseNodeInvocation, parseOverlayEntryKind, parseOverlayManifest, parseTaskCacheEntry, parseVirrunConfiguration, persistRun, persistWithCache, probeOsBackendChecks, pruneSnapshotUpper, readCapabilityCache, readWslLoginPath, readWslPath, recordTaskCache, removeSnapshotDirectory, replayTaskCache, resolveBackend, resolveCwd, resolveSetupCommand, resolveSnapshotLocation, resolveTaskCacheLocation, resolveVirrunConfiguration, resolveWorkspaceRoot, runCommand, runDoctor, runNodeInProcess, runOverlayScript, runPassthrough, runVirrunCommand, snapshotCommand, taskCacheEntrySchema, toExitCode, tokenizeShellCommand, virrunConfigurationSchema, warmSnapshot, writeCapabilityCache };