export declare type tBootContext = { moduleRoot: string; processRoot: string; }; export declare abstract class AppLifecycleEmitter { private static _instance; static readonly instance: AppLifecycleEmitter; protected constructor(); abstract init(bCtx: tBootContext): Promise; protected eventsHandlers: { [event: string]: ((...args: any[]) => Promise)[]; }; onClosing: () => Promise; protected getHandlerBucket(event: string): ((...args: any[]) => Promise)[]; emit(event: string, ...args: any[]): Promise; } export declare class WorkerLifecycleEmitter extends AppLifecycleEmitter { init(bCtx: tBootContext): Promise; }