/** * Schema conversion utility: Zod -> JSON Schema -> TypeBox. * * Pi-agent-core uses TypeBox tool parameter schemas. * Consumer code continues using Zod. This module bridges the gap * at the tool registration boundary. * * Handles BOTH Zod v3 schemas (used by @animus-labs/shared tools) * and Zod v4 schemas. Zod v3 schemas use `zod-to-json-schema`, * Zod v4 schemas use the native `toJSONSchema()`. */ import { type TSchema } from 'typebox'; /** * Convert a Zod schema (v3 or v4) to a TypeBox TSchema via JSON Schema. * * @param zodSchema - Any Zod schema (z.object, z.string, etc.) * @returns A TypeBox TSchema suitable for pi-agent-core AgentTool definitions */ export declare function zodToTypebox(zodSchema: unknown): Promise; //# sourceMappingURL=schema-converter.d.ts.map