import { $ZodRegistry } from "zod/v4/core"; /** * NOTE: This module reaches into the `_map` and `_idmap` fields of `$ZodRegistry`. * Zod does not expose a public way to iterate a registry or to seed a registry with * a fallback lookup, so we depend on these internals. All such access is kept in this * file so an upgrade that changes the registry representation only has to be fixed here. */ export type SchemaRegistryMeta = { id?: string | undefined; [key: string]: unknown; }; export type IORegistries = { inputRegistry: $ZodRegistry; outputRegistry: $ZodRegistry; }; export declare const generateIORegistries: (baseRegistry: $ZodRegistry) => IORegistries; /** * Returns a memoized accessor for the derived input/output registries. * * The per-route transform runs once for every documented route, but the derived * registries only depend on the contents of the base registry. Rebuilding them on * every call is wasted work, so we cache the result and only recompute when the * number of registered schemas changes (e.g. schemas added before a later * `app.swagger()` call). */ export declare const createIORegistriesProvider: (baseRegistry: $ZodRegistry) => (() => IORegistries);