import type { OpenAPIV3_1 } from 'openapi-types'; import type { GeneratedFile } from 'openapi-zod-ts'; /** Options for the service generator. */ export interface ServiceOptions { /** * When set, the generated interface becomes `XService` and each method * receives a final `ctx: Ctx` argument. Use this to thread a caller principal * (auth context, request metadata, etc.) into service methods without coupling * the service interface to any specific framework type. * * Example: `contextType: 'RequestContext'` * Result: `export interface PetstoreService { listPets(ctx: Ctx): Promise }` * * When not set (the default), the interface is generated without a generic parameter * and all existing code remains unchanged. */ contextType?: string; } export declare function generateService(spec: OpenAPIV3_1.Document, options?: ServiceOptions): GeneratedFile; //# sourceMappingURL=service.d.ts.map