/** * Schema → JSON Schema conversion shim. * * Historically this module was the in-tree zod-to-JSON-Schema converter. * After Phase B2 the conversion lives behind the `SchemaValidator` * contract (`toJsonSchema` / `isOptional`) and the zod-aware logic moved * to `extensions/ext-schema-zod/src/json-schema.ts`. This file is kept as a * back-compat surface so existing callers (`tool/registry.ts`, * `tool/factory.ts`, `workflow/registry.ts`, `routing/api/openapi/...`, * `mcp/server.ts`, `cli/mcp/server.ts`) continue to compile. * * Inputs must be opaque `Schema` values produced by `defineSchema`. * Conversion is routed through the `SchemaValidator` contract so no * zod-specific logic remains in this file. * * @module tool/schema/zod-json-schema */ import type { JsonSchema } from "../../extensions/schema/index.js"; /** * Convert a `Schema` into a JSON Schema document. * * Throws if the input is not a contract schema. */ export declare function zodToJsonSchema(schema: unknown): JsonSchema; /** * Returns `true` when the schema permits `undefined`. */ export declare function isOptionalSchema(schema: unknown): boolean; //# sourceMappingURL=zod-json-schema.d.ts.map