///
import { AdapterHttpModule } from './adapters/index.js';
export interface AppOptions {
port?: number;
beforeAllMiddlewares?: Array<{
path?: string;
function: any;
}>;
errorMiddleware?: any;
fileExtension?: 'js' | 'ts';
credentials?: {
key: string;
cert: string;
};
}
export declare class App {
server: AdapterHttpModule;
constructor();
initHttpModule(adapter: AdapterHttpModule, options?: AppOptions): Promise;
initApiModule(): void;
listen(port: number, credentials?: {
key: string;
cert: string;
}): Promise;
use(base: (req: any, res: any, next: Function) => any): any;
use(base: string, fn: (req: any, res: any, next: Function) => any): any;
private loadControllers;
}
//# sourceMappingURL=app.d.ts.map