import type openapi from "openapi3-ts"; import type { CommandSpec } from "./service-spec.js"; export interface OpenAPISpecOptions { /** * When true, creates RPC paths in the form POST /rpc/commandName for each command. * * @default true */ createRpcPaths?: boolean; /** * When true, creates a Rest path in the form `${command.method} ${command.path}` for each command that has a path defined. * * @default true */ createRestPaths?: boolean; info: openapi.InfoObject; servers?: openapi.ServerObject[]; onRpcPath?: (command: CommandSpec, pathItem: openapi.OperationObject) => openapi.PathObject; onRestPath?: (command: CommandSpec, pathItem: openapi.OperationObject) => openapi.PathObject; } export declare function generateOpenAPISpec(commands: CommandSpec[], options: OpenAPISpecOptions): openapi.OpenAPIObject; //# sourceMappingURL=open-api-spec.d.ts.map