export interface ErrorSourceEvent { name?: string; message: string; source?: string; line?: number; col?: number; error?: unknown; } type ErrorListener = (event: ErrorSourceEvent) => void; declare class ErrorSource { private listeners; private originalOnError; private installedOnError; private rejectionHandler; private hooked; subscribe(listener: ErrorListener): () => void; private hook; private unhook; private emit; } export declare const errorSource: ErrorSource; export {}; //# sourceMappingURL=error-source.d.ts.map