export type ErrorSink = (message: string, stack: string | null) => void; /** Extracts message/stack from whatever the runtime hands us. */ export declare function describeError(error: unknown): { message: string; stack: string | null; }; /** * Uncaught JS exceptions: chain into RN's ErrorUtils global handler. * Unhandled promise rejections: Hermes' rejection tracker (RN's default engine). * Native crashes are covered separately by the native ErrorMonitor. */ export declare function installErrorMonitor(sink: ErrorSink, g?: any): void;