import type { OpenAPIV3_1 } from 'openapi-types'; import type { GeneratedFile } from './types.js'; /** * Generate server.ts — a createServerClient() factory that pre-binds a * per-request ClientConfig to every generated client function. * * Useful for Next.js App Router / RSC where auth config differs per request * and passing it to every function call would be repetitive. * * Generated pattern (explicit signatures per operation): * export function createServerClient(config: Partial) { * return { * listTasks: (params?: Parameters[0]) => listTasks(params, config), * getTask: (id: Parameters[0]) => getTask(id, config), * createTask: (body: Parameters[0]) => createTask(body, config), * updateTask: (id: Parameters[0], body: Parameters[1]) => updateTask(id, body, config), * deleteTask: (id: Parameters[0]) => deleteTask(id, config), * } * } */ export declare function generateServer(spec: OpenAPIV3_1.Document): GeneratedFile; //# sourceMappingURL=server.d.ts.map