import { expect, type Browser, type BrowserContext, type Page } from '@playwright/test'; import { BrowserIssueMonitor } from './browser-errors.mts'; import type { MonitoredTestInfo } from './monitored-test-info.mts'; import type { BrowserIssueAllowlistEntry } from './browser-issue-records.mts'; import { type BlockedExternalNetworkRule } from './blocked-external-network.mts'; export interface BrowserTestOptions { allowlist?: readonly BrowserIssueAllowlistEntry[]; assertTimeout?: (timeout: number, label: string) => void; /** Replaces the default GTM/GA/DoubleClick rules; spread BLOCKED_EXTERNAL_NETWORK_RULES to extend them. */ rules?: readonly BlockedExternalNetworkRule[]; warningPattern?: RegExp; } interface BrowserErrorFixtures { browserErrors: BrowserIssueMonitor; } export declare function createBrowserErrorsFixture(options?: BrowserTestOptions): ({ context }: { context: BrowserContext; }, run: (monitor: BrowserIssueMonitor) => Promise, testInfo: MonitoredTestInfo) => Promise; export declare function createBrowserTest(options?: BrowserTestOptions): import("@playwright/test").TestType; export declare const test: import("@playwright/test").TestType; export { expect }; export declare function withMonitoredPage(browserOrContext: Browser | BrowserContext, testInfo: MonitoredTestInfo, callback: (page: Page) => Promise, options?: BrowserTestOptions): Promise;