import { ReducedZodChannel, SchemaMeta, SchemaMetaRegistry } from "./meta.js";
import * as core from "zod/v4/core";
import { $ZodRegistry, $ZodType, $replace } from "zod/v4/core";
//#region src/graph/zod/zod-registry.d.ts
/**
* A Zod v4-compatible meta registry that extends the base registry.
*
* This registry allows you to associate and retrieve metadata for Zod schemas,
* leveraging the base registry for storage. It is compatible with Zod v4 and
* interoperates with the base registry to ensure consistent metadata management
* across different Zod versions.
*
* @template Meta - The type of metadata associated with each schema.
* @template Schema - The Zod schema type.
*/
declare class LanggraphZodMetaRegistry extends $ZodRegistry {
protected parent: SchemaMetaRegistry;
/**
* Creates a new LanggraphZodMetaRegistry instance.
*
* @param parent - The base SchemaMetaRegistry to use for metadata storage.
*/
constructor(parent: SchemaMetaRegistry);
add(schema: S, ..._meta: undefined extends Meta & {
[key: string]: unknown;
} ? [$replace?] : [$replace]): this;
}
declare module "zod/v4" {
interface ZodType = core.$ZodTypeInternals