/** * Render a JSON Schema as a simplified, human-readable TypeScript type. * * This is a *display* conversion, not a faithful TS codegen: it surfaces the * shape (objects, arrays, unions, enums, records) and property descriptions so * a model — or a human reading `/dump` — can grasp a tool's parameters at a * glance, far more legibly than raw JSON Schema. Refinement keywords * (min/max/pattern/format) are intentionally dropped; only type structure, * literal enums/consts, and descriptions survive. */ export interface JsonSchemaToTsOptions { /** Indentation unit for nested object bodies. Default two spaces (none in `harmony` style). */ readonly indent?: string; /** Emit `description` keywords as comments on object properties. Default true. */ readonly comments?: boolean; /** * Output flavor. `default` renders JSDoc comments, `;` delimiters, and * indented bodies; `harmony` renders the flat OpenAI-Harmony convention — * `//` line comments, `,` delimiters, no indentation. */ readonly style?: "default" | "harmony"; } /** Convert a JSON Schema object into a simplified TypeScript type string. */ export declare function jsonSchemaToTypeScript(schema: unknown, options?: JsonSchemaToTsOptions): string;