import { ApiDocument, HttpController } from '@opra/common'; import { type Application } from 'express'; import { HttpAdapter } from './http-adapter.js'; /** * ExpressAdapter is a platform adapter for the Express.js framework. * It integrates Opra with Express applications and routers. */ export declare class ExpressAdapter extends HttpAdapter { readonly app: Application; protected _controllerInstances: Map; constructor(app: Application, document: ApiDocument, options?: HttpAdapter.Options); get platform(): string; /** * Closes the adapter and performs cleanup. * * @returns A promise that resolves when the adapter is closed. */ close(): Promise; /** * Retrieves a controller instance by its path. * * @param controllerPath - The path of the controller. * @returns The controller instance, or undefined if not found. */ getControllerInstance(controllerPath: string): T | undefined; protected _initRouter(): void; protected _createControllers(controller: HttpController): void; }