//#region src/internal/global-handlers.d.ts /** * Installs `process.on("uncaughtException")` and * `process.on("unhandledRejection")` listeners that report to Interfere. * * Uncaught exceptions: captured, spans flushed (best-effort, 2s timeout), * then `process.exit(1)`. Once an `uncaughtException` listener is * registered, Node will not exit on its own — leaving the process alive * after an uncaught error usually means a corrupted state, so we own the * exit. Customers who need different exit semantics should opt out and * register their own handler. * * Unhandled rejections: captured and flushed, but the SDK does not call * `process.exit`. Whether unhandled rejections are fatal is governed by * Node's `--unhandled-rejections` flag (default `throw` since v15) and we * don't override that. */ export declare function installGlobalHandlers(options: { readonly captureUncaughtException: boolean; readonly captureUnhandledRejection: boolean; readonly flush: () => Promise; }): void; export declare function uninstallGlobalHandlers(): void; //#endregion