import type { OperationObject } from 'openapi3-ts'; import type { RestDataSource } from '../datasources/index.js'; import type { AnyObject } from '../types.js'; /** * Initialize a data source * @param {DataSource} dataSource The dataSource object */ export declare function initialize(dataSource: RestDataSource): Promise; /** * The OpenApiConnector constructor * @param {Object} settings The connector settings * @constructor */ export declare class OpenApiConnector { readonly settings: AnyObject; readonly url: string; private spec; private client; private serviceProxies?; constructor(settings?: AnyObject); /** * Parse swagger specification, setup client and export service proxies */ connect(): Promise; setupServiceProxies(): Promise; createWrapper(method: (...args: unknown[]) => Promise, operation: OperationObject): (...args: unknown[]) => Promise; /** * Match the method name from SwaggerClient interfaces to corresponding * Operation spec object */ getOperationSpec(methodName: string): any; }