import { z } from 'zod'; import type { Target } from '@traversable/registry'; import { Json } from '@traversable/json'; export type Atoms = [Date, RegExp, Function]; export interface ZodType extends z.ZodType { } export interface ZodArray extends z.ZodArray { } export interface ZodObject extends z.ZodObject { } export interface ZodTuple extends z.ZodTuple { } export interface ZodRecord extends z.ZodRecord { } export type Options = { initialIndex?: (string | number)[]; namespaceAlias?: string; }; export interface Config extends Required { } export interface Ctx { input: unknown; error: z.ZodError; } export declare const Ctx: { input: null; error: z.ZodError; }; /** * This approach to generating partially invalid data borrows from the excellent * [type-predicate-generator](https://github.com/peter-leonov/type-predicate-generator) library */ export declare const invalidValue: any; /** * TODO: Remove once [this issue](https://github.com/colinhacks/zod/pull/4359) is resolved */ export declare const removePrototypeMethods: (k: string) => boolean; /** * {@link z.promise `z.promise`} has been deprecated -- refer to the * [changelog](https://v4.zod.dev/v4/changelog) for more information */ export declare const defaults: { initialIndex: (string | number)[]; namespaceAlias: string; }; export declare const PromiseSchemaIsUnsupported: (fnName: string) => never; export declare const Invariant: { CircularSchemaDetected: (schemaName: string, functionName?: string) => never; Unimplemented: (schemaName: string, functionName?: string) => never; IllegalState(functionName: string, expected: string, got: unknown): never; }; export declare const Warn: { Deprecated: (schemaName: string, functionName: string, logger?: (...xs: unknown[]) => void) => (output: T) => T; }; export declare const isOptional: (x: unknown) => x is import("./functor.js").Z.Optional; export declare function hasOptional(x: unknown): boolean; export declare function hasDefault(x: unknown): boolean; export declare function serializeShort(json: Json): string; export declare function serializeShort(json: {} | null | undefined): string; export declare function areAllObjects(xs: readonly unknown[]): xs is readonly z.core.$ZodObject<{ [x: string]: z.ZodType>; }, z.core.$ZodObjectConfig>[]; export declare function getTags(xs: readonly unknown[]): Discriminated | null; export type PathSpec = { path: (string | number)[]; ident: string; }; export declare const defaultPrevSpec: { ident: string; path: string[]; }; export declare const defaultNextSpec: { ident: string; path: string[]; }; export type Tagged = { shape: Record; tag: string | number | bigint | boolean | null | undefined; }; export type Discriminated = [ discriminant: string | number, tagged: Tagged[] ]; export declare function isSpecialCase(x: unknown): x is z.core.$ZodLiteral | z.core.$ZodDate | z.core.$ZodTemplateLiteral; export declare function isNumeric(x: unknown): x is z.core.$ZodNumber | z.core.$ZodNaN; export declare function isScalar(x: unknown): x is z.core.$ZodBoolean | z.core.$ZodSymbol | z.core.$ZodBigInt | z.core.$ZodString; export declare function isNullish(x: unknown): x is z.core.$ZodNull | z.core.$ZodUndefined | z.core.$ZodVoid; export declare function isTypelevelNullary(x: unknown): x is z.core.$ZodAny | z.core.$ZodUnknown | z.core.$ZodNever; export type Primitive = Target; export declare function isPrimitive(x: unknown): x is z.core.$ZodLiteral | z.core.$ZodDate | z.core.$ZodNumber | z.core.$ZodBoolean | z.core.$ZodSymbol | z.core.$ZodBigInt | z.core.$ZodString | z.core.$ZodNaN | z.core.$ZodTemplateLiteral; export type DeepClonePrimitive = Target; export declare function deepCloneIsPrimitive(x: unknown): x is z.core.$ZodLiteral | z.core.$ZodDate | z.core.$ZodNumber | z.core.$ZodBoolean | z.core.$ZodSymbol | z.core.$ZodBigInt | z.core.$ZodNull | z.core.$ZodUndefined | z.core.$ZodString | z.core.$ZodNaN | z.core.$ZodTemplateLiteral | z.core.$ZodVoid; export declare function schemaOrdering(x: readonly [z.core.$ZodType, number], y: readonly [z.core.$ZodType, number]): 0 | 1 | -1; export declare function deepCloneSchemaOrdering(x: T, y: T): 0 | 1 | -1; export declare function inlinePrimitiveCheck(x: Primitive, LEFT_SPEC: PathSpec, RIGHT_SPEC?: PathSpec, useGlobalThis?: boolean): string; export declare function deepCloneInlinePrimitiveCheck(x: DeepClonePrimitive, LEFT_PATH: (string | number)[], RIGHT_PATH?: (string | number)[], useGlobalThis?: boolean): string; //# sourceMappingURL=utils.d.ts.map