/** * Zod input shapes rendered as TypeScript type text, for jsm_read_api. * * The model has to call these operations correctly from code it writes, so the * argument type is the part that has to be exact — which field is required, * which is an enum of three values, which is an array of objects. That is what * this file produces. * * It deliberately does NOT invent return types. A tool's `description` already * documents its response under "Returns (json format)", written by hand against * a live tenant, and generating a shape from the output schema would produce a * worse second description of the same thing — the mistake family.ts's header * warns about for prose, applied to types. * * Driven by `z.toJSONSchema`, the public documented API, rather than by zod's * `_zod.def` internals, which churn across minor versions. All 94 input shapes * in this catalogue convert without error; the kinds that appear are * string, number, integer, boolean, enum, array, object, record, optional and * default, nested no deeper than an array of flat objects. */ import { z } from "zod"; /** The subset of JSON Schema these shapes produce. */ export interface JsonSchema { type?: string | string[]; properties?: Record; required?: string[]; items?: JsonSchema; enum?: unknown[]; const?: unknown; description?: string; default?: unknown; additionalProperties?: boolean | JsonSchema; anyOf?: JsonSchema[]; minimum?: number; maximum?: number; format?: string; } export declare function typeText(schema: JsonSchema, depth?: number): string; /** * An object type, one property per line with its description as a comment. * * Multi-line rather than inline because the descriptions are the point: a * model reading `query?: string` learns far less than one reading it next to * "field:value search, e.g. status:open AND priority:P1". */ export declare function objectText(schema: JsonSchema, depth?: number): string; /** * The argument type for a raw Zod input shape. * * `io: "input"` is what puts defaulted and optional fields outside `required`, * which is the difference between a signature a model can satisfy and one it * thinks demands every field. */ export declare function argumentsText(shape: z.ZodRawShape): string; //# sourceMappingURL=signature.d.ts.map