import type { OpenAPIV3_1 } from 'openapi-types'; import type { GeneratedFile } from 'openapi-zod-ts'; export { generateFastifyRouter } from './fastify-type-provider.js'; interface RouterOptions { schemaNames?: Set; schemaImportPath?: string; /** * When set, matches the `contextType` from ServiceOptions. The generated router * handlers extract a context value from the framework's native channel and pass * it as the final argument to every service call. * * Framework channels used: * Hono: `c` (the Hono Context object) * Express: `req` (the Express Request object) * Fastify: `req` (the Fastify Request object) * * Must match the value set in ServiceOptions so service call signatures align. */ contextType?: string; /** * Relative import path (from the generated router.ts) to the shared `_shared/errors.js` * module. Defaults to `./_shared/errors.js` when not provided. * The generator always passes the correct path based on the shared dir derivation logic. */ errorsImportPath?: string; } export declare function generateExpressRouter(spec: OpenAPIV3_1.Document, options?: RouterOptions): GeneratedFile; export declare function generateRouter(spec: OpenAPIV3_1.Document, options?: RouterOptions): GeneratedFile; //# sourceMappingURL=router.d.ts.map