import { AsyncLocalStorage } from 'node:async_hooks'; import { ReadyEventEmitter } from 'get-ready'; export interface BaseOptions { initMethod?: string; localStorage?: AsyncLocalStorage; [key: string]: any; } export declare abstract class Base extends ReadyEventEmitter { #private; options: BaseOptions; constructor(options?: BaseOptions); /** * support `await this.await('event')` */ await(event: string): Promise; /** * get AsyncLocalStorage from options * @return {AsyncLocalStorage} asyncLocalStorage instance or undefined */ get localStorage(): AsyncLocalStorage; readyOrTimeout(milliseconds: number): Promise; _defaultErrorHandler(err: any): void; close(): Promise; get isClosed(): boolean; }