import * as core from "@zod/core"; import * as util from "@zod/core/util"; export * as coerce from "./coerce.js"; export * as iso from "./iso.js"; type SomeType = core.$ZodType; export interface ZodMiniType extends core.$ZodType { check(...checks: (core.CheckFn | core.$ZodCheck)[]): this; clone(def?: this["_zod"]["def"]): this; register(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [core.$ZodRegistry["_meta"]?] : [core.$ZodRegistry["_meta"]] : ["Incompatible schema"]): this; brand(value?: T): this & Record<"_zod", Record<"output", this["_zod"]["output"] & core.$brand>>; def: this["_zod"]["def"]; parse(data: unknown, params?: core.ParseContext): core.output; safeParse(data: unknown, params?: core.ParseContext): util.SafeParseResult>; parseAsync(data: unknown, params?: core.ParseContext): Promise>; safeParseAsync(data: unknown, params?: core.ParseContext): Promise>>; } export declare const ZodMiniType: core.$constructor; export interface ZodMiniString extends ZodMiniType { _zod: core.$ZodStringInternals; } export declare const ZodMiniString: core.$constructor; export declare function string(params?: string | core.$ZodStringParams): ZodMiniString; export interface ZodMiniStringFormat extends ZodMiniString { _zod: core.$ZodStringFormatInternals; } export declare const ZodMiniStringFormat: core.$constructor; export interface ZodMiniEmail extends ZodMiniStringFormat<"email"> { _zod: core.$ZodEmailInternals; } export declare const ZodMiniEmail: core.$constructor; export declare function email(params?: string | core.$ZodEmailParams): ZodMiniEmail; export interface ZodMiniGUID extends ZodMiniStringFormat<"guid"> { _zod: core.$ZodGUIDInternals; } export declare const ZodMiniGUID: core.$constructor; export declare function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID; export interface ZodMiniUUID extends ZodMiniStringFormat<"uuid"> { _zod: core.$ZodUUIDInternals; } export declare const ZodMiniUUID: core.$constructor; export declare function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID; export type ZodMiniUUIDv4Params = util.StringFormatParams; export type ZodMiniCheckUUIDv4Params = util.CheckStringFormatParams; export declare function uuidv4(params?: string | ZodMiniUUIDv4Params): ZodMiniUUID; export type ZodMiniUUIDv6Params = util.StringFormatParams; export type ZodMiniCheckUUIDv6Params = util.CheckStringFormatParams; export declare function uuidv6(params?: string | ZodMiniUUIDv6Params): ZodMiniUUID; export type ZodMiniUUIDv7Params = util.StringFormatParams; export type ZodMiniCheckUUIDv7Params = util.CheckStringFormatParams; export declare function uuidv7(params?: string | ZodMiniUUIDv7Params): ZodMiniUUID; export interface ZodMiniURL extends ZodMiniStringFormat<"url"> { _zod: core.$ZodURLInternals; } export declare const ZodMiniURL: core.$constructor; export declare function url(params?: string | core.$ZodURLParams): ZodMiniURL; export interface ZodMiniEmoji extends ZodMiniStringFormat<"emoji"> { _zod: core.$ZodEmojiInternals; } export declare const ZodMiniEmoji: core.$constructor; export declare function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji; export interface ZodMiniNanoID extends ZodMiniStringFormat<"nanoid"> { _zod: core.$ZodNanoIDInternals; } export declare const ZodMiniNanoID: core.$constructor; export declare function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID; export interface ZodMiniCUID extends ZodMiniStringFormat<"cuid"> { _zod: core.$ZodCUIDInternals; } export declare const ZodMiniCUID: core.$constructor; export declare function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID; export interface ZodMiniCUID2 extends ZodMiniStringFormat<"cuid2"> { _zod: core.$ZodCUID2Internals; } export declare const ZodMiniCUID2: core.$constructor; export type ZodMiniCUID2Params = util.StringFormatParams; export type ZodMiniCheckCUID2Params = util.CheckStringFormatParams; export declare function cuid2(params?: string | ZodMiniCUID2Params): ZodMiniCUID2; export interface ZodMiniULID extends ZodMiniStringFormat<"ulid"> { _zod: core.$ZodULIDInternals; } export declare const ZodMiniULID: core.$constructor; export declare function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID; export interface ZodMiniXID extends ZodMiniStringFormat<"xid"> { _zod: core.$ZodXIDInternals; } export declare const ZodMiniXID: core.$constructor; export declare function xid(params?: string | core.$ZodXIDParams): ZodMiniXID; export interface ZodMiniKSUID extends ZodMiniStringFormat<"ksuid"> { _zod: core.$ZodKSUIDInternals; } export declare const ZodMiniKSUID: core.$constructor; export declare function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID; export interface ZodMiniIPv4 extends ZodMiniStringFormat<"ipv4"> { _zod: core.$ZodIPv4Internals; } export declare const ZodMiniIPv4: core.$constructor; export type ZodMiniIPv4Params = util.StringFormatParams; export type ZodMiniCheckIPv4Params = util.CheckStringFormatParams; export declare function ipv4(params?: string | ZodMiniIPv4Params): ZodMiniIPv4; export interface ZodMiniIPv6 extends ZodMiniStringFormat<"ipv6"> { _zod: core.$ZodIPv6Internals; } export declare const ZodMiniIPv6: core.$constructor; export type ZodMiniIPv6Params = util.StringFormatParams; export type ZodMiniCheckIPv6Params = util.CheckStringFormatParams; export declare function ipv6(params?: string | ZodMiniIPv6Params): ZodMiniIPv6; export interface ZodMiniBase64 extends ZodMiniStringFormat<"base64"> { _zod: core.$ZodBase64Internals; } export declare const ZodMiniBase64: core.$constructor; export type ZodMiniBase64Params = util.StringFormatParams; export type ZodMiniCheckBase64Params = util.CheckStringFormatParams; export declare function base64(params?: string | ZodMiniBase64Params): ZodMiniBase64; export interface ZodMiniE164 extends ZodMiniStringFormat<"e164"> { _zod: core.$ZodE164Internals; } export declare const ZodMiniE164: core.$constructor; export type ZodMiniE164Params = util.StringFormatParams; export type ZodMiniCheckE164Params = util.CheckStringFormatParams; export declare function e164(params?: string | ZodMiniE164Params): ZodMiniE164; export interface ZodMiniJWT extends ZodMiniStringFormat<"jwt"> { _zod: core.$ZodJWTInternals; } export declare const ZodMiniJWT: core.$constructor; export declare function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT; export interface ZodMiniNumber extends ZodMiniType { _zod: core.$ZodNumberInternals; } export declare const ZodMiniNumber: core.$constructor; export declare function number(params?: string | core.$ZodNumberParams): ZodMiniNumber; export interface ZodMiniNumberFormat extends ZodMiniNumber { _zod: core.$ZodNumberFormatInternals; } export declare const ZodMiniNumberFormat: core.$constructor; export declare function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat; export declare function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat; export declare function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat; export declare function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat; export declare function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat; export interface ZodMiniBoolean extends ZodMiniType { _zod: core.$ZodBooleanInternals; } export declare const ZodMiniBoolean: core.$constructor; export declare function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean; export interface ZodMiniBigInt extends ZodMiniType { _zod: core.$ZodBigIntInternals; } export declare const ZodMiniBigInt: core.$constructor; export declare function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt; export interface ZodMiniBigIntFormat extends ZodMiniType { _zod: core.$ZodBigIntFormatInternals; } export declare const ZodMiniBigIntFormat: core.$constructor; export declare function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat; export declare function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat; export interface ZodMiniSymbol extends ZodMiniType { _zod: core.$ZodSymbolInternals; } export declare const ZodMiniSymbol: core.$constructor; export declare function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol; export interface ZodMiniUndefined extends ZodMiniType { _zod: core.$ZodUndefinedInternals; } export declare const ZodMiniUndefined: core.$constructor; declare function _undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined; export { _undefined as undefined }; export interface ZodMiniNull extends ZodMiniType { _zod: core.$ZodNullInternals; } export declare const ZodMiniNull: core.$constructor; declare function _null(params?: string | core.$ZodNullParams): ZodMiniNull; export { _null as null }; export interface ZodMiniAny extends ZodMiniType { _zod: core.$ZodAnyInternals; } export declare const ZodMiniAny: core.$constructor; export declare function any(params?: string | core.$ZodAnyParams): ZodMiniAny; export interface ZodMiniUnknown extends ZodMiniType { _zod: core.$ZodUnknownInternals; } export declare const ZodMiniUnknown: core.$constructor; export declare function unknown(params?: string | core.$ZodUnknownParams): ZodMiniUnknown; export interface ZodMiniNever extends ZodMiniType { _zod: core.$ZodNeverInternals; } export declare const ZodMiniNever: core.$constructor; export declare function never(params?: string | core.$ZodNeverParams): ZodMiniNever; export interface ZodMiniVoid extends ZodMiniType { _zod: core.$ZodVoidInternals; } export declare const ZodMiniVoid: core.$constructor; declare function _void(params?: string | core.$ZodVoidParams): ZodMiniVoid; export { _void as void }; export interface ZodMiniDate extends ZodMiniType { _zod: core.$ZodDateInternals; } export declare const ZodMiniDate: core.$constructor; export declare function date(params?: string | core.$ZodDateParams): ZodMiniDate; export interface ZodMiniArray extends ZodMiniType { _zod: core.$ZodArrayInternals; } export declare const ZodMiniArray: core.$constructor; export declare function array(element: T, params?: core.$ZodArrayParams): ZodMiniArray; export interface ZodMiniObjectLike extends ZodMiniType { _zod: core.$ZodObjectLikeInternals; } export declare const ZodMiniObjectLike: core.$constructor; export declare function keyof(schema: T): ZodMiniLiteral; export declare function keyof(schema: T): ZodMiniLiteral; export interface ZodMiniInterface extends ZodMiniType { _zod: core.$ZodInterfaceInternals; } export declare const ZodMiniInterface: core.$constructor; declare function _interface(shape: T, params?: core.$ZodInterfaceParams, Class?: util.Constructor): ZodMiniInterface, util.InitInterfaceParams>; export { _interface as interface }; export declare function strictInterface(shape: T, params?: core.$ZodInterfaceParams): ZodMiniInterface, util.InitInterfaceParams>; export declare function looseInterface(shape: T, params?: core.$ZodInterfaceParams): ZodMiniInterface, util.InitInterfaceParams>>; export interface ZodMiniObject = Record> extends ZodMiniType { _zod: core.$ZodObjectInternals; } export declare const ZodMiniObject: core.$constructor; export declare function object>(shape?: T, params?: core.$ZodObjectLikeParams): ZodMiniObject; export declare function strictObject(shape: T, params?: core.$ZodObjectParams): ZodMiniObject; export declare function looseObject(shape: T, params?: core.$ZodObjectParams): ZodMiniObject; export declare function extend(a: T, b: U): ZodMiniInterface, util.MergeInterfaceParams>; export declare function extend(a: T, b: U): ZodMiniObject, U["_zod"]["extra"] & T["_zod"]["extra"]>; export declare function extend(a: T, b: U): ZodMiniInterface, util.ExtendInterfaceParams>; export declare function extend(a: T, b: U): ZodMiniObject, T["_zod"]["extra"]>; export declare function merge(schema: T, shape: U): T["_zod"]["def"]["type"] extends "interface" ? ZodMiniInterface, { extra: T["_zod"]["extra"] & U["_zod"]["extra"]; optional: Exclude | U["_zod"]["optional"]; defaulted: Exclude | U["_zod"]["defaulted"]; }> : ZodMiniObject, T["_zod"]["extra"]>; export declare function pick, M>>(schema: T, mask: M): T["_zod"]["def"]["type"] extends "interface" ? ZodMiniInterface>, { optional: Extract; defaulted: Extract; extra: T["_zod"]["extra"]; }> : ZodMiniObject>, T["_zod"]["extra"]>; export declare function omit, M>>(schema: T, mask: M): T["_zod"]["def"]["type"] extends "interface" ? ZodMiniInterface>, { optional: Exclude; defaulted: Exclude; extra: T["_zod"]["extra"]; }> : ZodMiniObject>, T["_zod"]["extra"]>; export declare function partial(schema: T): T["_zod"]["def"]["type"] extends "interface" ? ZodMiniInterface<{ [k in keyof T["_zod"]["shape"]]: ZodMiniOptional; }, { optional: string & keyof T["_zod"]["shape"]; defaulted: never; extra: T["_zod"]["extra"]; }> : ZodMiniObject<{ [k in keyof T["_zod"]["shape"]]: ZodMiniOptional; }, T["_zod"]["extra"]>; export declare function partial, M>>(schema: T, mask: M): T["_zod"]["def"]["type"] extends "interface" ? ZodMiniInterface; }>, { optional: string & (T["_zod"]["optional"] | keyof M); defaulted: T["_zod"]["defaulted"]; extra: T["_zod"]["extra"]; }> : ZodMiniObject<{ [k in keyof T["_zod"]["shape"]]: k extends keyof M ? ZodMiniOptional : T["_zod"]["shape"][k]; }, T["_zod"]["extra"]>; export declare function required(schema: T): ZodMiniObject<{ [k in keyof T["_zod"]["shape"]]: ZodMiniNonOptional; }>; export declare function required, M>>(schema: T, mask: M): ZodMiniObject; }>>; export declare function required(schema: T): ZodMiniInterface<{ [k in keyof T["_zod"]["shape"]]: ZodMiniNonOptional; }, { optional: never; defaulted: T["_zod"]["defaulted"]; extra: T["_zod"]["extra"]; }>; export declare function required>(schema: T, mask: M): ZodMiniInterface; }>, { optional: Exclude; defaulted: T["_zod"]["defaulted"]; extra: T["_zod"]["extra"]; }>; export interface ZodMiniUnion extends ZodMiniType { _zod: core.$ZodUnionInternals; } export declare const ZodMiniUnion: core.$constructor; export declare function union(options: T, params?: core.$ZodUnionParams): ZodMiniUnion; export interface ZodMiniDiscriminatedUnion extends ZodMiniUnion { _zod: core.$ZodDiscriminatedUnionInternals; } export declare const ZodMiniDiscriminatedUnion: core.$constructor; export interface $ZodTypeDiscriminableInternals extends core.$ZodTypeInternals { disc: util.DiscriminatorMap; } export interface $ZodTypeDiscriminable extends ZodMiniType { _zod: $ZodTypeDiscriminableInternals; } export declare function discriminatedUnion(options: Types, params?: core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion; export interface ZodMiniIntersection extends ZodMiniType { _zod: core.$ZodIntersectionInternals; } export declare const ZodMiniIntersection: core.$constructor; export declare function intersection(left: T, right: U, params?: core.$ZodIntersectionParams): ZodMiniIntersection; export interface ZodMiniTuple extends ZodMiniType { _zod: core.$ZodTupleInternals; } export declare const ZodMiniTuple: core.$constructor; export declare function tuple(items: T, params?: core.$ZodTupleParams): ZodMiniTuple; export declare function tuple(items: T, rest: Rest, params?: core.$ZodTupleParams): ZodMiniTuple; export declare function tuple(items: [], params?: core.$ZodTupleParams): ZodMiniTuple<[], null>; export interface ZodMiniRecord extends ZodMiniType { _zod: core.$ZodRecordInternals; } export declare const ZodMiniRecord: core.$constructor; export declare function record(keyType: Key, valueType: Value, params?: core.$ZodRecordParams): ZodMiniRecord; export interface ZodMiniMap extends ZodMiniType { _zod: core.$ZodMapInternals; } export declare const ZodMiniMap: core.$constructor; export declare function map(keyType: Key, valueType: Value, params?: core.$ZodMapParams): ZodMiniMap; export interface ZodMiniSet extends ZodMiniType { _zod: core.$ZodSetInternals; } export declare const ZodMiniSet: core.$constructor; export declare function set(valueType: Value, params?: core.$ZodSetParams): ZodMiniSet; export interface ZodMiniEnum extends ZodMiniType { _zod: core.$ZodEnumInternals; } export declare const ZodMiniEnum: core.$constructor; declare function _enum(values: T, params?: core.$ZodEnumParams): ZodMiniEnum>; declare function _enum(entries: T, params?: core.$ZodEnumParams): ZodMiniEnum; export { _enum as enum }; /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead. * * ```ts * enum Colors { red, green, blue } * z.enum(Colors); * ``` */ export declare function nativeEnum(entries: T, params?: core.$ZodEnumParams): ZodMiniEnum; export interface ZodMiniLiteral extends ZodMiniType { _zod: core.$ZodLiteralInternals; } export declare const ZodMiniLiteral: core.$constructor; export declare function literal>(value: T, params?: core.$ZodLiteralParams): ZodMiniLiteral; export declare function literal(value: T, params?: core.$ZodLiteralParams): ZodMiniLiteral; export interface ZodMiniFile extends ZodMiniType { _zod: core.$ZodFileInternals; } export declare const ZodMiniFile: core.$constructor; export declare function file(params?: string | core.$ZodFileParams): ZodMiniFile; export interface ZodMiniTransform extends ZodMiniType { _zod: core.$ZodTransformInternals; } export declare const ZodMiniTransform: core.$constructor; export declare function transform(fn: (input: I, ctx: core.ParsePayload) => O, params?: core.$ZodTransformParams): ZodMiniTransform, I>; export interface ZodMiniOptional extends ZodMiniType { _zod: core.$ZodOptionalInternals; } export declare const ZodMiniOptional: core.$constructor; export declare function optional(innerType: T, params?: core.$ZodOptionalParams): ZodMiniOptional; export interface ZodMiniNullable extends ZodMiniType { _zod: core.$ZodNullableInternals; } export declare const ZodMiniNullable: core.$constructor; export declare function nullable(innerType: T, params?: core.$ZodNullableParams): ZodMiniNullable; export declare function nullish(innerType: T): ZodMiniOptional>; export interface ZodMiniDefault extends ZodMiniType { _zod: core.$ZodDefaultInternals; } export declare const ZodMiniDefault: core.$constructor; export declare function _default(innerType: T, defaultValue: util.NoUndefined> | (() => util.NoUndefined>), params?: core.$ZodDefaultParams): ZodMiniDefault; export interface ZodMiniNonOptional extends ZodMiniType { _zod: core.$ZodNonOptionalInternals; } export declare const ZodMiniNonOptional: core.$constructor; export declare function nonoptional(innerType: T, params?: core.$ZodNonOptionalParams): ZodMiniNonOptional; export interface ZodMiniSuccess extends ZodMiniType { _zod: core.$ZodSuccessInternals; } export declare const ZodMiniSuccess: core.$constructor; export declare function success(innerType: T, params?: core.$ZodSuccessParams): ZodMiniSuccess; export interface ZodMiniCatch extends ZodMiniType { _zod: core.$ZodCatchInternals; } export declare const ZodMiniCatch: core.$constructor; declare function _catch(innerType: T, catchValue: core.output | ((ctx: core.$ZodCatchCtx) => core.output), params?: core.$ZodCatchParams): ZodMiniCatch; export { _catch as catch }; export interface ZodMiniNaN extends ZodMiniType { _zod: core.$ZodNaNInternals; } export declare const ZodMiniNaN: core.$constructor; export declare function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN; export interface ZodMiniPipe extends ZodMiniType { _zod: core.$ZodPipeInternals; } export declare const ZodMiniPipe: core.$constructor; export declare function pipe> = core.$ZodType>>(in_: A, out: B | core.$ZodType>, params?: core.$ZodPipeParams): ZodMiniPipe; export interface ZodMiniReadonly extends ZodMiniType { _zod: core.$ZodReadonlyInternals; } export declare const ZodMiniReadonly: core.$constructor; export declare function readonly(innerType: T, params?: core.$ZodReadonlyParams): ZodMiniReadonly; export interface ZodMiniTemplateLiteral