import { Page } from 'playwright'; export declare function recordPageErrors(page: Page | undefined, callback: (error: Error) => void): Promise;