import { type HttpContext } from './HttpHandlerFactory.js'; /** Configuration for runtime mode */ export interface LoadConfig { /** Base URL for API calls */ readonly baseUrl: string; /** Default headers sent with every request */ readonly headers?: Record; /** Custom fetch function (default: globalThis.fetch) */ readonly fetchFn?: typeof fetch; } /** A runtime tool definition ready for registration */ export interface RuntimeTool { readonly name: string; readonly description: string; readonly actions: RuntimeAction[]; } /** A single action in a runtime tool */ export interface RuntimeAction { readonly name: string; readonly description: string; readonly method: string; readonly path: string; readonly handler: (ctx: HttpContext, args: Record) => Promise; } /** * Parse an OpenAPI spec and build runtime tool definitions. * * Returns an array of `RuntimeTool` objects. Each tool corresponds * to one OpenAPI tag. Each action has a pre-wired handler that * proxies to the REST API. * * @param input - YAML/JSON string or pre-parsed OpenAPI object * @param config - Runtime configuration (baseUrl, headers, fetchFn) * @returns Array of runtime tool definitions */ export declare function loadOpenAPI(input: string | object, config: LoadConfig): RuntimeTool[]; //# sourceMappingURL=loadOpenAPI.d.ts.map