import type { Page } from "playwright"; export type NetworkError = { readonly method: string; readonly resourceType: string; readonly status: number; readonly statusText: string; readonly timestamp: number; readonly url: string; }; export declare class NetworkMonitor { readonly name: string; /** Only 4xx errors. */ get clientErrors(): readonly NetworkError[]; /** All recorded 4xx/5xx errors. */ get errors(): readonly NetworkError[]; /** Only 5xx errors. */ get serverErrors(): readonly NetworkError[]; private _errors; private _page; constructor(name: string); /** Assert zero HTTP errors were recorded, with optional URL exclusions. */ assertClean(options?: { exclude?: RegExp[]; }): void; /** Assert zero 5xx errors were recorded, with optional URL exclusions. */ assertNoServerErrors(options?: { exclude?: RegExp[]; }): void; /** Bind to a page. Throws if already bound — one monitor per page. */ install(page: Page): void; /** Reset collected errors (useful mid-flow if only a specific section matters). */ reset(): void; private _filtered; } //# sourceMappingURL=networkMonitor.d.ts.map