import * as core from "../core/index.js"; import { util } from "../core/index.js"; type SomeType = core.SomeType; export interface ZodMiniType = core.$ZodTypeInternals> extends core.$ZodType { check(...checks: (core.CheckFn> | core.$ZodCheck>)[]): this; clone(def?: Internals["def"], params?: { parent: boolean; }): this; register(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [core.$replace?] : [core.$replace] : ["Incompatible schema"]): this; brand(value?: T): PropertyKey extends T ? this : this & Record<"_zod", Record<"output", core.output & core.$brand>>; def: Internals["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>>; } interface _ZodMiniType extends ZodMiniType { } export declare const ZodMiniType: core.$constructor; export interface _ZodMiniString = core.$ZodStringInternals> extends _ZodMiniType, core.$ZodString { _zod: T; } export interface ZodMiniString extends _ZodMiniString>, core.$ZodString { } export declare const ZodMiniString: core.$constructor; export declare function string(params?: string | core.$ZodStringParams): ZodMiniString; export interface ZodMiniStringFormat extends _ZodMiniString>, core.$ZodStringFormat { } export declare const ZodMiniStringFormat: core.$constructor; export interface ZodMiniEmail extends _ZodMiniString { } export declare const ZodMiniEmail: core.$constructor; export declare function email(params?: string | core.$ZodEmailParams): ZodMiniEmail; export interface ZodMiniGUID extends _ZodMiniString { } export declare const ZodMiniGUID: core.$constructor; export declare function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID; export interface ZodMiniUUID extends _ZodMiniString { } export declare const ZodMiniUUID: core.$constructor; export declare function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID; export declare function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodMiniUUID; export declare function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodMiniUUID; export declare function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodMiniUUID; export interface ZodMiniURL extends _ZodMiniString { } export declare const ZodMiniURL: core.$constructor; export declare function url(params?: string | core.$ZodURLParams): ZodMiniURL; export interface ZodMiniEmoji extends _ZodMiniString { } export declare const ZodMiniEmoji: core.$constructor; export declare function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji; export interface ZodMiniNanoID extends _ZodMiniString { } export declare const ZodMiniNanoID: core.$constructor; export declare function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID; export interface ZodMiniCUID extends _ZodMiniString { } export declare const ZodMiniCUID: core.$constructor; export declare function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID; export interface ZodMiniCUID2 extends _ZodMiniString { } export declare const ZodMiniCUID2: core.$constructor; export declare function cuid2(params?: string | core.$ZodCUID2Params): ZodMiniCUID2; export interface ZodMiniULID extends _ZodMiniString { } export declare const ZodMiniULID: core.$constructor; export declare function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID; export interface ZodMiniXID extends _ZodMiniString { } export declare const ZodMiniXID: core.$constructor; export declare function xid(params?: string | core.$ZodXIDParams): ZodMiniXID; export interface ZodMiniKSUID extends _ZodMiniString { } export declare const ZodMiniKSUID: core.$constructor; export declare function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID; export interface ZodMiniIPv4 extends _ZodMiniString { } export declare const ZodMiniIPv4: core.$constructor; export declare function ipv4(params?: string | core.$ZodIPv4Params): ZodMiniIPv4; export interface ZodMiniIPv6 extends _ZodMiniString { } export declare const ZodMiniIPv6: core.$constructor; export declare function ipv6(params?: string | core.$ZodIPv6Params): ZodMiniIPv6; export interface ZodMiniCIDRv4 extends _ZodMiniString { } export declare const ZodMiniCIDRv4: core.$constructor; export declare function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodMiniCIDRv4; export interface ZodMiniCIDRv6 extends _ZodMiniString { } export declare const ZodMiniCIDRv6: core.$constructor; export declare function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodMiniCIDRv6; export interface ZodMiniBase64 extends _ZodMiniString { } export declare const ZodMiniBase64: core.$constructor; export declare function base64(params?: string | core.$ZodBase64Params): ZodMiniBase64; export interface ZodMiniBase64URL extends _ZodMiniString { } export declare const ZodMiniBase64URL: core.$constructor; export declare function base64url(params?: string | core.$ZodBase64URLParams): ZodMiniBase64URL; export interface ZodMiniE164 extends _ZodMiniString { } export declare const ZodMiniE164: core.$constructor; export declare function e164(params?: string | core.$ZodE164Params): ZodMiniE164; export interface ZodMiniJWT extends _ZodMiniString { } export declare const ZodMiniJWT: core.$constructor; export declare function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT; export interface ZodMiniCustomStringFormat extends ZodMiniStringFormat, core.$ZodCustomStringFormat { _zod: core.$ZodCustomStringFormatInternals; } export declare const ZodMiniCustomStringFormat: core.$constructor; export declare function stringFormat(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat; export declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname">; interface _ZodMiniNumber = core.$ZodNumberInternals> extends _ZodMiniType, core.$ZodNumber { _zod: T; } export interface ZodMiniNumber extends _ZodMiniNumber>, core.$ZodNumber { } export declare const ZodMiniNumber: core.$constructor; export declare function number(params?: string | core.$ZodNumberParams): ZodMiniNumber; export interface ZodMiniNumberFormat extends _ZodMiniNumber, core.$ZodNumberFormat { } 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> { } export declare const ZodMiniBoolean: core.$constructor; export declare function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean; export interface ZodMiniBigInt extends _ZodMiniType>, core.$ZodBigInt { } export declare const ZodMiniBigInt: core.$constructor; export declare function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt; export interface ZodMiniBigIntFormat extends _ZodMiniType { } 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 { } export declare const ZodMiniSymbol: core.$constructor; export declare function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol; export interface ZodMiniUndefined extends _ZodMiniType { } export declare const ZodMiniUndefined: core.$constructor; declare function _undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined; export { _undefined as undefined }; export interface ZodMiniNull extends _ZodMiniType { } export declare const ZodMiniNull: core.$constructor; declare function _null(params?: string | core.$ZodNullParams): ZodMiniNull; export { _null as null }; export interface ZodMiniAny extends _ZodMiniType { } export declare const ZodMiniAny: core.$constructor; export declare function any(): ZodMiniAny; export interface ZodMiniUnknown extends _ZodMiniType { } export declare const ZodMiniUnknown: core.$constructor; export declare function unknown(): ZodMiniUnknown; export interface ZodMiniNever extends _ZodMiniType { } export declare const ZodMiniNever: core.$constructor; export declare function never(params?: string | core.$ZodNeverParams): ZodMiniNever; export interface ZodMiniVoid extends _ZodMiniType { } export declare const ZodMiniVoid: core.$constructor; declare function _void(params?: string | core.$ZodVoidParams): ZodMiniVoid; export { _void as void }; export interface ZodMiniDate extends _ZodMiniType> { } export declare const ZodMiniDate: core.$constructor; export declare function date(params?: string | core.$ZodDateParams): ZodMiniDate; export interface ZodMiniArray extends _ZodMiniType>, core.$ZodArray { } export declare const ZodMiniArray: core.$constructor; export declare function array(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray; export declare function keyof(schema: T): ZodMiniLiteral>; export interface ZodMiniObject< /** @ts-ignore Cast variance */ out Shape extends core.$ZodShape = core.$ZodShape, out Config extends core.$ZodObjectConfig = core.$strip> extends ZodMiniType>, core.$ZodObject { shape: Shape; } export declare const ZodMiniObject: core.$constructor; export declare function object>(shape?: T, params?: string | core.$ZodObjectParams): ZodMiniObject; export declare function strictObject(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject; export declare function looseObject(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject; export declare function extend(schema: T, shape: U): ZodMiniObject, T["_zod"]["config"]>; /** @deprecated Identical to `z.extend(A, B)` */ export declare function merge(a: T, b: U): ZodMiniObject, T["_zod"]["config"]>; export declare function pick>(schema: T, mask: M): ZodMiniObject>, T["_zod"]["config"]>; export declare function omit>(schema: T, mask: M): ZodMiniObject>, T["_zod"]["config"]>; export declare function partial(schema: T): ZodMiniObject<{ [k in keyof T["shape"]]: ZodMiniOptional; }, T["_zod"]["config"]>; export declare function partial>(schema: T, mask: M): ZodMiniObject<{ [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional : T["shape"][k]; }, T["_zod"]["config"]>; export type RequiredInterfaceShape = util.Identity<{ [k in keyof Shape as k extends Keys ? k : never]: ZodMiniNonOptional; } & { [k in keyof Shape as k extends Keys ? never : k]: Shape[k]; }>; export declare function required(schema: T): ZodMiniObject<{ [k in keyof T["shape"]]: ZodMiniNonOptional; }, T["_zod"]["config"]>; export declare function required>(schema: T, mask: M): ZodMiniObject; }>, T["_zod"]["config"]>; export declare function catchall(inst: T, catchall: U): ZodMiniObject>; export interface ZodMiniUnion extends _ZodMiniType> { } export declare const ZodMiniUnion: core.$constructor; export declare function union(options: T, params?: string | core.$ZodUnionParams): ZodMiniUnion; export interface ZodMiniDiscriminatedUnion extends ZodMiniUnion { _zod: core.$ZodDiscriminatedUnionInternals; } export declare const ZodMiniDiscriminatedUnion: core.$constructor; export declare function discriminatedUnion(discriminator: string, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion; export interface ZodMiniIntersection extends _ZodMiniType> { } export declare const ZodMiniIntersection: core.$constructor; export declare function intersection(left: T, right: U): ZodMiniIntersection; export interface ZodMiniTuple extends _ZodMiniType> { } export declare const ZodMiniTuple: core.$constructor; export declare function tuple(items: T, params?: string | core.$ZodTupleParams): ZodMiniTuple; export declare function tuple(items: T, rest: Rest, params?: string | core.$ZodTupleParams): ZodMiniTuple; export declare function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null>; export interface ZodMiniRecord extends _ZodMiniType> { } export declare const ZodMiniRecord: core.$constructor; export declare function record(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord; export declare function partialRecord(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord; export interface ZodMiniMap extends _ZodMiniType> { } export declare const ZodMiniMap: core.$constructor; export declare function map(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMiniMap; export interface ZodMiniSet extends _ZodMiniType> { } export declare const ZodMiniSet: core.$constructor; export declare function set(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet; export interface ZodMiniEnum extends _ZodMiniType> { } export declare const ZodMiniEnum: core.$constructor; declare function _enum(values: T, params?: string | core.$ZodEnumParams): ZodMiniEnum>; declare function _enum(entries: T, params?: string | 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?: string | core.$ZodEnumParams): ZodMiniEnum; export interface ZodMiniLiteral extends _ZodMiniType> { } export declare const ZodMiniLiteral: core.$constructor; export declare function literal>(value: T, params?: string | core.$ZodLiteralParams): ZodMiniLiteral; export declare function literal(value: T, params?: string | core.$ZodLiteralParams): ZodMiniLiteral; export interface ZodMiniFile extends _ZodMiniType { } export declare const ZodMiniFile: core.$constructor; export declare function file(params?: string | core.$ZodFileParams): ZodMiniFile; export interface ZodMiniTransform extends _ZodMiniType> { } export declare const ZodMiniTransform: core.$constructor; export declare function transform(fn: (input: I, ctx: core.ParsePayload) => O): ZodMiniTransform, I>; export interface ZodMiniOptional extends _ZodMiniType>, core.$ZodOptional { } export declare const ZodMiniOptional: core.$constructor; export declare function optional(innerType: T): ZodMiniOptional; export interface ZodMiniNullable extends _ZodMiniType> { } export declare const ZodMiniNullable: core.$constructor; export declare function nullable(innerType: T): ZodMiniNullable; export declare function nullish(innerType: T): ZodMiniOptional>; export interface ZodMiniDefault extends _ZodMiniType> { } export declare const ZodMiniDefault: core.$constructor; export declare function _default(innerType: T, defaultValue: util.NoUndefined> | (() => util.NoUndefined>)): ZodMiniDefault; export interface ZodMiniPrefault extends _ZodMiniType> { } export declare const ZodMiniPrefault: core.$constructor; export declare function prefault(innerType: T, defaultValue: util.NoUndefined> | (() => util.NoUndefined>)): ZodMiniPrefault; export interface ZodMiniNonOptional extends _ZodMiniType> { } export declare const ZodMiniNonOptional: core.$constructor; export declare function nonoptional(innerType: T, params?: string | core.$ZodNonOptionalParams): ZodMiniNonOptional; export interface ZodMiniSuccess extends _ZodMiniType> { } export declare const ZodMiniSuccess: core.$constructor; export declare function success(innerType: T): ZodMiniSuccess; export interface ZodMiniCatch extends _ZodMiniType> { } export declare const ZodMiniCatch: core.$constructor; declare function _catch(innerType: T, catchValue: core.output | ((ctx: core.$ZodCatchCtx) => core.output)): ZodMiniCatch; export { _catch as catch }; export interface ZodMiniNaN extends _ZodMiniType { } export declare const ZodMiniNaN: core.$constructor; export declare function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN; export interface ZodMiniPipe extends _ZodMiniType> { } export declare const ZodMiniPipe: core.$constructor; export declare function pipe> = core.$ZodType>>(in_: A, out: B | core.$ZodType>): ZodMiniPipe; export interface ZodMiniReadonly extends _ZodMiniType> { } export declare const ZodMiniReadonly: core.$constructor; export declare function readonly(innerType: T): ZodMiniReadonly; export interface ZodMiniTemplateLiteral