import type { MessagePort } from "worker_threads"; import type { AsyncHook } from "async_hooks"; interface LambdaErrorResponse { errorType?: string; errorMessage: string; trace?: string[]; } export declare const genResponsePayload: (err: any) => LambdaErrorResponse; export declare const patchConsole: () => void; export declare const formatStack: (_stack: string[]) => string; interface IEventQueueContext { [id: string]: { timers: Map; promises: Map; timeout?: boolean; }; } export declare class EventQueue extends Map { private static readonly EMPTY_ARGS; static IGNORE: string[]; onEmpty?: () => void; requestId: string; callbackWaitsForEmptyEventLoop: boolean; async: boolean; hook?: AsyncHook; static context: IEventQueueContext; static parentPort: MessagePort | null; static logTimeoutPossibleCause: (requestId: string) => void; constructor(requestId: string); static restoreContext: () => void; storeContextTimers: () => void; isEmpty: () => boolean; add: (asyncId: number, type: string, triggerAsyncId: number, resource: any) => this; destroy: (asyncId: number) => void; resolve: (asyncId: number) => void; enable: () => void; disable: () => void; } export {};