/** * Page-error buffer for `page_errors` (schema v2). Listens to window "error" * and "unhandledrejection" — console is NEVER patched — and keeps the last 5 * messages (each ≤200 chars, oldest first). Fully passive: never preventDefault, * never rethrows, never throws itself. Gated by config `captureErrors`. */ /** Reset the buffer and (when enabled) install the window listeners. */ export declare function startErrors(captureErrors: boolean): void; /** Copy of the buffered messages, oldest first. [] when capture is off. */ export declare function getPageErrors(): string[]; /** Remove the listeners (destroy()). The buffer is cleared on next start. */ export declare function stopErrors(): void;