import type { BrowserContext, Route } from '@playwright/test'; import type { BrowserIssueAllowlistEntry } from './browser-issue-records.mts'; export interface BlockedExternalNetworkRule { pattern: RegExp; reason: string; response: Parameters[0]; } export declare const BLOCKED_EXTERNAL_NETWORK_RULES: BlockedExternalNetworkRule[]; export declare function blockedExternalRequestFailureAllowlist(extra?: readonly BrowserIssueAllowlistEntry[], rules?: readonly BlockedExternalNetworkRule[]): BrowserIssueAllowlistEntry[]; export declare function isBlockedExternalNetworkUrl(url: string, rules?: readonly BlockedExternalNetworkRule[]): boolean; /** * Playwright prefers the most recently registered matching route, so when two rules match the same * URL the later rule in `rules` wins. */ export declare function installBlockedExternalNetwork(context: BrowserContext, rules?: readonly BlockedExternalNetworkRule[]): Promise<() => Promise>;