/** Sanitize stack trace for telemetry: homedir, absolute-path collapse, secrets, truncation. */ export declare function sanitizeStack(stack: string | undefined): string; /** Sanitize an error message for telemetry (homedir, secrets, truncation). */ export declare function sanitizeMessage(msg: string | undefined): string; /** * Register global handlers for uncaughtException and unhandledRejection * that capture crash details before the process exits. * * Handlers are SYNCHRONOUS. Node does NOT await async uncaughtException handlers. * We queue the event synchronously; store-forward's process.on('exit') handler * persists it to disk. The next CLI invocation recovers and sends. */ export declare function installCrashReporter(): void;