import { Express, Router } from 'express'; import { CorsOptions } from 'cors'; import { Config as LoggerConfig } from 'commonjs-logger'; export { API, GLOBAL } from './constants'; interface Config { router: Router; logger: LoggerConfig; ignoredAccessLogPaths: string; openapiBaseSchema?: string; openapiSpec?: any; env: string; shouldCheckOpenApiBaseSchema?: boolean; requestPayloadLimit?: string; corsOptions?: CorsOptions; encryptionKey?: string; /** * Allows you to disable default body parsers (urlencoded, json & cookie-parser) * and provides you with express app instance to register your own. * @param app App instance for your function to register your own body parsers. */ customBodyParser?: (app: Express) => void; } export declare class App { readonly app: Express; private readyState; private readonly logger; private readonly config; private dynamicRouter?; constructor(appConfig: Config); init(): Express; private decoder; private initLogging; private initSecurity; private initHealth; private registerDynamicRouter; reloadDynamicRouter(openApiSpec?: any): void; private initSwaggerUI; private initOpenApiValidation; private modifyResponseBody; private initRoutes; private openApiErrorTranslation; private initErrorTranslation; private initErrorHandling; shutdown(): void; } export default App;