/** * Converts Zod schemas to Extend's JSON Schema format. * * Note: The API performs comprehensive validation and transformation of schemas. * This module focuses on structural conversion and compile-time type safety. * Complex validation (nesting limits, property counts, property key format) is handled server-side. */ import { z } from "zod"; import { ExtendRootJSONSchema } from "./types"; /** * Error thrown when a Zod schema cannot be converted to Extend JSON Schema. */ export declare class SchemaConversionError extends Error { readonly path: string[]; constructor(message: string, path?: string[]); } /** * Converts a Zod object schema to Extend's root JSON Schema format. * * @param zodSchema - A Zod object schema * @returns The converted Extend JSON Schema * @throws {SchemaConversionError} If the schema cannot be converted */ export declare function zodToExtendSchema(zodSchema: z.ZodObject): ExtendRootJSONSchema;