import { JSONSchema7 } from 'json-schema'; export { JSONSchema7 } from 'json-schema'; declare const zuiKey$1: "x-zui"; type NoUndefined = T extends undefined ? never : T; type Satisfies = X; type Cast = A extends B ? A : B; type Writeable = { -readonly [P in keyof T]: T[P]; }; type _UnionToIntersectionFn = (T extends unknown ? (k: () => T) => void : never) extends (k: infer Intersection) => void ? Intersection : never; type _GetUnionLast = _UnionToIntersectionFn extends () => infer Last ? Last : never; type UnionToTuple = [T] extends [never] ? Tuple : UnionToTuple>, [_GetUnionLast, ...Tuple]>; type _OptionalKeys = { [k in keyof T]: undefined extends T[k] ? k : never; }[keyof T]; type _RequiredKeys = { [k in keyof T]: undefined extends T[k] ? never : k; }[keyof T]; type AddQuestionMarks, O extends keyof T = _OptionalKeys> = Pick & Partial> & { [k in keyof T]?: unknown; }; type Identity = T; type Flatten = Identity<{ [k in keyof T]: T[k]; }>; type _NoNeverKeys = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T]; type NoNever = Identity<{ [k in _NoNeverKeys]: k extends keyof T ? T[k] : never; }>; type ExtendShape = Flatten & B>; type ZuiMetadata = string | number | boolean | null | undefined | ZuiMetadata[] | { [key: string]: ZuiMetadata; }; type ZuiExtensionObject = { tooltip?: boolean; displayAs?: [string, ZuiMetadata]; title?: string; disabled?: boolean | string; hidden?: boolean | string; placeholder?: string; secret?: boolean; coerce?: boolean; [key: string]: ZuiMetadata; }; type BaseDisplayAsType = 'number' | 'string' | 'boolean' | 'object' | 'array' | 'discriminatedUnion'; type UIComponentDefinitions = { [T in BaseDisplayAsType]: { [K: string]: { id: string; params: IZodObject; }; }; }; type ZodKindToBaseType = U extends ZodStringDef ? 'string' : U extends ZodNumberDef ? 'number' : U extends ZodBooleanDef ? 'boolean' : U extends ZodArrayDef ? 'array' : U extends ZodObjectDef ? 'object' : U extends ZodTupleDef ? never : U extends ZodEnumDef ? 'string' : U extends ZodDefaultDef ? ZodKindToBaseType : U extends ZodOptionalDef ? ZodKindToBaseType : U extends ZodNullableDef ? ZodKindToBaseType : U extends ZodDiscriminatedUnionDef ? 'discriminatedUnion' : never; type DisplayAsOptions = U extends { id: string; params: IZodObject; } ? { id: U['id']; params: TypeOf; } : object; type ErrMessage = string | { message?: string; }; type ZodInvalidTypeIssue = { code: 'invalid_type'; expected: ZodParsedType; received: ZodParsedType; }; type ZodInvalidLiteralIssue = { code: 'invalid_literal'; expected: unknown; received: unknown; }; type ZodUnrecognizedKeysIssue = { code: 'unrecognized_keys'; keys: string[]; }; type ZodInvalidUnionIssue = { code: 'invalid_union'; unionErrors: IZodError[]; }; type ZodInvalidUnionDiscriminatorIssue = { code: 'invalid_union_discriminator'; options: Primitive[]; }; type ZodInvalidEnumValueIssue = { received: string | number; code: 'invalid_enum_value'; options: (string | number)[]; }; type ZodInvalidArgumentsIssue = { code: 'invalid_arguments'; argumentsError: IZodError; }; type ZodInvalidReturnTypeIssue = { code: 'invalid_return_type'; returnTypeError: IZodError; }; type ZodInvalidDateIssue = { code: 'invalid_date'; }; type ZodInvalidStringIssue = { code: 'invalid_string'; validation: 'email' | 'url' | 'emoji' | 'uuid' | 'regex' | 'cuid' | 'cuid2' | 'ulid' | 'datetime' | 'ip' | { includes: string; position?: number; } | { startsWith: string; } | { endsWith: string; }; }; type ZodTooSmallIssue = { code: 'too_small'; minimum: number | bigint; inclusive: boolean; exact?: boolean; type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint'; }; type ZodTooBigIssue = { code: 'too_big'; maximum: number | bigint; inclusive: boolean; exact?: boolean; type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint'; }; type ZodInvalidIntersectionTypesIssue = { code: 'invalid_intersection_types'; }; type ZodNotMultipleOfIssue = { code: 'not_multiple_of'; multipleOf: number | bigint; }; type ZodNotFiniteIssue = { code: 'not_finite'; }; type ZodUnresolvedReferenceIssue = { code: 'unresolved_reference'; }; type ZodCustomIssue = { code: 'custom'; params?: { [k: string]: unknown; }; }; type ZodIssueBody = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodUnresolvedReferenceIssue | ZodCustomIssue; type ZodIssue = ZodIssueBody & { path: (string | number)[]; fatal?: boolean; message: string; }; type CustomErrorParams = Partial<{ path: (string | number)[]; message: string; params: { [k: string]: unknown; }; }>; type _RecursiveZodFormattedError = T extends [any, ...any[]] ? { [K in keyof T]?: ZodFormattedError; } : T extends any[] ? { [k: number]: ZodFormattedError; } : T extends object ? { [K in keyof T]?: ZodFormattedError; } : unknown; type ZodFormattedError = { _errors: U[]; } & _RecursiveZodFormattedError>; interface IZodError extends Error { readonly __type__: 'ZuiError'; issues: ZodIssue[]; errors: ZodIssue[]; format(): ZodFormattedError; format(mapper: (issue: ZodIssue) => U): ZodFormattedError; toString(): string; message: string; isEmpty: boolean; addIssue: (sub: ZodIssue) => void; addIssues: (subs?: ZodIssue[]) => void; } type IssueData = EffectIssue & { path?: (string | number)[]; fatal?: boolean; message?: string; }; type ZodErrorMap = (issue: ZodIssueBody & { path: (string | number)[]; message?: string; }, ctx: { defaultError: string; data: any; }) => { message: string; }; type ZodParsedType = 'string' | 'nan' | 'number' | 'integer' | 'float' | 'boolean' | 'date' | 'bigint' | 'symbol' | 'function' | 'undefined' | 'null' | 'array' | 'object' | 'unknown' | 'promise' | 'void' | 'never' | 'map' | 'set'; type ParseContext = { common: { issues: ZodIssue[]; contextualErrorMap?: ZodErrorMap; async: boolean; }; schemaErrorMap?: ZodErrorMap; parsedType: ZodParsedType; data: any; path: (string | number)[]; parent: ParseContext | null; }; type ParseInput = { data: any; path: (string | number)[]; parent: ParseContext; }; type InvalidParseReturnType = { status: 'aborted'; }; type DirtyParseReturnType = { status: 'dirty'; value: T; }; type ValidParseReturnType = { status: 'valid'; value: T; }; type SyncParseReturnType = ValidParseReturnType | DirtyParseReturnType | InvalidParseReturnType; type AsyncParseReturnType = Promise>; type ParseReturnType = SyncParseReturnType | AsyncParseReturnType; type SafeParseSuccess = { success: true; data: Output; error?: never; }; type SafeParseError = { success: false; error: IZodError; data?: never; }; type SafeParseReturnType = SafeParseSuccess | SafeParseError; type ParseParams = { path: (string | number)[]; errorMap: ZodErrorMap; async: boolean; }; /** * @deprecated use upstream and downstream instead which handle issues with a better semantic */ type RefinementCtx = { /** * @deprecated use upstream and downstream instead which handle issues with a better semantic */ addIssue: (arg: IssueData) => void; path: (string | number)[]; }; type ZodCreateParams = { errorMap?: ZodErrorMap; invalid_type_error?: string; required_error?: string; description?: string; ['x-zui']?: ZuiExtensionObject; } | undefined; type TypeOf = T['_output']; type input = T['_input']; type output = T['_output']; type DeepPartialBoolean = { [K in keyof T]?: T[K] extends object ? DeepPartialBoolean | boolean : boolean; }; type ZodTypeDef = { typeName: string; errorMap?: ZodErrorMap; description?: string; ['x-zui']?: ZuiExtensionObject; }; type ZodTypeAny = IZodType; /** * @deprecated use ZodType instead */ type ZodSchema = IZodType; /** * @deprecated use ZodType instead */ type Schema$1 = IZodType; interface IZodType { readonly __type__: 'ZuiType'; _type: Output; _output: Output; _input: Input; _def: Def; _parse(input: ParseInput): ParseReturnType; _parseAsync(input: ParseInput): AsyncParseReturnType; _parseSync(input: ParseInput): SyncParseReturnType; description: string | undefined; typeName: Def['typeName']; /** deeply replace all references in the schema */ dereference(_defs: Record): IZodType; /** deeply scans the schema to check if it contains references */ getReferences(): string[]; clone(): IZodType; parse(data: unknown, params?: Partial): Output; safeParse(data: unknown, params?: Partial): SafeParseReturnType; parseAsync(data: unknown, params?: Partial): Promise; safeParseAsync(data: unknown, params?: Partial): Promise>; /** Alias of safeParseAsync */ spa: (data: unknown, params?: Partial) => Promise>; refine(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): IZodEffects; refine(check: (arg: Output) => unknown | Promise, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): IZodEffects; /** * @deprecated use downstream instead which handle issues with a better semantic */ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): IZodEffects; /** * @deprecated use downstream instead which handle issues with a better semantic */ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): IZodEffects; /** * @deprecated use downstream instead which handle issues with a better semantic */ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise): IZodEffects; optional(): IZodOptional; nullable(): IZodNullable; nullish(): IZodOptional>; array(): IZodArray; promise(): IZodPromise; /** * # \#\#\# Experimental \#\#\# * * @experimental This function is experimental and is subject to breaking changes in the future. * * Would have been named `required` but a method with that name already exists in ZodObject. * Makes the schema required; i.e. not optional or undefined. If the schema is already required than it returns itself. * Null is not considered optional and remains unchanged. * * @example z.string().optional().mandatory() // z.string() * @example z.string().nullable().mandatory() // z.string().nullable() * @example z.string().or(z.undefined()).mandatory() // z.string() * @example z.union([z.string(), z.number(), z.undefined()]).mandatory() // z.union([z.string(), z.number()]) */ mandatory(): IZodType; or(option: T): IZodUnion<[this, T]>; and(incoming: T): IZodIntersection; transform(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise): IZodEffects; downstream(fn: (output: Output, ctx: EffectContext) => EffectReturnType | Promise | undefined> | undefined, params?: { failFast?: boolean; }): IZodEffects; default(def: NoUndefined): IZodDefault; default(def: () => NoUndefined): IZodDefault; brand(brand?: B): IZodBranded; catch(def: Output | CatchFn): IZodCatch; describe(description: string): this; pipe(target: T): IZodPipeline; readonly(): IZodReadonly; isOptional(): boolean; isNullable(): boolean; /** append metadata to the schema */ metadata(data: Record): this; /** metadataf the schema */ getMetadata(): Record; /** set metadata of the schema */ setMetadata(data: Record): void; /** * metadataf the schema * @deprecated use `getMetadata()` instead */ ui: Record; /** * The title of the field. Defaults to the field name. */ title(title: string): this; /** * Whether the field is hidden in the UI. Useful for internal fields. * @default false */ hidden(value?: boolean | ((shape: T | null) => DeepPartialBoolean | boolean)): this; /** * Whether the field is disabled * @default false */ disabled(value?: boolean | ((shape: T | null) => DeepPartialBoolean | boolean)): this; /** * Placeholder text for the field */ placeholder(placeholder: string): this; /** * Some Schemas aren't meant to contain metadata, like ZodDefault. * In a zui construction like `z.string().default('hello').title('Hello')`, the user's intention is usually to set a title on the string, not on the default value. * Also, in JSON-Schema, default is not a data-type like it is in Zui, but an annotation added on the schema itself. Therefore, only one metadata can apply to both the schema and the default value. * This property is used to theoot schema that should contain the metadata. * * TLDR: Allows removing all wrappers around the schema * @returns either this or the closest children schema that represents the actual data */ naked(): IZodType; /** checks if a schema is equal to another */ isEqual(schema: IZodType): boolean; /** * The type of component to use to display the field and its options */ displayAs>(options: DisplayAsOptions): this; /** * * @returns a JSON Schema equivalent to the Zui schema */ toJSONSchema(opts?: Partial): Schema; /** * @param options generation options * @returns a string of the TypeScript type representing the schema */ toTypescriptType(opts?: Partial): string; /** * * @param options generation options * @returns a typescript program (a string) that would construct the given schema if executed */ toTypescriptSchema(): string; } type ZodAnyDef = { typeName: 'ZodAny'; } & ZodTypeDef; interface IZodAny extends IZodType { } type ZodArrayDef = { type: T; typeName: 'ZodArray'; exactLength: { value: number; message?: string; } | null; minLength: { value: number; message?: string; } | null; maxLength: { value: number; message?: string; } | null; } & ZodTypeDef; type ArrayCardinality = 'many' | 'atleastone'; type ArrayOutputType = Cardinality extends 'atleastone' ? [T['_output'], ...T['_output'][]] : T['_output'][]; interface IZodArray extends IZodType, ZodArrayDef, Cardinality extends 'atleastone' ? [T['_input'], ...T['_input'][]] : T['_input'][]> { element: T; min(minLength: number, message?: ErrMessage): this; max(maxLength: number, message?: ErrMessage): this; length(len: number, message?: ErrMessage): this; nonempty(message?: ErrMessage): IZodArray; } type ZodBigIntCheck = { kind: 'min'; value: bigint; inclusive: boolean; message?: string; } | { kind: 'max'; value: bigint; inclusive: boolean; message?: string; } | { kind: 'multipleOf'; value: bigint; message?: string; }; type ZodBigIntDef = { checks: ZodBigIntCheck[]; typeName: 'ZodBigInt'; coerce: boolean; } & ZodTypeDef; interface IZodBigInt extends IZodType { gte(value: bigint, message?: ErrMessage): IZodBigInt; min: (value: bigint, message?: ErrMessage) => IZodBigInt; gt(value: bigint, message?: ErrMessage): IZodBigInt; lte(value: bigint, message?: ErrMessage): IZodBigInt; max: (value: bigint, message?: ErrMessage) => IZodBigInt; lt(value: bigint, message?: ErrMessage): IZodBigInt; positive(message?: ErrMessage): IZodBigInt; negative(message?: ErrMessage): IZodBigInt; nonpositive(message?: ErrMessage): IZodBigInt; nonnegative(message?: ErrMessage): IZodBigInt; multipleOf(value: bigint, message?: ErrMessage): IZodBigInt; minValue: bigint | null; maxValue: bigint | null; } type ZodBooleanDef = { typeName: 'ZodBoolean'; coerce: boolean; } & ZodTypeDef; interface IZodBoolean extends IZodType { } type _Key = string | number | symbol; type ZodBrandedDef = { type: T; typeName: 'ZodBranded'; } & ZodTypeDef; declare const BRAND: unique symbol; type BRAND = { [BRAND]: { [k in T]: true; }; }; interface IZodBranded extends IZodType, ZodBrandedDef, T['_input']> { unwrap(): T; } type CatchFn = (ctx: { error: IZodError; input: unknown; }) => Y; type ZodCatchDef = { innerType: T; catchValue: CatchFn; typeName: 'ZodCatch'; } & ZodTypeDef; interface IZodCatch extends IZodType, unknown> { removeCatch(): T; } type ZodDateCheck = { kind: 'min'; value: number; message?: string; } | { kind: 'max'; value: number; message?: string; }; type ZodDateDef = { checks: ZodDateCheck[]; coerce: boolean; typeName: 'ZodDate'; } & ZodTypeDef; interface IZodDate extends IZodType { min(minDate: Date, message?: ErrMessage): IZodDate; max(maxDate: Date, message?: ErrMessage): IZodDate; minDate: Date | null; maxDate: Date | null; } type ZodDefaultDef = { innerType: T; defaultValue: () => NoUndefined; typeName: 'ZodDefault'; } & ZodTypeDef; interface IZodDefault extends IZodType, ZodDefaultDef, T['_input'] | undefined> { removeDefault(): T; unwrap(): T; } type EnumValues = [string, ...string[]]; type EnumValuesMap = { [k in T[number]]: k; }; type ZodEnumDef = { values: T; typeName: 'ZodEnum'; } & ZodTypeDef; type FilterEnum = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum : [Head, ...FilterEnum] : never; type NeverCast = A extends T ? A : never; interface IZodEnum extends IZodType> { options: T; enum: EnumValuesMap; /** @deprecated use .enum instead */ Values: EnumValuesMap; /** @deprecated use .enum instead */ Enum: EnumValuesMap; extract(values: ToExtract, newDef?: ZodCreateParams): IZodEnum>; exclude(values: ToExclude, newDef?: ZodCreateParams): IZodEnum>, [string, ...string[]]>>; } type ZodNeverDef = { typeName: 'ZodNever'; } & ZodTypeDef; interface IZodNever extends IZodType { } type ZodNullableDef = { innerType: T; typeName: 'ZodNullable'; } & ZodTypeDef; interface IZodNullable extends IZodType, T['_input'] | null> { unwrap(): T; } type ZodOptionalDef = { innerType: T; typeName: 'ZodOptional'; } & ZodTypeDef; interface IZodOptional extends IZodType, T['_input'] | undefined> { unwrap(): T; } type ZodTupleItems = [IZodType, ...IZodType[]]; type AssertArray = T extends any[] ? T : never; type OutputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodTypeAny ? T[k]['_output'] : never; }>; type OutputTypeOfTupleWithRest = Rest extends IZodType ? [...OutputTypeOfTuple, ...Rest['_output'][]] : OutputTypeOfTuple; type InputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodTypeAny ? T[k]['_input'] : never; }>; type InputTypeOfTupleWithRest = Rest extends IZodType ? [...InputTypeOfTuple, ...Rest['_input'][]] : InputTypeOfTuple; type ZodTupleDef = { items: T; rest: Rest; typeName: 'ZodTuple'; } & ZodTypeDef; type AnyZodTuple = IZodTuple<[IZodType, ...IZodType[]] | [], IZodType | null>; interface IZodTuple extends IZodType, ZodTupleDef, InputTypeOfTupleWithRest> { items: T; rest(rest: Rest): IZodTuple; } type ZodRawShape = { [k: string]: IZodType; }; type UnknownKeysParam = 'passthrough' | 'strict' | 'strip' | IZodType; type ZodObjectDef = { typeName: 'ZodObject'; shape: () => T; unknownKeys: UnknownKeys; } & ZodTypeDef; type ObjectOutputType = UnknownKeysOutputType & Flatten>>; type BaseObjectOutputType = { [k in keyof Shape]: Shape[k]['_output']; }; type ObjectInputType = Flatten> & UnknownKeysInputType; type BaseObjectInputType = AddQuestionMarks<{ [k in keyof Shape]: Shape[k]['_input']; }>; type UnknownKeysInputType = T extends IZodType ? { [k: string]: T['_input'] | unknown; } : T extends 'passthrough' ? { [k: string]: unknown; } : {}; type UnknownKeysOutputType = T extends IZodType ? { [k: string]: T['_output'] | unknown; } : T extends 'passthrough' ? { [k: string]: unknown; } : {}; type AdditionalProperties = T extends IZodType ? T : T extends 'passthrough' ? IZodAny : T extends 'strict' ? IZodNever : undefined; type Deoptional = T extends IZodOptional ? Deoptional : T extends IZodNullable ? IZodNullable> : T; type KeyOfObject = Cast, [string, ...string[]]>; /** * @deprecated use ZodObject instead */ type SomeZodObject = IZodObject; type AnyZodObject = IZodObject; interface IZodObject, Input = ObjectInputType> extends IZodType, Input> { shape: T; strict(message?: ErrMessage): IZodObject; strip(): IZodObject; passthrough(): IZodObject; /** * @returns The ZodType that is used to validate additional properties or undefined if extra keys are stripped. */ additionalProperties(): AdditionalProperties; /** * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped. * If you want to pass through unknown properties, use `.passthrough()` instead. */ nonstrict: () => IZodObject; extend(augmentation: Augmentation): IZodObject, UnknownKeys>; /** * @deprecated Use `.extend` instead * */ augment: (augmentation: Augmentation) => IZodObject, UnknownKeys>; /** * Prior to zod@1.0.12 there was a bug in the * inferred type of merged objects. Please * upgrade if you are experiencing issues. */ merge(merging: Incoming): IZodObject, Incoming['_def']['unknownKeys']>; setKey(key: Key, schema: Schema): IZodObject; catchall(index: Index): IZodObject; pick(mask: Mask): IZodObject>, UnknownKeys>; omit(mask: Mask): IZodObject, UnknownKeys>; partial(): IZodObject<{ [k in keyof T]: IZodOptional; }, UnknownKeys>; partial(mask: Mask): IZodObject : T[k]; }>, UnknownKeys>; required(): IZodObject<{ [k in keyof T]: Deoptional; }, UnknownKeys>; required(mask: Mask): IZodObject : T[k]; }>, UnknownKeys>; keyof(): IZodEnum>; } type ZodDiscriminatedUnionOption = IZodObject<{ [key in Discriminator]: IZodType; } & ZodRawShape, UnknownKeysParam>; type ZodDiscriminatedUnionDef[] = ZodDiscriminatedUnionOption[]> = { discriminator: Discriminator; options: Options; optionsMap: Map>; typeName: 'ZodDiscriminatedUnion'; } & ZodTypeDef; interface IZodDiscriminatedUnion[] = ZodDiscriminatedUnionOption[]> extends IZodType, ZodDiscriminatedUnionDef, input> { discriminator: Discriminator; options: Options; optionsMap: Map>; } type ZodUnknownDef = { typeName: 'ZodUnknown'; } & ZodTypeDef; interface IZodUnknown extends IZodType { } type ZodFunctionDef = { args: Args; returns: Returns; typeName: 'ZodFunction'; } & ZodTypeDef; type OuterTypeOfFunction = Args['_input'] extends any[] ? (...args: Args['_input']) => Returns['_output'] : never; type InnerTypeOfFunction = Args['_output'] extends any[] ? (...args: Args['_output']) => Returns['_input'] : never; interface IZodFunction extends IZodType, ZodFunctionDef, InnerTypeOfFunction> { parameters(): Args; returnType(): Returns; args(...items: Items): IZodFunction, Returns>; returns(returnType: NewReturnType): IZodFunction; implement>(func: F): ReturnType extends Returns['_output'] ? (...args: Args['_input']) => ReturnType : OuterTypeOfFunction; strictImplement(func: InnerTypeOfFunction): InnerTypeOfFunction; validate: >(func: F) => ReturnType extends Returns['_output'] ? (...args: Args['_input']) => ReturnType : OuterTypeOfFunction; } type ZodIntersectionDef = { left: T; right: U; typeName: 'ZodIntersection'; } & ZodTypeDef; interface IZodIntersection extends IZodType, T['_input'] & U['_input']> { } type ZodLazyDef = { getter: () => T; typeName: 'ZodLazy'; } & ZodTypeDef; interface IZodLazy extends IZodType, ZodLazyDef, input> { schema: T; } type Primitive = string | number | bigint | boolean | symbol | null | undefined; type ZodLiteralDef = { value: T; typeName: 'ZodLiteral'; } & ZodTypeDef; interface IZodLiteral extends IZodType> { value: T; } type ZodMapDef = { valueType: Value; keyType: Key; typeName: 'ZodMap'; } & ZodTypeDef; interface IZodMap extends IZodType, ZodMapDef, Map> { keySchema: Key; valueSchema: Value; } type ZodNaNDef = { typeName: 'ZodNaN'; } & ZodTypeDef; interface IZodNaN extends IZodType { } type EnumLike = { [k: string]: string | number; [nu: number]: string; }; type ZodNativeEnumDef = { values: T; typeName: 'ZodNativeEnum'; } & ZodTypeDef; interface IZodNativeEnum extends IZodType> { enum: T; } type ZodNullDef = { typeName: 'ZodNull'; } & ZodTypeDef; interface IZodNull extends IZodType { } type ZodNumberCheck = { kind: 'min'; value: number; inclusive: boolean; message?: string; } | { kind: 'max'; value: number; inclusive: boolean; message?: string; } | { kind: 'int'; message?: string; } | { kind: 'multipleOf'; value: number; message?: string; } | { kind: 'finite'; message?: string; }; type ZodNumberDef = { checks: ZodNumberCheck[]; typeName: 'ZodNumber'; coerce: boolean; } & ZodTypeDef; interface IZodNumber extends IZodType { gte(value: number, message?: ErrMessage): IZodNumber; min: (value: number, message?: ErrMessage) => IZodNumber; gt(value: number, message?: ErrMessage): IZodNumber; lte(value: number, message?: ErrMessage): IZodNumber; max: (value: number, message?: ErrMessage) => IZodNumber; lt(value: number, message?: ErrMessage): IZodNumber; int(message?: ErrMessage): IZodNumber; positive(message?: ErrMessage): IZodNumber; negative(message?: ErrMessage): IZodNumber; nonpositive(message?: ErrMessage): IZodNumber; nonnegative(message?: ErrMessage): IZodNumber; multipleOf(value: number, message?: ErrMessage): IZodNumber; step: (value: number, message?: ErrMessage) => IZodNumber; finite(message?: ErrMessage): IZodNumber; safe(message?: ErrMessage): IZodNumber; minValue: number | null; maxValue: number | null; isInt: boolean; isFinite: boolean; } type ZodPipelineDef = { in: A; out: B; typeName: 'ZodPipeline'; } & ZodTypeDef; interface IZodPipeline extends IZodType, A['_input']> { } type ZodPromiseDef = { type: T; typeName: 'ZodPromise'; } & ZodTypeDef; interface IZodPromise extends IZodType, ZodPromiseDef, Promise> { unwrap(): T; } type _BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | { readonly [Symbol.toStringTag]: string; } | Date | Error | Generator | Promise | RegExp; type MakeReadonly = T extends Map ? ReadonlyMap : T extends Set ? ReadonlySet : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array ? ReadonlyArray : T extends _BuiltIn ? T : Readonly; type ZodReadonlyDef = { innerType: T; typeName: 'ZodReadonly'; } & ZodTypeDef; interface IZodReadonly extends IZodType, ZodReadonlyDef, MakeReadonly> { unwrap(): T; } type ZodStringCheck = { kind: 'min'; value: number; message?: string; } | { kind: 'max'; value: number; message?: string; } | { kind: 'length'; value: number; message?: string; } | { kind: 'email'; message?: string; } | { kind: 'url'; message?: string; } | { kind: 'emoji'; message?: string; } | { kind: 'uuid'; message?: string; } | { kind: 'cuid'; message?: string; } | { kind: 'includes'; value: string; position?: number; message?: string; } | { kind: 'cuid2'; message?: string; } | { kind: 'ulid'; message?: string; } | { kind: 'startsWith'; value: string; message?: string; } | { kind: 'endsWith'; value: string; message?: string; } | { kind: 'regex'; regex: RegExp; message?: string; } | { kind: 'trim'; message?: string; } | { kind: 'toLowerCase'; message?: string; } | { kind: 'toUpperCase'; message?: string; } | { kind: 'datetime'; offset: boolean; precision: number | null; message?: string; } | { kind: 'ip'; version?: 'v4' | 'v6'; message?: string; }; type ZodStringDef = { checks: ZodStringCheck[]; typeName: 'ZodString'; coerce: boolean; } & ZodTypeDef; interface IZodString extends IZodType { email(message?: ErrMessage): IZodString; url(message?: ErrMessage): IZodString; emoji(message?: ErrMessage): IZodString; uuid(message?: ErrMessage): IZodString; cuid(message?: ErrMessage): IZodString; cuid2(message?: ErrMessage): IZodString; ulid(message?: ErrMessage): IZodString; ip(options?: string | { version?: 'v4' | 'v6'; message?: string; }): IZodString; datetime(options?: string | { message?: string | undefined; precision?: number | null; offset?: boolean; }): IZodString; regex(regex: RegExp, message?: ErrMessage): IZodString; includes(value: string, options?: { message?: string; position?: number; }): IZodString; startsWith(value: string, message?: ErrMessage): IZodString; endsWith(value: string, message?: ErrMessage): IZodString; min(minLength: number, message?: ErrMessage): IZodString; max(maxLength: number, message?: ErrMessage): IZodString; length(len: number, message?: ErrMessage): IZodString; /** * @deprecated Use z.string().min(1) instead. * @see {@link IZodString.min} */ nonempty(message?: ErrMessage): IZodString; trim(): IZodString; secret(): this; toLowerCase(): IZodString; toUpperCase(): IZodString; isDatetime: boolean; isEmail: boolean; isURL: boolean; isEmoji: boolean; isUUID: boolean; isCUID: boolean; isCUID2: boolean; isULID: boolean; isIP: boolean; minLength: number | null; maxLength: number | null; } type ZodRecordDef = { valueType: Value; keyType: Key; typeName: 'ZodRecord'; } & ZodTypeDef; type KeySchema = IZodType; type RecordType = [string] extends [K] ? Record : [number] extends [K] ? Record : [symbol] extends [K] ? Record : [BRAND] extends [K] ? Record : Partial>; interface IZodRecord extends IZodType, ZodRecordDef, RecordType> { keySchema: Key; valueSchema: Value; element: Value; } type ZodRefDef = { typeName: 'ZodRef'; uri: string; } & ZodTypeDef; interface IZodRef extends IZodType, ZodRefDef> { } type ZodSetDef = { valueType: Value; typeName: 'ZodSet'; minSize: { value: number; message?: string; } | null; maxSize: { value: number; message?: string; } | null; } & ZodTypeDef; interface IZodSet extends IZodType, ZodSetDef, Set> { min(minSize: number, message?: ErrMessage): this; max(maxSize: number, message?: ErrMessage): this; size(size: number, message?: ErrMessage): this; nonempty(message?: ErrMessage): IZodSet; } type ZodSymbolDef = { typeName: 'ZodSymbol'; } & ZodTypeDef; interface IZodSymbol extends IZodType { } type EffectIssue = ZodIssueBody & { path?: (string | number)[]; message?: string; }; type InvalidEffectReturnType = { status: 'aborted'; issues: EffectIssue[]; }; type DirtyEffectReturnType = { status: 'dirty'; value: T; issues: EffectIssue[]; }; type ValidEffectReturnType = { status: 'valid'; value: T; }; type EffectReturnType = InvalidEffectReturnType | DirtyEffectReturnType | ValidEffectReturnType; type EffectContext = { path: (string | number)[]; }; type UpstreamEffect = { type: 'upstream'; effect: (arg: I, ctx: EffectContext) => EffectReturnType | Promise | undefined> | undefined; }; type DownstreamEffect = { type: 'downstream'; failFast?: boolean; effect: (arg: I, ctx: EffectContext) => EffectReturnType | Promise | undefined> | undefined; }; type Effect = UpstreamEffect | DownstreamEffect; type ZodEffectsDef = { schema: T; typeName: 'ZodEffects'; effect: Effect; } & ZodTypeDef; interface IZodEffects, Input = input> extends IZodType, Input> { innerType(): T; /** * @deprecated use naked instead */ sourceType(): T; } type ZodUndefinedDef = { typeName: 'ZodUndefined'; } & ZodTypeDef; interface IZodUndefined extends IZodType { } type DefaultZodUnionOptions = Readonly<[IZodType, IZodType, ...IZodType[]]>; type ZodUnionOptions = Readonly<[IZodType, ...IZodType[]]>; type ZodUnionDef = { options: T; typeName: 'ZodUnion'; } & ZodTypeDef; interface IZodUnion extends IZodType, T[number]['_input']> { options: T; } type ZodVoidDef = { typeName: 'ZodVoid'; } & ZodTypeDef; interface IZodVoid extends IZodType { } /** * @deprecated - use ZodNativeType instead */ type ZodFirstPartySchemaTypes = ZodNativeType; type ZodNativeType = IZodAny | IZodArray | IZodBigInt | IZodBoolean | IZodBranded | IZodCatch | IZodDate | IZodDefault | IZodDiscriminatedUnion | IZodEnum | IZodFunction | IZodIntersection | IZodLazy | IZodLiteral | IZodMap | IZodNaN | IZodNativeEnum | IZodNever | IZodNull | IZodNullable | IZodNumber | IZodObject | IZodOptional | IZodPipeline | IZodPromise | IZodReadonly | IZodRecord | IZodRef | IZodSet | IZodString | IZodSymbol | IZodEffects | IZodTuple | IZodUndefined | IZodUnion | IZodUnknown | IZodVoid; type ZodNativeTypeDef = ZodNativeType['_def']; type ZodNativeTypeName = ZodNativeTypeDef['typeName']; type CustomParams = CustomErrorParams & { fatal?: boolean; }; declare function createCustom(check?: (data: unknown) => unknown, params?: string | CustomParams | ((input: unknown) => CustomParams), fatal?: boolean): IZodType; declare function createInstanceOf any>(cls: T, params?: CustomParams): IZodType>; declare function createAny(params?: ZodCreateParams): IZodAny; declare function createUnknown(params?: ZodCreateParams): IZodUnknown; declare function createNever(params?: ZodCreateParams): IZodNever; declare function createVoid(params?: ZodCreateParams): IZodVoid; declare function createNull(params?: ZodCreateParams): IZodNull; declare function createUndefined(params?: ZodCreateParams): IZodUndefined; declare function createSymbol(params?: ZodCreateParams): IZodSymbol; declare function createNan(params?: ZodCreateParams): IZodNaN; declare function createString(params?: ZodCreateParams & { coerce?: true; }): IZodString; declare function createNumber(params?: ZodCreateParams & { coerce?: boolean; }): IZodNumber; declare function createBoolean(params?: ZodCreateParams & { coerce?: boolean; }): IZodBoolean; declare function createBigInt(params?: ZodCreateParams & { coerce?: boolean; }): IZodBigInt; declare function createDate(params?: ZodCreateParams & { coerce?: boolean; }): IZodDate; declare function createRef(uri: string): IZodRef; declare function createLiteral(value: T, params?: ZodCreateParams): IZodLiteral; declare function createEnum>(values: T, params?: ZodCreateParams): IZodEnum>; declare function createEnum(values: T, params?: ZodCreateParams): IZodEnum; declare function createEnum(values: [string, ...string[]], params?: ZodCreateParams): IZodEnum<[string, ...string[]]>; declare function createNativeEnum(values: T, params?: ZodCreateParams): IZodNativeEnum; declare function createArray(schema: T, params?: ZodCreateParams): IZodArray; declare function createObject(shape: T, params?: ZodCreateParams): IZodObject; declare function createStrictObject(shape: T, params?: ZodCreateParams): IZodObject; declare function createUnion>(types: T, params?: ZodCreateParams): IZodUnion; declare function createDiscriminatedUnion, ...ZodDiscriminatedUnionOption[]]>(discriminator: Discriminator, options: Types, params?: ZodCreateParams): IZodDiscriminatedUnion; declare function createIntersection(left: T, right: U, params?: ZodCreateParams): IZodIntersection; declare function createTuple(schemas: T, params?: ZodCreateParams): IZodTuple; declare function createRecord(valueType: Value, params?: ZodCreateParams): IZodRecord; declare function createRecord(keySchema: Keys, valueType: Value, params?: ZodCreateParams): IZodRecord; declare function createRecord(first: KeySchema | IZodType, second?: ZodCreateParams | IZodType, third?: ZodCreateParams): IZodRecord; declare function createMap(keyType: Key, valueType: Value, params?: ZodCreateParams): IZodMap; declare function createSet(valueType: Value, params?: ZodCreateParams): IZodSet; declare function createLazy(getter: () => T, params?: ZodCreateParams): IZodLazy; declare function createPromise(schema: T, params?: ZodCreateParams): IZodPromise; declare function createFunction(): IZodFunction, IZodUnknown>; declare function createFunction>(args: T): IZodFunction; declare function createFunction, U extends IZodType>(args: T, returns: U): IZodFunction; declare function createFunction, U extends IZodType>(args: T, returns: U, params: ZodCreateParams): IZodFunction; declare function createFunction(args?: AnyZodTuple, returns?: IZodType, params?: ZodCreateParams): IZodFunction; declare function createPreprocess, O>(preprocess: (arg: unknown, ctx: EffectContext) => O | Promise, schema: T, params?: ZodCreateParams): IZodEffects, unknown>; declare function createUpstream, O>(upstream: (arg: unknown, ctx: EffectContext) => EffectReturnType | Promise | undefined> | undefined, schema: T, params?: ZodCreateParams): IZodEffects, unknown>; declare function createDownstream(schema: T, downstream: (arg: output, ctx: EffectContext) => EffectReturnType | Promise | undefined> | undefined, params?: ZodCreateParams & { failFast?: boolean; }): IZodEffects; declare function createOptional(type: T, params?: ZodCreateParams): IZodOptional; declare function createNullable(type: T, params?: ZodCreateParams): IZodNullable; declare function createReadonly(type: T, params?: ZodCreateParams): IZodReadonly; declare function createDefault(type: T, value: T['_input'] | (() => NoUndefined), params?: ZodCreateParams): IZodDefault; declare function createCatch(type: T, catcher: T['_output'] | CatchFn, params?: ZodCreateParams): IZodCatch; declare function createPipeline(a: A, b: B): IZodPipeline; declare function createBranded(type: T): IZodBranded; type ZodBuilders = { any: typeof createAny; array: typeof createArray; bigint: typeof createBigInt; boolean: typeof createBoolean; branded: typeof createBranded; catch: typeof createCatch; custom: typeof createCustom; date: typeof createDate; default: typeof createDefault; discriminatedUnion: typeof createDiscriminatedUnion; enum: typeof createEnum; function: typeof createFunction; instanceof: typeof createInstanceOf; intersection: typeof createIntersection; lazy: typeof createLazy; literal: typeof createLiteral; map: typeof createMap; nan: typeof createNan; nativeEnum: typeof createNativeEnum; never: typeof createNever; null: typeof createNull; nullable: typeof createNullable; number: typeof createNumber; object: typeof createObject; optional: typeof createOptional; pipeline: typeof createPipeline; preprocess: typeof createPreprocess; upstream: typeof createUpstream; downstream: typeof createDownstream; promise: typeof createPromise; record: typeof createRecord; ref: typeof createRef; readonly: typeof createReadonly; set: typeof createSet; strictObject: typeof createStrictObject; string: typeof createString; symbol: typeof createSymbol; tuple: typeof createTuple; undefined: typeof createUndefined; union: typeof createUnion; unknown: typeof createUnknown; void: typeof createVoid; }; type _GuardName = S extends `Zod${infer R}` ? `zui${R}` : never; type _Guards = { [G in ZodNativeTypeName as _GuardName]: (value: IZodType) => value is Extract; } & { zuiError: (thrown: unknown) => thrown is IZodError; zuiType: (value: unknown) => value is ZodNativeType; }; declare const is: _Guards; declare const customType: ZodBuilders['custom']; declare const instanceOfType: ZodBuilders['instanceof']; declare const anyType: ZodBuilders['any']; declare const unknownType: ZodBuilders['unknown']; declare const neverType: ZodBuilders['never']; declare const voidType: ZodBuilders['void']; declare const nullType: ZodBuilders['null']; declare const undefinedType: ZodBuilders['undefined']; declare const symbolType: ZodBuilders['symbol']; declare const nanType: ZodBuilders['nan']; declare const stringType: ZodBuilders['string']; declare const numberType: ZodBuilders['number']; declare const booleanType: ZodBuilders['boolean']; declare const bigIntType: ZodBuilders['bigint']; declare const dateType: ZodBuilders['date']; declare const refType: ZodBuilders['ref']; declare const literalType: ZodBuilders['literal']; declare const enumType: ZodBuilders['enum']; declare const nativeEnumType: ZodBuilders['nativeEnum']; declare const arrayType: ZodBuilders['array']; declare const objectType: ZodBuilders['object']; declare const strictObjectType: ZodBuilders['strictObject']; declare const unionType: ZodBuilders['union']; declare const discriminatedUnionType: ZodBuilders['discriminatedUnion']; declare const intersectionType: ZodBuilders['intersection']; declare const tupleType: ZodBuilders['tuple']; declare const recordType: ZodBuilders['record']; declare const mapType: ZodBuilders['map']; declare const setType: ZodBuilders['set']; declare const lazyType: ZodBuilders['lazy']; declare const promiseType: ZodBuilders['promise']; declare const functionType: ZodBuilders['function']; declare const preprocessType: ZodBuilders['preprocess']; declare const upstreamType: ZodBuilders['upstream']; declare const downstreamType: ZodBuilders['downstream']; declare const optionalType: ZodBuilders['optional']; declare const nullableType: ZodBuilders['nullable']; declare const readonlyType: ZodBuilders['readonly']; declare const defaultType: ZodBuilders['default']; declare const catchType: ZodBuilders['catch']; declare const pipelineType: ZodBuilders['pipeline']; declare const brandedType: ZodBuilders['branded']; declare const coerce: { string(arg?: ZodCreateParams & { coerce?: true; }): ReturnType; number(arg?: ZodCreateParams & { coerce?: boolean; }): ReturnType; boolean(arg?: ZodCreateParams & { coerce?: boolean; }): ReturnType; bigint(arg?: ZodCreateParams & { coerce?: boolean; }): ReturnType; date(arg?: ZodCreateParams & { coerce?: boolean; }): ReturnType; }; declare const OK: (value: T) => ValidEffectReturnType; declare const ERR: (issue: EffectIssue, ...issues: EffectIssue[]) => InvalidEffectReturnType; declare const DIRTY: (value: T, issue: EffectIssue, ...issues: EffectIssue[]) => DirtyEffectReturnType; type JsonSchema7AnyType = { [zuiKey$1]?: ZuiExtensionObject; }; type Targets = 'jsonSchema7' | 'jsonSchema2019-09' | 'openApi3'; type Options = { name: string | undefined; $refStrategy: 'root' | 'relative' | 'none' | 'seen'; basePath: string[]; effectStrategy: 'input' | 'any'; pipeStrategy: 'input' | 'output' | 'all'; dateStrategy: 'string' | 'integer'; mapStrategy: 'entries' | 'record'; target: Target; strictUnions: boolean; definitionPath: string; definitions: Record; errorMessages: boolean; markdownDescription: boolean; patternStrategy: 'escape' | 'preserve'; emailStrategy: 'format:email' | 'format:idn-email' | 'pattern:zod'; discriminator: boolean; unionStrategy: 'anyOf' | 'oneOf'; }; type ErrorMessages = Partial>; type JsonSchema7ArrayType = { type: 'array'; items?: JsonSchema7Type; minItems?: number; maxItems?: number; errorMessages?: ErrorMessages; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7BigintType = { type: 'integer'; format: 'int64'; minimum?: BigInt; exclusiveMinimum?: BigInt; maximum?: BigInt; exclusiveMaximum?: BigInt; multipleOf?: BigInt; errorMessage?: ErrorMessages; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7BooleanType = { type: 'boolean'; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7NumberType = { type: 'number' | 'integer'; minimum?: number; exclusiveMinimum?: number; maximum?: number; exclusiveMaximum?: number; multipleOf?: number; errorMessage?: ErrorMessages; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7DateType = { type: 'integer' | 'string'; format: 'unix-time' | 'date-time'; minimum?: number; maximum?: number; errorMessage?: ErrorMessages; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7EnumType = { type: 'string'; enum: string[]; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7AllOfType = { allOf: JsonSchema7Type[]; unevaluatedProperties?: boolean; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7LiteralType = { type: 'string' | 'number' | 'integer' | 'boolean'; const: string | number | boolean; [zuiKey$1]?: ZuiExtensionObject; } | { type: 'object' | 'array'; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7StringType = { type: 'string'; minLength?: number; maxLength?: number; format?: 'email' | 'idn-email' | 'uri' | 'uuid' | 'date-time' | 'ipv4' | 'ipv6'; pattern?: string; allOf?: { pattern: string; errorMessage?: ErrorMessages<{ type: 'string'; pattern: string; }>; }[]; anyOf?: { format: string; errorMessage?: ErrorMessages<{ type: 'string'; format: string; }>; }[]; errorMessage?: ErrorMessages; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7RecordPropertyNamesType = Omit | Omit; type JsonSchema7RecordType = { type: 'object'; additionalProperties: JsonSchema7Type; propertyNames?: JsonSchema7RecordPropertyNamesType; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7MapType = { type: 'array'; maxItems: 125; items: { type: 'array'; items: [JsonSchema7Type, JsonSchema7Type]; minItems: 2; maxItems: 2; }; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7NativeEnumType = { type: 'string' | 'number' | ['string', 'number']; enum: (string | number)[]; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7NeverType = { not: {}; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7NullType = { type: 'null'; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7NullableType = { anyOf: [JsonSchema7Type, JsonSchema7NullType]; [zuiKey$1]?: ZuiExtensionObject; } | { type: [string, 'null']; [zuiKey$1]?: ZuiExtensionObject; }; declare const zuiKey: "x-zui"; type JsonSchema7ObjectType = { type: 'object'; properties: Record; additionalProperties: boolean | JsonSchema7Type; required?: string[]; [zuiKey]?: ZuiExtensionObject; }; type JsonSchema7RefType = { $ref: string; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7SetType = { type: 'array'; uniqueItems: true; items?: JsonSchema7Type; minItems?: number; maxItems?: number; errorMessage?: ErrorMessages; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7TupleType = { type: 'array'; minItems: number; items: JsonSchema7Type[]; [zuiKey$1]?: ZuiExtensionObject; } & ({ maxItems: number; } | { additionalItems?: JsonSchema7Type; }); type JsonSchema7UndefinedType = { not: {}; [zuiKey$1]?: ZuiExtensionObject; }; declare const primitiveMappings: { readonly ZodString: "string"; readonly ZodNumber: "number"; readonly ZodBigInt: "integer"; readonly ZodBoolean: "boolean"; readonly ZodNull: "null"; }; type JsonSchema7Primitive = (typeof primitiveMappings)[keyof typeof primitiveMappings]; type JsonSchema7UnionType = JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType | JsonSchema7OneOfType; type JsonSchema7PrimitiveUnionType = { type: JsonSchema7Primitive | JsonSchema7Primitive[]; [zuiKey$1]?: ZuiExtensionObject; } | { type: JsonSchema7Primitive | JsonSchema7Primitive[]; enum: (string | number | bigint | boolean | null)[]; [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7AnyOfType = { anyOf: JsonSchema7Type[]; discriminator?: { propertyName: string; }; }; type JsonSchema7OneOfType = { oneOf: JsonSchema7Type[]; discriminator?: { propertyName: string; }; }; type JsonSchema7UnknownType = { [zuiKey$1]?: ZuiExtensionObject; }; type JsonSchema7Meta = { default?: any; description?: string; markdownDescription?: string; }; type JsonSchema7TypeUnion = JsonSchema7StringType | JsonSchema7ArrayType | JsonSchema7NumberType | JsonSchema7BigintType | JsonSchema7BooleanType | JsonSchema7DateType | JsonSchema7EnumType | JsonSchema7LiteralType | JsonSchema7NativeEnumType | JsonSchema7NullType | JsonSchema7NumberType | JsonSchema7ObjectType | JsonSchema7RecordType | JsonSchema7TupleType | JsonSchema7UnionType | JsonSchema7UndefinedType | JsonSchema7RefType | JsonSchema7NeverType | JsonSchema7MapType | JsonSchema7AnyType | JsonSchema7NullableType | JsonSchema7AllOfType | JsonSchema7UnknownType | JsonSchema7SetType; type JsonSchema7Type = JsonSchema7TypeUnion & JsonSchema7Meta; /** * Converts a JSONSchema to a Zui schema. * * @deprecated Use the new fromJSONSchema function instead. */ declare const fromJSONSchemaLegacy: (schema: JsonSchema7Type) => ZodTypeAny; /** * Converts a JSON Schema to a ZUI Schema. * @param schema json schema * @returns ZUI Schema */ declare function fromJSONSchema(schema: JSONSchema7): IZodType; type ObjectToZuiOptions = { optional?: boolean; nullable?: boolean; passtrough?: boolean; }; /** * Converts a plain object to a Zod schema, by inferring the types of its properties. * * @param obj - The object to convert. * @param opts - Options to customize the Zod schema: * @returns A Zod schema representing the object. */ declare const fromObject: (obj: object, opts?: ObjectToZuiOptions, isRoot?: boolean) => IZodType; /** * @description Options for JSON schema generation. */ type JSONSchemaLegacyGenerationOptions = { /** * The scope is the full path to the property defined in the JSON schema, the root node being represented by # * Objects doesn't have any scope, only its child does * @default "#/properties/" * */ rootScope?: string; /** * Sets the $schema path. If set to false, it will remove the $schema property from the schema */ $schemaUrl?: string | false; target?: 'jsonSchema7' | 'openApi3'; } & Partial>; /** * Converts a Zod schema to a JSON Schema. * * @deprecated Use the new toJSONSchema function instead. */ declare const toJSONSchemaLegacy: (zuiType: IZodType, opts?: JSONSchemaLegacyGenerationOptions) => JSONSchema7; /** * Definitions: * * Mutiple zui schemas map to the same JSON schema; undefined/never, any/unknown, union/discriminated-union * Adding some ZodDef to the ZuiExtension allows us to differentiate between them */ type NullableDef = Satisfies<{ typeName: 'ZodNullable'; }, Partial>; type OptionalDef = Satisfies<{ typeName: 'ZodOptional'; }, Partial>; type UndefinedDef = Satisfies<{ typeName: 'ZodUndefined'; }, Partial>; type UnknownDef = Satisfies<{ typeName: 'ZodUnknown'; }, Partial>; type DiscriminatedUnionDef = Satisfies<{ typeName: 'ZodDiscriminatedUnion'; discriminator?: string; }, Partial>; /** * ZuiJSONSchema: * * A ZUI flavored subset of JSONSchema7 */ type ZuiExtension = {}> = { def?: Def; } & ZuiExtensionObject; type JsonData = string | number | boolean | null | JsonData[] | { [key: string]: JsonData; }; type BaseZuiJSONSchema = {}> = Satisfies<{ description?: string; readOnly?: boolean; default?: JsonData; ['x-zui']?: ZuiExtension; }, JSONSchema7>; type _ZodSpecificStringFormat = 'cuid' | 'cuid2' | 'emoji' | 'ulid'; type _JSONSchemaStringFormat = 'date-time' | 'email' | 'ipv4' | 'ipv6' | 'uri' | 'uuid'; type _StringSchema = Satisfies<{ type: 'string'; pattern?: string; format?: _JSONSchemaStringFormat | _ZodSpecificStringFormat; minLength?: number; maxLength?: number; }, JSONSchema7>; type _ZodSpecificNumberFormat = 'finite'; type _NumberSchema = Satisfies<{ type: 'number' | 'integer'; minimum?: number; exclusiveMinimum?: number; maximum?: number; exclusiveMaximum?: number; multipleOf?: number; format?: _ZodSpecificNumberFormat; }, JSONSchema7>; type _BooleanSchema = Satisfies<{ type: 'boolean'; }, JSONSchema7>; type _NullSchema = Satisfies<{ type: 'null'; }, JSONSchema7>; type _UndefinedSchema = Satisfies<{ not: true; }, JSONSchema7>; type _NeverSchema = Satisfies<{ not: true; }, JSONSchema7>; type _ArraySchema = Satisfies<{ type: 'array'; items: Schema; minItems?: number; maxItems?: number; }, JSONSchema7>; type _UnionSchema = Satisfies<{ anyOf: Schema[]; } | { oneOf: Schema[]; }, JSONSchema7>; type _DiscriminatedUnionSchema = Satisfies<{ anyOf: Schema[]; } | { oneOf: Schema[]; discriminator?: { propertyName: string; }; }, JSONSchema7>; type _IntersectionSchema = Satisfies<{ allOf: Schema[]; }, JSONSchema7>; type _SetSchema = Satisfies<{ type: 'array'; items: Schema; uniqueItems: true; minItems?: number; maxItems?: number; }, JSONSchema7>; type _EnumSchema = Satisfies<{ type: 'string'; enum: string[]; }, JSONSchema7>; type _RefSchema = Satisfies<{ $ref: string; }, JSONSchema7>; type _ObjectSchema = Satisfies<{ type: 'object'; properties: { [key: string]: Schema; }; additionalProperties?: Schema | boolean; required?: string[]; }, JSONSchema7>; type _TupleSchema = Satisfies<{ type: 'array'; items: Schema[]; additionalItems?: Schema; }, JSONSchema7>; type _RecordSchema = Satisfies<{ type: 'object'; additionalProperties: Schema; }, JSONSchema7>; type _LiteralStringSchema = Satisfies<{ type: 'string'; const: string; }, JSONSchema7>; type _LiteralNumberSchema = Satisfies<{ type: 'number'; const: number; }, JSONSchema7>; type _LiteralBooleanSchema = Satisfies<{ type: 'boolean'; const: boolean; }, JSONSchema7>; type _OptionalSchema = Satisfies<{ anyOf: [Schema, UndefinedSchema]; }, JSONSchema7>; type _NullableSchema = Satisfies<{ anyOf: [Schema, NullSchema]; }, JSONSchema7>; type StringSchema = _StringSchema & BaseZuiJSONSchema; type NumberSchema = _NumberSchema & BaseZuiJSONSchema; type BooleanSchema = _BooleanSchema & BaseZuiJSONSchema; type NullSchema = _NullSchema & BaseZuiJSONSchema; type UndefinedSchema = _UndefinedSchema & BaseZuiJSONSchema; type NeverSchema = _NeverSchema & BaseZuiJSONSchema; type AnySchema = BaseZuiJSONSchema; type UnknownSchema = BaseZuiJSONSchema; type ArraySchema = _ArraySchema & BaseZuiJSONSchema; type UnionSchema = _UnionSchema & BaseZuiJSONSchema; type DiscriminatedUnionSchema = _DiscriminatedUnionSchema & BaseZuiJSONSchema; type IntersectionSchema = _IntersectionSchema & BaseZuiJSONSchema; type SetSchema = _SetSchema & BaseZuiJSONSchema; type EnumSchema = _EnumSchema & BaseZuiJSONSchema; type RefSchema = _RefSchema & BaseZuiJSONSchema; type ObjectSchema = _ObjectSchema & BaseZuiJSONSchema; type TupleSchema = _TupleSchema & BaseZuiJSONSchema; type RecordSchema = _RecordSchema & BaseZuiJSONSchema; type LiteralStringSchema = _LiteralStringSchema & BaseZuiJSONSchema; type LiteralNumberSchema = _LiteralNumberSchema & BaseZuiJSONSchema; type LiteralBooleanSchema = _LiteralBooleanSchema & BaseZuiJSONSchema; type OptionalSchema = _OptionalSchema & BaseZuiJSONSchema; type NullableSchema = _NullableSchema & BaseZuiJSONSchema; type LiteralSchema = LiteralStringSchema | LiteralNumberSchema | LiteralBooleanSchema; /** * Zui flavored JSON Schema; a subset of JSONSchema7 that includes Zui extensions */ type Schema = StringSchema | NumberSchema | BooleanSchema | UndefinedSchema | NullSchema | AnySchema | UnknownSchema | NeverSchema | ArraySchema | ObjectSchema | UnionSchema | DiscriminatedUnionSchema | IntersectionSchema | TupleSchema | RecordSchema | SetSchema | LiteralSchema | EnumSchema | RefSchema | OptionalSchema | NullableSchema; type jsonSchema_AnySchema = AnySchema; type jsonSchema_ArraySchema = ArraySchema; type jsonSchema_BooleanSchema = BooleanSchema; type jsonSchema_DiscriminatedUnionSchema = DiscriminatedUnionSchema; type jsonSchema_EnumSchema = EnumSchema; type jsonSchema_IntersectionSchema = IntersectionSchema; type jsonSchema_LiteralBooleanSchema = LiteralBooleanSchema; type jsonSchema_LiteralNumberSchema = LiteralNumberSchema; type jsonSchema_LiteralSchema = LiteralSchema; type jsonSchema_LiteralStringSchema = LiteralStringSchema; type jsonSchema_NeverSchema = NeverSchema; type jsonSchema_NullSchema = NullSchema; type jsonSchema_NullableSchema = NullableSchema; type jsonSchema_NumberSchema = NumberSchema; type jsonSchema_ObjectSchema = ObjectSchema; type jsonSchema_OptionalSchema = OptionalSchema; type jsonSchema_RecordSchema = RecordSchema; type jsonSchema_RefSchema = RefSchema; type jsonSchema_Schema = Schema; type jsonSchema_SetSchema = SetSchema; type jsonSchema_StringSchema = StringSchema; type jsonSchema_TupleSchema = TupleSchema; type jsonSchema_UndefinedSchema = UndefinedSchema; type jsonSchema_UnionSchema = UnionSchema; type jsonSchema_UnknownSchema = UnknownSchema; declare namespace jsonSchema { export type { jsonSchema_AnySchema as AnySchema, jsonSchema_ArraySchema as ArraySchema, jsonSchema_BooleanSchema as BooleanSchema, jsonSchema_DiscriminatedUnionSchema as DiscriminatedUnionSchema, jsonSchema_EnumSchema as EnumSchema, jsonSchema_IntersectionSchema as IntersectionSchema, jsonSchema_LiteralBooleanSchema as LiteralBooleanSchema, jsonSchema_LiteralNumberSchema as LiteralNumberSchema, jsonSchema_LiteralSchema as LiteralSchema, jsonSchema_LiteralStringSchema as LiteralStringSchema, jsonSchema_NeverSchema as NeverSchema, jsonSchema_NullSchema as NullSchema, jsonSchema_NullableSchema as NullableSchema, jsonSchema_NumberSchema as NumberSchema, jsonSchema_ObjectSchema as ObjectSchema, jsonSchema_OptionalSchema as OptionalSchema, jsonSchema_RecordSchema as RecordSchema, jsonSchema_RefSchema as RefSchema, jsonSchema_Schema as Schema, jsonSchema_SetSchema as SetSchema, jsonSchema_StringSchema as StringSchema, jsonSchema_TupleSchema as TupleSchema, jsonSchema_UndefinedSchema as UndefinedSchema, jsonSchema_UnionSchema as UnionSchema, jsonSchema_UnknownSchema as UnknownSchema }; } type JSONSchemaUnionStrategy = 'oneOf' | 'anyOf'; /** * @description Options for JSON schema generation. */ type JSONSchemaGenerationOptions = { /** * @default 'anyOf' */ unionStrategy: JSONSchemaUnionStrategy; /** * @default 'oneOf' */ discriminatedUnionStrategy: JSONSchemaUnionStrategy; /** * @default true * @description * Whether to include the discriminator property in the generated JSON schema for discriminated unions. * This property is not part of the JSON schema specification but is used by some tools to optimize validation and code generation for discriminated unions. * If set to false, the discriminator property will be omitted from the generated JSON schema. * Only affects the generated JSON schema when `discriminatedUnionStrategy` is set to 'oneOf'. * For more details, see: https://ajv.js.org/guide/modifying-data.html#removing-additional-properties */ discriminator: boolean; }; /** * Converts a Zui schema to a ZUI flavored JSON schema. * @param schema zui schema * @returns ZUI flavored JSON schema */ declare function toJSONSchema(schema: IZodType, options?: Partial): Schema; type DeclarationProps = { type: 'variable'; schema: IZodType; identifier: string; } | { type: 'type'; schema: IZodType; identifier: string; args: string[]; } | { type: 'none'; schema: IZodType; }; type TypescriptDeclarationType = DeclarationProps['type']; /** * @description Options for Typescript type generation. */ type TypescriptGenerationOptions = { formatter?: (typing: string) => string; declaration?: boolean | TypescriptDeclarationType; /** * Whether to include closing tags in the generated TypeScript declarations when they exceed 5 lines. * This improves readability for large type declarations by adding comments like "// end of TypeName". */ includeClosingTags?: boolean; treatDefaultAsOptional?: boolean; }; /** * * @param schema zui schema * @param options generation options * @returns a string of the TypeScript **type** representing the schema */ declare function toTypescriptType(schema: IZodType, options?: TypescriptGenerationOptions): string; /** * * @param schema zui schema * @param options generation options * @returns a typescript program that would construct the given schema if executed */ declare function toTypescriptSchema(schema: IZodType): string; type Transform = 'json-schema-to-zui' | 'object-to-zui' | 'zui-to-json-schema' | 'zui-to-typescript-schema' | 'zui-to-typescript-type'; declare abstract class ZuiTransformError extends Error { readonly transform: Transform; constructor(transform: Transform, message?: string); } declare class JSONSchemaToZuiError extends ZuiTransformError { constructor(message?: string); } declare class ObjectToZuiError extends ZuiTransformError { constructor(message?: string); } declare class ZuiToJSONSchemaError extends ZuiTransformError { constructor(message?: string); } declare class UnsupportedZuiToJSONSchemaError extends ZuiToJSONSchemaError { constructor(type: ZodNativeTypeName, { suggestedAlternative }?: { suggestedAlternative?: string; }); } declare class UnsupportedZuiCheckToJSONSchemaError extends ZuiToJSONSchemaError { constructor({ zodType, checkKind }: { zodType: ZodNativeTypeName; checkKind: string; }); } declare class UnsupportedJSONSchemaToZuiError extends JSONSchemaToZuiError { constructor(schema: JSONSchema7); } declare class ZuiToTypescriptSchemaError extends ZuiTransformError { constructor(message?: string); } declare class UnsupportedZuiToTypescriptSchemaError extends ZuiToTypescriptSchemaError { constructor(type: ZodNativeTypeName); } declare class ZuiToTypescriptTypeError extends ZuiTransformError { constructor(message?: string); } declare class UnsupportedZuiToTypescriptTypeError extends ZuiToTypescriptTypeError { constructor(type: ZodNativeTypeName); } declare class UntitledDeclarationError extends ZuiToTypescriptTypeError { constructor(); } declare class UnrepresentableGenericError extends ZuiToTypescriptTypeError { constructor(); } type errors_JSONSchemaToZuiError = JSONSchemaToZuiError; declare const errors_JSONSchemaToZuiError: typeof JSONSchemaToZuiError; type errors_ObjectToZuiError = ObjectToZuiError; declare const errors_ObjectToZuiError: typeof ObjectToZuiError; type errors_UnrepresentableGenericError = UnrepresentableGenericError; declare const errors_UnrepresentableGenericError: typeof UnrepresentableGenericError; type errors_UnsupportedJSONSchemaToZuiError = UnsupportedJSONSchemaToZuiError; declare const errors_UnsupportedJSONSchemaToZuiError: typeof UnsupportedJSONSchemaToZuiError; type errors_UnsupportedZuiCheckToJSONSchemaError = UnsupportedZuiCheckToJSONSchemaError; declare const errors_UnsupportedZuiCheckToJSONSchemaError: typeof UnsupportedZuiCheckToJSONSchemaError; type errors_UnsupportedZuiToJSONSchemaError = UnsupportedZuiToJSONSchemaError; declare const errors_UnsupportedZuiToJSONSchemaError: typeof UnsupportedZuiToJSONSchemaError; type errors_UnsupportedZuiToTypescriptSchemaError = UnsupportedZuiToTypescriptSchemaError; declare const errors_UnsupportedZuiToTypescriptSchemaError: typeof UnsupportedZuiToTypescriptSchemaError; type errors_UnsupportedZuiToTypescriptTypeError = UnsupportedZuiToTypescriptTypeError; declare const errors_UnsupportedZuiToTypescriptTypeError: typeof UnsupportedZuiToTypescriptTypeError; type errors_UntitledDeclarationError = UntitledDeclarationError; declare const errors_UntitledDeclarationError: typeof UntitledDeclarationError; type errors_ZuiToJSONSchemaError = ZuiToJSONSchemaError; declare const errors_ZuiToJSONSchemaError: typeof ZuiToJSONSchemaError; type errors_ZuiToTypescriptSchemaError = ZuiToTypescriptSchemaError; declare const errors_ZuiToTypescriptSchemaError: typeof ZuiToTypescriptSchemaError; type errors_ZuiToTypescriptTypeError = ZuiToTypescriptTypeError; declare const errors_ZuiToTypescriptTypeError: typeof ZuiToTypescriptTypeError; type errors_ZuiTransformError = ZuiTransformError; declare const errors_ZuiTransformError: typeof ZuiTransformError; declare namespace errors { export { errors_JSONSchemaToZuiError as JSONSchemaToZuiError, errors_ObjectToZuiError as ObjectToZuiError, errors_UnrepresentableGenericError as UnrepresentableGenericError, errors_UnsupportedJSONSchemaToZuiError as UnsupportedJSONSchemaToZuiError, errors_UnsupportedZuiCheckToJSONSchemaError as UnsupportedZuiCheckToJSONSchemaError, errors_UnsupportedZuiToJSONSchemaError as UnsupportedZuiToJSONSchemaError, errors_UnsupportedZuiToTypescriptSchemaError as UnsupportedZuiToTypescriptSchemaError, errors_UnsupportedZuiToTypescriptTypeError as UnsupportedZuiToTypescriptTypeError, errors_UntitledDeclarationError as UntitledDeclarationError, errors_ZuiToJSONSchemaError as ZuiToJSONSchemaError, errors_ZuiToTypescriptSchemaError as ZuiToTypescriptSchemaError, errors_ZuiToTypescriptTypeError as ZuiToTypescriptTypeError, errors_ZuiTransformError as ZuiTransformError }; } type index_JSONSchemaGenerationOptions = JSONSchemaGenerationOptions; type index_TypescriptGenerationOptions = TypescriptGenerationOptions; declare const index_errors: typeof errors; declare const index_fromJSONSchema: typeof fromJSONSchema; declare const index_fromJSONSchemaLegacy: typeof fromJSONSchemaLegacy; declare const index_fromObject: typeof fromObject; declare const index_toJSONSchema: typeof toJSONSchema; declare const index_toJSONSchemaLegacy: typeof toJSONSchemaLegacy; declare const index_toTypescriptSchema: typeof toTypescriptSchema; declare const index_toTypescriptType: typeof toTypescriptType; declare namespace index { export { type index_JSONSchemaGenerationOptions as JSONSchemaGenerationOptions, type index_TypescriptGenerationOptions as TypescriptGenerationOptions, index_errors as errors, index_fromJSONSchema as fromJSONSchema, index_fromJSONSchemaLegacy as fromJSONSchemaLegacy, index_fromObject as fromObject, jsonSchema as json, index_toJSONSchema as toJSONSchema, index_toJSONSchemaLegacy as toJSONSchemaLegacy, index_toTypescriptSchema as toTypescriptSchema, index_toTypescriptType as toTypescriptType }; } type z_AnyZodObject = AnyZodObject; type z_AnyZodTuple = AnyZodTuple; declare const z_DIRTY: typeof DIRTY; type z_DirtyEffectReturnType = DirtyEffectReturnType; declare const z_ERR: typeof ERR; type z_EffectContext = EffectContext; type z_EffectIssue = EffectIssue; type z_EffectReturnType = EffectReturnType; type z_EnumValues = EnumValues; type z_EnumValuesMap = EnumValuesMap; type z_InvalidEffectReturnType = InvalidEffectReturnType; declare const z_OK: typeof OK; type z_SafeParseError = SafeParseError; type z_SafeParseReturnType = SafeParseReturnType; type z_SafeParseSuccess = SafeParseSuccess; type z_SomeZodObject = SomeZodObject; type z_TypeOf = TypeOf; type z_UIComponentDefinitions = UIComponentDefinitions; type z_UnknownKeysParam = UnknownKeysParam; type z_ValidEffectReturnType = ValidEffectReturnType; type z_ZodAnyDef = ZodAnyDef; type z_ZodArrayDef = ZodArrayDef; type z_ZodBigIntCheck = ZodBigIntCheck; type z_ZodBigIntDef = ZodBigIntDef; type z_ZodBooleanDef = ZodBooleanDef; type z_ZodBrandedDef = ZodBrandedDef; type z_ZodCatchDef = ZodCatchDef; type z_ZodDateCheck = ZodDateCheck; type z_ZodDateDef = ZodDateDef; type z_ZodDefaultDef = ZodDefaultDef; type z_ZodDiscriminatedUnionDef[] = ZodDiscriminatedUnionOption[]> = ZodDiscriminatedUnionDef; type z_ZodDiscriminatedUnionOption = ZodDiscriminatedUnionOption; type z_ZodEffectsDef = ZodEffectsDef; type z_ZodEnumDef = ZodEnumDef; type z_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes; type z_ZodFunctionDef = ZodFunctionDef; type z_ZodIntersectionDef = ZodIntersectionDef; type z_ZodIssue = ZodIssue; type z_ZodLazyDef = ZodLazyDef; type z_ZodLiteralDef = ZodLiteralDef; type z_ZodMapDef = ZodMapDef; type z_ZodNaNDef = ZodNaNDef; type z_ZodNativeEnumDef = ZodNativeEnumDef; type z_ZodNativeType = ZodNativeType; type z_ZodNativeTypeDef = ZodNativeTypeDef; type z_ZodNativeTypeName = ZodNativeTypeName; type z_ZodNeverDef = ZodNeverDef; type z_ZodNullDef = ZodNullDef; type z_ZodNullableDef = ZodNullableDef; type z_ZodNumberCheck = ZodNumberCheck; type z_ZodNumberDef = ZodNumberDef; type z_ZodObjectDef = ZodObjectDef; type z_ZodOptionalDef = ZodOptionalDef; type z_ZodPipelineDef = ZodPipelineDef; type z_ZodPromiseDef = ZodPromiseDef; type z_ZodRawShape = ZodRawShape; type z_ZodReadonlyDef = ZodReadonlyDef; type z_ZodRecordDef = ZodRecordDef; type z_ZodRefDef = ZodRefDef; type z_ZodSchema = ZodSchema; type z_ZodSetDef = ZodSetDef; type z_ZodStringCheck = ZodStringCheck; type z_ZodStringDef = ZodStringDef; type z_ZodSymbolDef = ZodSymbolDef; type z_ZodTupleDef = ZodTupleDef; type z_ZodTupleItems = ZodTupleItems; type z_ZodTypeAny = ZodTypeAny; type z_ZodTypeDef = ZodTypeDef; type z_ZodUndefinedDef = ZodUndefinedDef; type z_ZodUnionDef = ZodUnionDef; type z_ZodUnknownDef = ZodUnknownDef; type z_ZodVoidDef = ZodVoidDef; type z_ZuiExtensionObject = ZuiExtensionObject; type z_ZuiMetadata = ZuiMetadata; declare const z_coerce: typeof coerce; type z_input = input; declare const z_is: typeof is; type z_output = output; declare namespace z { export { type z_AnyZodObject as AnyZodObject, type z_AnyZodTuple as AnyZodTuple, z_DIRTY as DIRTY, type z_DirtyEffectReturnType as DirtyEffectReturnType, z_ERR as ERR, type z_EffectContext as EffectContext, type z_EffectIssue as EffectIssue, type z_EffectReturnType as EffectReturnType, type z_EnumValues as EnumValues, type z_EnumValuesMap as EnumValuesMap, type z_InvalidEffectReturnType as InvalidEffectReturnType, z_OK as OK, type z_SafeParseError as SafeParseError, type z_SafeParseReturnType as SafeParseReturnType, type z_SafeParseSuccess as SafeParseSuccess, type Schema$1 as Schema, type z_SomeZodObject as SomeZodObject, type z_TypeOf as TypeOf, type z_UIComponentDefinitions as UIComponentDefinitions, type z_UnknownKeysParam as UnknownKeysParam, type z_ValidEffectReturnType as ValidEffectReturnType, type IZodAny as ZodAny, type z_ZodAnyDef as ZodAnyDef, type IZodArray as ZodArray, type z_ZodArrayDef as ZodArrayDef, type IZodBigInt as ZodBigInt, type z_ZodBigIntCheck as ZodBigIntCheck, type z_ZodBigIntDef as ZodBigIntDef, type IZodBoolean as ZodBoolean, type z_ZodBooleanDef as ZodBooleanDef, type IZodBranded as ZodBranded, type z_ZodBrandedDef as ZodBrandedDef, type IZodCatch as ZodCatch, type z_ZodCatchDef as ZodCatchDef, type IZodDate as ZodDate, type z_ZodDateCheck as ZodDateCheck, type z_ZodDateDef as ZodDateDef, type IZodDefault as ZodDefault, type z_ZodDefaultDef as ZodDefaultDef, type IZodDiscriminatedUnion as ZodDiscriminatedUnion, type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, type IZodEffects as ZodEffects, type z_ZodEffectsDef as ZodEffectsDef, type IZodEnum as ZodEnum, type z_ZodEnumDef as ZodEnumDef, type IZodError as ZodError, type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, type IZodFunction as ZodFunction, type z_ZodFunctionDef as ZodFunctionDef, type IZodIntersection as ZodIntersection, type z_ZodIntersectionDef as ZodIntersectionDef, type z_ZodIssue as ZodIssue, type IZodLazy as ZodLazy, type z_ZodLazyDef as ZodLazyDef, type IZodLiteral as ZodLiteral, type z_ZodLiteralDef as ZodLiteralDef, type IZodMap as ZodMap, type z_ZodMapDef as ZodMapDef, type IZodNaN as ZodNaN, type z_ZodNaNDef as ZodNaNDef, type IZodNativeEnum as ZodNativeEnum, type z_ZodNativeEnumDef as ZodNativeEnumDef, type z_ZodNativeType as ZodNativeType, type z_ZodNativeTypeDef as ZodNativeTypeDef, type z_ZodNativeTypeName as ZodNativeTypeName, type IZodNever as ZodNever, type z_ZodNeverDef as ZodNeverDef, type IZodNull as ZodNull, type z_ZodNullDef as ZodNullDef, type IZodNullable as ZodNullable, type z_ZodNullableDef as ZodNullableDef, type IZodNumber as ZodNumber, type z_ZodNumberCheck as ZodNumberCheck, type z_ZodNumberDef as ZodNumberDef, type IZodObject as ZodObject, type z_ZodObjectDef as ZodObjectDef, type IZodOptional as ZodOptional, type z_ZodOptionalDef as ZodOptionalDef, type IZodPipeline as ZodPipeline, type z_ZodPipelineDef as ZodPipelineDef, type IZodPromise as ZodPromise, type z_ZodPromiseDef as ZodPromiseDef, type z_ZodRawShape as ZodRawShape, type IZodReadonly as ZodReadonly, type z_ZodReadonlyDef as ZodReadonlyDef, type IZodRecord as ZodRecord, type z_ZodRecordDef as ZodRecordDef, type IZodRef as ZodRef, type z_ZodRefDef as ZodRefDef, type z_ZodSchema as ZodSchema, type IZodSet as ZodSet, type z_ZodSetDef as ZodSetDef, type IZodString as ZodString, type z_ZodStringCheck as ZodStringCheck, type z_ZodStringDef as ZodStringDef, type IZodSymbol as ZodSymbol, type z_ZodSymbolDef as ZodSymbolDef, type IZodTuple as ZodTuple, type z_ZodTupleDef as ZodTupleDef, type z_ZodTupleItems as ZodTupleItems, type IZodType as ZodType, type z_ZodTypeAny as ZodTypeAny, type z_ZodTypeDef as ZodTypeDef, type IZodUndefined as ZodUndefined, type z_ZodUndefinedDef as ZodUndefinedDef, type IZodUnion as ZodUnion, type z_ZodUnionDef as ZodUnionDef, type IZodUnknown as ZodUnknown, type z_ZodUnknownDef as ZodUnknownDef, type IZodVoid as ZodVoid, type z_ZodVoidDef as ZodVoidDef, type z_ZuiExtensionObject as ZuiExtensionObject, type z_ZuiMetadata as ZuiMetadata, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, brandedType as branded, catchType as catch, z_coerce as coerce, customType as custom, dateType as date, defaultType as default, discriminatedUnionType as discriminatedUnion, downstreamType as downstream, enumType as enum, functionType as function, type TypeOf as infer, type z_input as input, instanceOfType as instanceof, intersectionType as intersection, z_is as is, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, optionalType as optional, type z_output as output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, readonlyType as readonly, recordType as record, refType as ref, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, index as transforms, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, upstreamType as upstream, voidType as void, zuiKey$1 as zuiKey }; } export { type AnyZodObject, type AnyZodTuple, DIRTY, type DirtyEffectReturnType, ERR, type EffectContext, type EffectIssue, type EffectReturnType, type EnumValues, type EnumValuesMap, type InvalidEffectReturnType, OK, type SafeParseError, type SafeParseReturnType, type SafeParseSuccess, type Schema$1 as Schema, type SomeZodObject, type TypeOf, type UIComponentDefinitions, type UnknownKeysParam, type ValidEffectReturnType, type IZodAny as ZodAny, type ZodAnyDef, type IZodArray as ZodArray, type ZodArrayDef, type IZodBigInt as ZodBigInt, type ZodBigIntCheck, type ZodBigIntDef, type IZodBoolean as ZodBoolean, type ZodBooleanDef, type IZodBranded as ZodBranded, type ZodBrandedDef, type IZodCatch as ZodCatch, type ZodCatchDef, type IZodDate as ZodDate, type ZodDateCheck, type ZodDateDef, type IZodDefault as ZodDefault, type ZodDefaultDef, type IZodDiscriminatedUnion as ZodDiscriminatedUnion, type ZodDiscriminatedUnionDef, type ZodDiscriminatedUnionOption, type IZodEffects as ZodEffects, type ZodEffectsDef, type IZodEnum as ZodEnum, type ZodEnumDef, type IZodError as ZodError, type ZodFirstPartySchemaTypes, type IZodFunction as ZodFunction, type ZodFunctionDef, type IZodIntersection as ZodIntersection, type ZodIntersectionDef, type ZodIssue, type IZodLazy as ZodLazy, type ZodLazyDef, type IZodLiteral as ZodLiteral, type ZodLiteralDef, type IZodMap as ZodMap, type ZodMapDef, type IZodNaN as ZodNaN, type ZodNaNDef, type IZodNativeEnum as ZodNativeEnum, type ZodNativeEnumDef, type ZodNativeType, type ZodNativeTypeDef, type ZodNativeTypeName, type IZodNever as ZodNever, type ZodNeverDef, type IZodNull as ZodNull, type ZodNullDef, type IZodNullable as ZodNullable, type ZodNullableDef, type IZodNumber as ZodNumber, type ZodNumberCheck, type ZodNumberDef, type IZodObject as ZodObject, type ZodObjectDef, type IZodOptional as ZodOptional, type ZodOptionalDef, type IZodPipeline as ZodPipeline, type ZodPipelineDef, type IZodPromise as ZodPromise, type ZodPromiseDef, type ZodRawShape, type IZodReadonly as ZodReadonly, type ZodReadonlyDef, type IZodRecord as ZodRecord, type ZodRecordDef, type IZodRef as ZodRef, type ZodRefDef, type ZodSchema, type IZodSet as ZodSet, type ZodSetDef, type IZodString as ZodString, type ZodStringCheck, type ZodStringDef, type IZodSymbol as ZodSymbol, type ZodSymbolDef, type IZodTuple as ZodTuple, type ZodTupleDef, type ZodTupleItems, type IZodType as ZodType, type ZodTypeAny, type ZodTypeDef, type IZodUndefined as ZodUndefined, type ZodUndefinedDef, type IZodUnion as ZodUnion, type ZodUnionDef, type IZodUnknown as ZodUnknown, type ZodUnknownDef, type IZodVoid as ZodVoid, type ZodVoidDef, type ZuiExtensionObject, type ZuiMetadata, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, brandedType as branded, catchType as catch, coerce, customType as custom, dateType as date, z as default, discriminatedUnionType as discriminatedUnion, downstreamType as downstream, enumType as enum, functionType as function, type TypeOf as infer, type input, instanceOfType as instanceof, intersectionType as intersection, is, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, optionalType as optional, type output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, readonlyType as readonly, recordType as record, refType as ref, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, index as transforms, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, upstreamType as upstream, voidType as void, z, zuiKey$1 as zuiKey };