/** * Schema optimization utilities for LLM usage * TypeScript port of the Python SchemaOptimizer */ import { z } from 'zod'; export declare class SchemaOptimizer { /** * Convert a Zod schema to an optimized JSON schema for OpenAI strict mode * * @param schema - The Zod schema to convert * @returns Optimized JSON schema with all $refs resolved */ static createOptimizedJsonSchema(schema: z.ZodSchema): Record; /** * Convert a Zod schema to JSON Schema */ private static zodToJsonSchema; /** * Optimize schema by flattening $refs and removing unnecessary fields */ private static optimizeSchema; /** * Ensure all objects have additionalProperties: false for OpenAI strict mode */ private static ensureAdditionalPropertiesFalse; /** * Make schema strict-mode compatible by ensuring all properties are required */ private static makeStrictCompatible; } //# sourceMappingURL=schema.d.ts.map