/** * Typed route-map generation from the app's OpenAPI document. * * `generateRouteMap` turns `/api/openapi.json` into a small standalone module: * an `ApiRoutes` type — one `Op` entry per operation, carrying its method, * path literal, query/body/output types and whether it streams — plus a * runtime `routes` descriptor object for that same list. * * The transport itself is deliberately NOT generated: a ~90-line handwritten * client (`createRestClient`) consumes any route map. Types change with every API * edit and are regenerated; the client never changes at all. */ type JsonSchema = { $ref?: string; type?: string | string[]; anyOf?: JsonSchema[]; oneOf?: JsonSchema[]; allOf?: JsonSchema[]; const?: unknown; enum?: unknown[]; items?: JsonSchema; properties?: Record; required?: string[]; additionalProperties?: boolean | JsonSchema; }; /** JSON-schema subset → TypeScript type expression, with $refs inlined. */ export declare function schemaToType(schema: JsonSchema | undefined, components?: Record, depth?: number): string; /** * Deterministic operation names from the path shape: * `/api/posts` GET → `postsList`; `/api/posts/{id}` PATCH → `postsUpdate`; * `/api/posts/live` GET → `postsLive`; `/api/enrich` POST → `enrichCreate`. */ export declare function operationName(path: string, method: string): string; export declare function generateRouteMap(input: unknown): string; export {}; //# sourceMappingURL=codegen.d.ts.map