import type { z as z3 } from 'zod/v3'; import type { Node } from '../../cst/node.js'; import { type NodeTrace } from '../../cst/trace.js'; declare module 'zod' { interface ZodType { _guessedTrace?: NodeTrace | undefined; } } export declare function extendsZodWithTracing(zod: typeof z3): void; export interface ZodV3WalkerContext { keepOriginalSchema: boolean; cache: WeakMap; render: (node: z3.ZodFirstPartySchemaTypes, ctx?: Partial) => Node; } export declare function buildContext(options?: Partial): ZodV3WalkerContext; export declare const zod3Visitor: { [key in z3.ZodFirstPartySchemaTypes['_def']['typeName']]: (node: Extract, ctx: ZodV3WalkerContext) => Node; }; export declare function $zod3(node: z3.ZodFirstPartySchemaTypes, { cache, keepOriginalSchema, }?: { cache?: WeakMap; keepOriginalSchema?: boolean; }): Node;