import { IMidwayBootstrapOptions, IMidwayGlobalContainer } from '@midwayjs/core'; import { ILogger, LoggerFactory } from '@midwayjs/logger'; export declare class BootstrapStarter { protected appDir: string; protected baseDir: string; protected globalOptions: Partial; protected globalConfig: any; private applicationContext; private eventBus; configure(options?: IMidwayBootstrapOptions): this; init(): Promise; run(): Promise; stop(): Promise; getApplicationContext(): IMidwayGlobalContainer; protected getBaseDir(): string; } export declare class Bootstrap { protected static starter: BootstrapStarter; protected static logger: ILogger; protected static configured: boolean; protected static bootstrapLoggerFactory: LoggerFactory; protected static runningPromise: Promise | null; /** * set global configuration for midway * @param configuration */ static configure(configuration?: IMidwayBootstrapOptions): typeof Bootstrap; static getStarter(): BootstrapStarter; static run(): Promise; static stop(): Promise; static reset(): void; /** * on bootstrap receive a exit signal * @param signal */ private static onSignal; /** * on bootstrap process exit * @param code */ private static onExit; private static uncaughtExceptionHandler; private static unhandledRejectionHandler; static getApplicationContext(): IMidwayGlobalContainer; } //# sourceMappingURL=bootstrap.d.ts.map