UNPKG

karin-plugin-kkk

Version:

Karin 的「抖音」「B 站」视频解析/动态推送插件

1,153 lines (1,152 loc) 782 kB
import { t as ChalkInstance } from "./index-_BS3nWFN.mjs"; import { EventEmitter } from "node:events"; import { AxiosRequestConfig, AxiosResponse, RawAxiosResponseHeaders } from "axios"; import express from "express"; //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts type _JSONSchema = boolean | JSONSchema; type JSONSchema = { [k: string]: unknown; $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#"; $id?: string; $anchor?: string; $ref?: string; $dynamicRef?: string; $dynamicAnchor?: string; $vocabulary?: Record<string, boolean>; $comment?: string; $defs?: Record<string, JSONSchema>; type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer"; additionalItems?: _JSONSchema; unevaluatedItems?: _JSONSchema; prefixItems?: _JSONSchema[]; items?: _JSONSchema | _JSONSchema[]; contains?: _JSONSchema; additionalProperties?: _JSONSchema; unevaluatedProperties?: _JSONSchema; properties?: Record<string, _JSONSchema>; patternProperties?: Record<string, _JSONSchema>; dependentSchemas?: Record<string, _JSONSchema>; propertyNames?: _JSONSchema; if?: _JSONSchema; then?: _JSONSchema; else?: _JSONSchema; allOf?: JSONSchema[]; anyOf?: JSONSchema[]; oneOf?: JSONSchema[]; not?: _JSONSchema; multipleOf?: number; maximum?: number; exclusiveMaximum?: number | boolean; minimum?: number; exclusiveMinimum?: number | boolean; maxLength?: number; minLength?: number; pattern?: string; maxItems?: number; minItems?: number; uniqueItems?: boolean; maxContains?: number; minContains?: number; maxProperties?: number; minProperties?: number; required?: string[]; dependentRequired?: Record<string, string[]>; enum?: Array<string | number | boolean | null>; const?: string | number | boolean | null; id?: string; title?: string; description?: string; default?: unknown; deprecated?: boolean; readOnly?: boolean; writeOnly?: boolean; nullable?: boolean; examples?: unknown[]; format?: string; contentMediaType?: string; contentEncoding?: string; contentSchema?: JSONSchema; _prefault?: unknown; }; type BaseSchema = JSONSchema; //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts /** The Standard interface. */ interface StandardTypedV1<Input = unknown, Output = Input> { /** The Standard properties. */ readonly "~standard": StandardTypedV1.Props<Input, Output>; } declare namespace StandardTypedV1 { /** The Standard properties interface. */ interface Props<Input = unknown, Output = Input> { /** The version number of the standard. */ readonly version: 1; /** The vendor name of the schema library. */ readonly vendor: string; /** Inferred types associated with the schema. */ readonly types?: Types<Input, Output> | undefined; } /** The Standard types interface. */ interface Types<Input = unknown, Output = Input> { /** The input type of the schema. */ readonly input: Input; /** The output type of the schema. */ readonly output: Output; } /** Infers the input type of a Standard. */ type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"]; /** Infers the output type of a Standard. */ type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"]; } /** The Standard Schema interface. */ interface StandardSchemaV1<Input = unknown, Output = Input> { /** The Standard Schema properties. */ readonly "~standard": StandardSchemaV1.Props<Input, Output>; } declare namespace StandardSchemaV1 { /** The Standard Schema properties interface. */ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> { /** Validates unknown input values. */ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>; } /** The result interface of the validate function. */ type Result<Output> = SuccessResult<Output> | FailureResult; /** The result interface if validation succeeds. */ interface SuccessResult<Output> { /** The typed output value. */ readonly value: Output; /** The absence of issues indicates success. */ readonly issues?: undefined; } interface Options { /** Implicit support for additional vendor-specific parameters, if needed. */ readonly libraryOptions?: Record<string, unknown> | undefined; } /** The result interface if validation fails. */ interface FailureResult { /** The issues of failed validation. */ readonly issues: ReadonlyArray<Issue>; } /** The issue interface of the failure output. */ interface Issue { /** The error message of the issue. */ readonly message: string; /** The path of the issue, if any. */ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined; } /** The path segment interface of the issue. */ interface PathSegment { /** The key representing a path segment. */ readonly key: PropertyKey; } /** The Standard types interface. */ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {} /** Infers the input type of a Standard. */ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>; /** Infers the output type of a Standard. */ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>; } /** The Standard JSON Schema interface. */ interface StandardJSONSchemaV1<Input = unknown, Output = Input> { /** The Standard JSON Schema properties. */ readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>; } declare namespace StandardJSONSchemaV1 { /** The Standard JSON Schema properties interface. */ interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> { /** Methods for generating the input/output JSON Schema. */ readonly jsonSchema: Converter; } /** The Standard JSON Schema converter interface. */ interface Converter { /** Converts the input type to JSON Schema. May throw if conversion is not supported. */ readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>; /** Converts the output type to JSON Schema. May throw if conversion is not supported. */ readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>; } /** The target version of the generated JSON Schema. * * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. * * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`. * * All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target. */ type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string); /** The options for the input/output methods. */ interface Options { /** 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. */ readonly target: Target; /** Implicit support for additional vendor-specific parameters, if needed. */ readonly libraryOptions?: Record<string, unknown> | undefined; } /** The Standard types interface. */ interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {} /** Infers the input type of a Standard. */ type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>; /** Infers the output type of a Standard. */ type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>; } interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {} //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts declare const $output: unique symbol; type $output = typeof $output; declare const $input: unique symbol; type $input = typeof $input; 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; type MetadataType = object | undefined; declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> { _meta: Meta; _schema: Schema; _map: WeakMap<Schema, $replace<Meta, Schema>>; _idmap: Map<string, Schema>; add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this; clear(): this; remove(schema: Schema): this; get<S extends Schema>(schema: S): $replace<Meta, S> | undefined; has(schema: Schema): boolean; } interface JSONSchemaMeta { id?: string | undefined; title?: string | undefined; description?: string | undefined; deprecated?: boolean | undefined; [k: string]: unknown; } interface GlobalMeta extends JSONSchemaMeta {} //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void; interface JSONSchemaGeneratorParams { processors: Record<string, Processor>; /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def. * @default globalRegistry */ metadata?: $ZodRegistry<Record<string, any>>; /** The JSON Schema version to target. * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12 * - `"draft-07"` — JSON Schema Draft 7 * - `"draft-04"` — JSON Schema Draft 4 * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */ target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined; /** How to handle unrepresentable types. * - `"throw"` — Default. Unrepresentable types throw an error * - `"any"` — Unrepresentable types become `{}` */ unrepresentable?: "throw" | "any"; /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */ override?: (ctx: { zodSchema: $ZodTypes; jsonSchema: BaseSchema; path: (string | number)[]; }) => void; /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc. * - `"output"` — Default. Convert the output schema. * - `"input"` — Convert the input schema. */ io?: "input" | "output"; cycles?: "ref" | "throw"; reused?: "ref" | "inline"; external?: { registry: $ZodRegistry<{ id?: string | undefined; }>; uri?: ((id: string) => string) | undefined; defs: Record<string, BaseSchema>; } | undefined; } /** * Parameters for the toJSONSchema function. */ type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">; interface ProcessParams { schemaPath: $ZodType[]; path: (string | number)[]; } interface Seen { /** JSON Schema result for this Zod schema */ schema: BaseSchema; /** A cached version of the schema that doesn't get overwritten during ref resolution */ def?: BaseSchema; defId?: string | undefined; /** Number of times this schema was encountered during traversal */ count: number; /** Cycle path */ cycle?: (string | number)[] | undefined; isParent?: boolean | undefined; /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */ ref?: $ZodType | null; /** JSON Schema property path for this schema */ path?: (string | number)[] | undefined; } interface ToJSONSchemaContext { processors: Record<string, Processor>; metadataRegistry: $ZodRegistry<Record<string, any>>; target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string); unrepresentable: "throw" | "any"; override: (ctx: { zodSchema: $ZodType; jsonSchema: BaseSchema; path: (string | number)[]; }) => void; io: "input" | "output"; counter: number; seen: Map<$ZodType, Seen>; cycles: "ref" | "throw"; reused: "ref" | "inline"; external?: { registry: $ZodRegistry<{ id?: string | undefined; }>; uri?: ((id: string) => string) | undefined; defs: Record<string, BaseSchema>; } | undefined; } type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>; interface ZodStandardJSONSchemaPayload<T> extends BaseSchema { "~standard": ZodStandardSchemaWithJSON$1<T>; } //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts 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 & {}); type IsAny<T> = 0 extends 1 & T ? true : false; type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>; type NoUndefined<T> = T extends undefined ? never : T; type LoosePartial<T extends object> = InexactPartial<T> & { [k: string]: unknown; }; type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined }; type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | { readonly [Symbol.toStringTag]: string; } | Date | Error | Generator | Promise<unknown> | RegExp; 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>; type Identity<T> = T; type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>; type Prettify<T> = { [K in keyof T]: T[K] } & {}; type TupleItems = ReadonlyArray<SomeType>; type AnyFunc = (...args: any[]) => any; type MaybeAsync<T> = T | Promise<T>; type EnumValue = string | number; type EnumLike = Readonly<Record<string, EnumValue>>; type Literal = string | number | bigint | boolean | null | undefined; type Primitive = string | number | symbol | bigint | boolean | null | undefined; type HasLength = { length: number; }; type PropValues = Record<string, Set<Primitive>>; type PrimitiveSet = Set<Primitive>; type EmptyToNever<T> = keyof T extends never ? never : T; declare abstract class Class { constructor(..._args: any[]); } //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts declare const version: { readonly major: 4; readonly minor: 3; readonly patch: number; }; //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts interface ParseContext<T extends $ZodIssueBase = never> { /** Customize error messages. */ readonly error?: $ZodErrorMap<T>; /** Include the `input` field in issue objects. Default `false`. */ readonly reportInput?: boolean; /** Skip eval-based fast path. Default `false`. */ readonly jitless?: boolean; } /** @internal */ interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> { readonly async?: boolean | undefined; readonly direction?: "forward" | "backward"; readonly skipChecks?: boolean; } interface ParsePayload<T = unknown> { value: T; issues: $ZodRawIssue[]; /** A may to mark a whole payload as aborted. Used in codecs/pipes. */ aborted?: boolean; } type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>; interface $ZodTypeDef { 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"; error?: $ZodErrorMap<never> | undefined; checks?: $ZodCheck<never>[]; } interface _$ZodTypeInternals { /** The `@zod/core` version of this schema */ version: typeof version; /** Schema definition. */ def: $ZodTypeDef; /** @internal Randomly generated ID for this schema. */ /** @internal List of deferred initializers. */ deferred: AnyFunc[] | undefined; /** @internal Parses input and runs all checks (refinements). */ run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>; /** @internal Parses input, doesn't run checks. */ parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>; /** @internal Stores identifiers for the set of traits implemented by this schema. */ traits: Set<string>; /** @internal Indicates that a schema output type should be considered optional inside objects. * @default Required */ /** @internal */ optin?: "optional" | undefined; /** @internal */ optout?: "optional" | undefined; /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record(). * * Defined on: enum, const, literal, null, undefined * Passthrough: optional, nullable, branded, default, catch, pipe * Todo: unions? */ values?: PrimitiveSet | undefined; /** Default value bubbled up from */ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */ propValues?: PropValues | undefined; /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */ pattern: RegExp | undefined; /** @internal The constructor function of this schema. */ constr: new (def: any) => $ZodType; /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */ bag: Record<string, unknown>; /** @internal The set of issues this schema might throw during type checking. */ isst: $ZodIssueBase; /** @internal Subject to change, not a public API. */ processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined; /** An optional method used to override `toJSONSchema` logic. */ toJSONSchema?: () => unknown; /** @internal The parent of this schema. Only set during certain clone operations. */ parent?: $ZodType | undefined; } /** @internal */ interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals { /** @internal The inferred output type */ output: O; /** @internal The inferred input type */ input: I; } type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>; type SomeType = { _zod: _$ZodTypeInternals; }; interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> { _zod: Internals; "~standard": $ZodStandardSchema<this>; } interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {} declare const $ZodType: $constructor<$ZodType>; interface $ZodStringDef extends $ZodTypeDef { type: "string"; coerce?: boolean; checks?: $ZodCheck<string>[]; } interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> { def: $ZodStringDef; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; /** @deprecated Internal API, use with caution (not deprecated) */ isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; patterns: Set<RegExp>; format: string; contentEncoding: string; }>; } interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {} declare const $ZodString: $constructor<$ZodString>; interface $ZodNumberDef extends $ZodTypeDef { type: "number"; coerce?: boolean; } interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> { def: $ZodNumberDef; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; /** @deprecated Internal API, use with caution (not deprecated) */ isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; exclusiveMinimum: number; exclusiveMaximum: number; format: string; pattern: RegExp; }>; } interface $ZodNumber<Input = unknown> extends $ZodType { _zod: $ZodNumberInternals<Input>; } declare const $ZodNumber: $constructor<$ZodNumber>; interface $ZodBooleanDef extends $ZodTypeDef { type: "boolean"; coerce?: boolean; checks?: $ZodCheck<boolean>[]; } interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> { pattern: RegExp; def: $ZodBooleanDef; isst: $ZodIssueInvalidType; } interface $ZodBoolean<T = unknown> extends $ZodType { _zod: $ZodBooleanInternals<T>; } declare const $ZodBoolean: $constructor<$ZodBoolean>; interface $ZodBigIntDef extends $ZodTypeDef { type: "bigint"; coerce?: boolean; } interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> { pattern: RegExp; /** @internal Internal API, use with caution */ def: $ZodBigIntDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: bigint; maximum: bigint; format: string; }>; } interface $ZodBigInt<T = unknown> extends $ZodType { _zod: $ZodBigIntInternals<T>; } declare const $ZodBigInt: $constructor<$ZodBigInt>; interface $ZodSymbolDef extends $ZodTypeDef { type: "symbol"; } interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> { def: $ZodSymbolDef; isst: $ZodIssueInvalidType; } interface $ZodSymbol extends $ZodType { _zod: $ZodSymbolInternals; } declare const $ZodSymbol: $constructor<$ZodSymbol>; interface $ZodUndefinedDef extends $ZodTypeDef { type: "undefined"; } interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> { pattern: RegExp; def: $ZodUndefinedDef; values: PrimitiveSet; isst: $ZodIssueInvalidType; } interface $ZodUndefined extends $ZodType { _zod: $ZodUndefinedInternals; } declare const $ZodUndefined: $constructor<$ZodUndefined>; interface $ZodNullDef extends $ZodTypeDef { type: "null"; } interface $ZodNullInternals extends $ZodTypeInternals<null, null> { pattern: RegExp; def: $ZodNullDef; values: PrimitiveSet; isst: $ZodIssueInvalidType; } interface $ZodNull extends $ZodType { _zod: $ZodNullInternals; } declare const $ZodNull: $constructor<$ZodNull>; interface $ZodAnyDef extends $ZodTypeDef { type: "any"; } interface $ZodAnyInternals extends $ZodTypeInternals<any, any> { def: $ZodAnyDef; isst: never; } interface $ZodAny extends $ZodType { _zod: $ZodAnyInternals; } declare const $ZodAny: $constructor<$ZodAny>; interface $ZodUnknownDef extends $ZodTypeDef { type: "unknown"; } interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> { def: $ZodUnknownDef; isst: never; } interface $ZodUnknown extends $ZodType { _zod: $ZodUnknownInternals; } declare const $ZodUnknown: $constructor<$ZodUnknown>; interface $ZodNeverDef extends $ZodTypeDef { type: "never"; } interface $ZodNeverInternals extends $ZodTypeInternals<never, never> { def: $ZodNeverDef; isst: $ZodIssueInvalidType; } interface $ZodNever extends $ZodType { _zod: $ZodNeverInternals; } declare const $ZodNever: $constructor<$ZodNever>; interface $ZodVoidDef extends $ZodTypeDef { type: "void"; } interface $ZodVoidInternals extends $ZodTypeInternals<void, void> { def: $ZodVoidDef; isst: $ZodIssueInvalidType; } interface $ZodVoid extends $ZodType { _zod: $ZodVoidInternals; } declare const $ZodVoid: $constructor<$ZodVoid>; interface $ZodDateDef extends $ZodTypeDef { type: "date"; coerce?: boolean; } interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> { def: $ZodDateDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: Date; maximum: Date; format: string; }>; } interface $ZodDate<T = unknown> extends $ZodType { _zod: $ZodDateInternals<T>; } declare const $ZodDate: $constructor<$ZodDate>; interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "array"; element: T; } interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals { def: $ZodArrayDef<T>; isst: $ZodIssueInvalidType; output: output<T>[]; input: input<T>[]; } interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {} declare const $ZodArray: $constructor<$ZodArray>; type OptionalOutSchema = { _zod: { optout: "optional"; }; }; type OptionalInSchema = { _zod: { optin: "optional"; }; }; 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>; 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>; type $ZodObjectConfig = { out: Record<string, unknown>; in: Record<string, unknown>; }; type $ZodShape = Readonly<{ [k: string]: $ZodType; }>; interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef { type: "object"; shape: Shape; catchall?: $ZodType | undefined; } interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals { def: $ZodObjectDef<Shape>; config: Config; isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys; propValues: PropValues; output: $InferObjectOutput<Shape, Config["out"]>; input: $InferObjectInput<Shape, Config["in"]>; optin?: "optional" | undefined; optout?: "optional" | undefined; } type $ZodLooseShape = Record<string, any>; 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>> {} declare const $ZodObject: $constructor<$ZodObject>; type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never; type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never; interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef { type: "union"; options: Options; inclusive?: boolean; } type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false; type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false; interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals { def: $ZodUnionDef<T>; isst: $ZodIssueInvalidUnion; pattern: T[number]["_zod"]["pattern"]; values: T[number]["_zod"]["values"]; output: $InferUnionOutput<T[number]>; input: $InferUnionInput<T[number]>; optin: IsOptionalIn<T[number]> extends false ? "optional" | undefined : "optional"; optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional"; } interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> { _zod: $ZodUnionInternals<T>; } declare const $ZodUnion: $constructor<$ZodUnion>; interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef { type: "intersection"; left: Left; right: Right; } interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals { def: $ZodIntersectionDef<A, B>; isst: never; optin: A["_zod"]["optin"] | B["_zod"]["optin"]; optout: A["_zod"]["optout"] | B["_zod"]["optout"]; output: output<A> & output<B>; input: input<A> & input<B>; } interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType { _zod: $ZodIntersectionInternals<A, B>; } declare const $ZodIntersection: $constructor<$ZodIntersection>; interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef { type: "tuple"; items: T; rest: Rest; } type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])]; type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]> }; 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> : []; type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])]; type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]> }; 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> : []; interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals { def: $ZodTupleDef<T, Rest>; isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>; output: $InferTupleOutputType<T, Rest>; input: $InferTupleInputType<T, Rest>; } interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType { _zod: $ZodTupleInternals<T, Rest>; } declare const $ZodTuple: $constructor<$ZodTuple>; type $ZodRecordKey = $ZodType<string | number | symbol, unknown>; interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef { type: "record"; keyType: Key; valueType: Value; /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */ mode?: "strict" | "loose"; } type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>; 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>>; interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> { def: $ZodRecordDef<Key, Value>; isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>; optin?: "optional" | undefined; optout?: "optional" | undefined; } type $partial = { "~~partial": true; }; interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType { _zod: $ZodRecordInternals<Key, Value>; } declare const $ZodRecord: $constructor<$ZodRecord>; interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef { type: "map"; keyType: Key; valueType: Value; } interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> { def: $ZodMapDef<Key, Value>; isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>; optin?: "optional" | undefined; optout?: "optional" | undefined; } interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType { _zod: $ZodMapInternals<Key, Value>; } declare const $ZodMap: $constructor<$ZodMap>; interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "set"; valueType: T; } interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> { def: $ZodSetDef<T>; isst: $ZodIssueInvalidType; optin?: "optional" | undefined; optout?: "optional" | undefined; } interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodSetInternals<T>; } declare const $ZodSet: $constructor<$ZodSet>; type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {}; type $InferEnumInput<T extends EnumLike> = T[keyof T] & {}; interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef { type: "enum"; entries: T; } interface $ZodEnumInternals< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> { def: $ZodEnumDef<T>; /** @deprecated Internal API, use with caution (not deprecated) */ values: PrimitiveSet; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; isst: $ZodIssueInvalidValue; } interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType { _zod: $ZodEnumInternals<T>; } declare const $ZodEnum: $constructor<$ZodEnum>; interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef { type: "literal"; values: T[]; } interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> { def: $ZodLiteralDef<T>; values: Set<T>; pattern: RegExp; isst: $ZodIssueInvalidValue; } interface $ZodLiteral<T extends Literal = Literal> extends $ZodType { _zod: $ZodLiteralInternals<T>; } declare const $ZodLiteral: $constructor<$ZodLiteral>; type _File = typeof globalThis extends { File: infer F extends new (...args: any[]) => any; } ? InstanceType<F> : {}; /** Do not reference this directly. */ interface File extends _File { readonly type: string; readonly size: number; } interface $ZodFileDef extends $ZodTypeDef { type: "file"; } interface $ZodFileInternals extends $ZodTypeInternals<File, File> { def: $ZodFileDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; mime: MimeTypes[]; }>; } interface $ZodFile extends $ZodType { _zod: $ZodFileInternals; } declare const $ZodFile: $constructor<$ZodFile>; interface $ZodTransformDef extends $ZodTypeDef { type: "transform"; transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>; } interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> { def: $ZodTransformDef; isst: never; } interface $ZodTransform<O = unknown, I = unknown> extends $ZodType { _zod: $ZodTransformInternals<O, I>; } declare const $ZodTransform: $constructor<$ZodTransform>; interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "optional"; innerType: T; } interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> { def: $ZodOptionalDef<T>; optin: "optional"; optout: "optional"; isst: never; values: T["_zod"]["values"]; pattern: T["_zod"]["pattern"]; } interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodOptionalInternals<T>; } declare const $ZodOptional: $constructor<$ZodOptional>; interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {} interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> { def: $ZodExactOptionalDef<T>; output: output<T>; input: input<T>; } interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodExactOptionalInternals<T>; } declare const $ZodExactOptional: $constructor<$ZodExactOptional>; interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "nullable"; innerType: T; } interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> { def: $ZodNullableDef<T>; optin: T["_zod"]["optin"]; optout: T["_zod"]["optout"]; isst: never; values: T["_zod"]["values"]; pattern: T["_zod"]["pattern"]; } interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodNullableInternals<T>; } declare const $ZodNullable: $constructor<$ZodNullable>; interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "default"; innerType: T; /** The default value. May be a getter. */ defaultValue: NoUndefined<output<T>>; } interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> { def: $ZodDefaultDef<T>; optin: "optional"; optout?: "optional" | undefined; isst: never; values: T["_zod"]["values"]; } interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodDefaultInternals<T>; } declare const $ZodDefault: $constructor<$ZodDefault>; interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "prefault"; innerType: T; /** The default value. May be a getter. */ defaultValue: input<T>; } interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> { def: $ZodPrefaultDef<T>; optin: "optional"; optout?: "optional" | undefined; isst: never; values: T["_zod"]["values"]; } interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodPrefaultInternals<T>; } declare const $ZodPrefault: $constructor<$ZodPrefault>; interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "nonoptional"; innerType: T; } interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> { def: $ZodNonOptionalDef<T>; isst: $ZodIssueInvalidType; values: T["_zod"]["values"]; optin: "optional" | undefined; optout: "optional" | undefined; } interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodNonOptionalInternals<T>; } declare const $ZodNonOptional: $constructor<$ZodNonOptional>; interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "success"; innerType: T; } interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> { def: $ZodSuccessDef<T>; isst: never; optin: T["_zod"]["optin"]; optout: "optional" | undefined; } interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodSuccessInternals<T>; } declare const $ZodSuccess: $constructor<$ZodSuccess>; interface $ZodCatchCtx extends ParsePayload { /** @deprecated Use `ctx.issues` */ error: { issues: $ZodIssue[]; }; /** @deprecated Use `ctx.value` */ input: unknown; } interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "catch"; innerType: T; catchValue: (ctx: $ZodCatchCtx) => unknown; } interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> { def: $ZodCatchDef<T>; optin: T["_zod"]["optin"]; optout: T["_zod"]["optout"]; isst: never; values: T["_zod"]["values"]; } interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodCatchInternals<T>; } declare const $ZodCatch: $constructor<$ZodCatch>; interface $ZodNaNDef extends $ZodTypeDef { type: "nan"; } interface $ZodNaNInternals extends $ZodTypeInternals<number, number> { def: $ZodNaNDef; isst: $ZodIssueInvalidType; } interface $ZodNaN extends $ZodType { _zod: $ZodNaNInternals; } declare const $ZodNaN: $constructor<$ZodNaN>; interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef { type: "pipe"; in: A; out: B; /** Only defined inside $ZodCodec instances. */ transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>; /** Only defined inside $ZodCodec instances. */ reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>; } interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> { def: $ZodPipeDef<A, B>; isst: never; values: A["_zod"]["values"]; optin: A["_zod"]["optin"]; optout: B["_zod"]["optout"]; propValues: A["_zod"]["propValues"]; } interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType { _zod: $ZodPipeInternals<A, B>; } declare const $ZodPipe: $constructor<$ZodPipe>; interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "readonly"; innerType: T; } interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> { def: $ZodReadonlyDef<T>; optin: T["_zod"]["optin"]; optout: T["_zod"]["optout"]; isst: never; propValues: T["_zod"]["propValues"]; values: T["_zod"]["values"]; } interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodReadonlyInternals<T>; } declare const $ZodReadonly: $constructor<$ZodReadonly>; interface $ZodTemplateLiteralDef extends $ZodTypeDef { type: "template_literal"; parts: $ZodTemplateLiteralPart[]; format?: string | undefined; } interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> { pattern: RegExp; def: $ZodTemplateLiteralDef; isst: $ZodIssueInvalidType; } interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType { _zod: $ZodTemplateLiteralInternals<Template>; } type LiteralPart = Exclude<Literal, symbol>; interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> { pattern: RegExp; } interface SchemaPart extends $ZodType { _zod: SchemaPartInternals; } type $ZodTemplateLiteralPart = LiteralPart | SchemaPart; declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>; type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>; type $ZodFunctionIn = $ZodFunctionArgs; type $ZodFunctionOut = $ZodType; type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>; type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>; type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>; type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>; interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef { type: "function"; input: In; output: Out; } interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> { def: $ZodFunctionDef<Args, Returns>; isst: $ZodIssueInvalidType; } interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> { /** @deprecated */ _def: $ZodFunctionDef<Args, Returns>; _input: $InferInnerFunctionType<Args, Returns>; _output: $InferOuterFunctionType<Args, Returns>; implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>; implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>; input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>; input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>; input(...args: any[]): $ZodFunction<any, Returns>; output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>; } declare const $ZodFunction: $constructor<$ZodFunction>; interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "promise"; innerType: T; } interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> { def: $ZodPromiseDef<T>; isst: never; } interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodPromiseInternals<T>; } declare const $ZodPromise: $constructor<$ZodPromise>; interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef { type: "lazy"; getter: () => T; } interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> { def: $ZodLazyDef<T>; isst: never; /** Auto-cached way to retrieve the inner schema */ innerType: T; pattern: T["_zod"]["pattern"]; propValues: T["_zod"]["propValues"]; optin: T["_zod"]["optin"]; optout: T["_zod"]["optout"]; } interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType { _zod: $ZodLazyInternals<T>; } declare const $ZodLazy: $constructor<$ZodLazy>; interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef { type: "custom"; check: "custom"; path?: PropertyKey[] | undefined; error?: $ZodErrorMap | undefined; params?: Record<string, any> | undefined; fn: (arg: O) => unknown; } interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> { def: $ZodCustomDef; issc: $ZodIssue; isst: never; bag: LoosePartial<{ Class: typeof Class; }>; } interface $ZodCustom<O = unknown, I = unknown> extends $ZodType { _zod: $ZodCustomInternals<O, I>; } declare const $ZodCustom: $constructor<$ZodCustom>; 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; //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.cts interface $ZodCheckDef { check: string; error?: $ZodErrorMap<never> | undefined; /** If true, no later checks will be executed if this check fails. Default `false`. */ abort?: boolean | undefined; /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */ when?: ((payload: ParsePayload) => boolean) | undefined; } interface $ZodCheckInternals<T> { def: $ZodCheckDef; /** The set of issues this check might throw. */ issc?: $ZodIssueBase; check(payload: ParsePayload<T>): MaybeAsync<void>; onattach: ((schema: $ZodType) => void)[]; } interface $ZodCheck<in T = never> { _zod: $ZodCheckInternals<T>; } declare const $ZodCheck: $constructor<$ZodCheck<any>>; interface $ZodCheckMaxLengthDef extends $ZodCheckDef { check: "max_length"; maximum: number; } interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> { def: $ZodCheckMaxLengthDef; issc: $ZodIssueTooBig<T>; } interface $ZodCheckMaxLength<T extends Ha