import type { Page, BrowserContext } from "playwright";
export type ThrottleProfile = {
    download: number;
    upload: number;
    latency: number;
    label: string;
};
export declare const THROTTLE_PROFILES: Record<string, ThrottleProfile>;
/**
 * Take the browser offline by aborting all network requests.
 */
export declare function goOffline(context: BrowserContext): Promise<void>;
/**
 * Bring the browser back online.
 */
export declare function goOnline(context: BrowserContext): Promise<void>;
/**
 * Test if a page handles offline state gracefully.
 * Returns true if the page showed an offline indicator.
 */
export declare function testOfflineHandling(page: Page, timeout?: number): Promise<boolean>;
/**
 * Enable throttling via CDP (Chromium DevTools Protocol).
 * Only works with Chromium/Playwright.
 */
export declare function enableThrottling(context: BrowserContext, profile: ThrottleProfile | keyof typeof THROTTLE_PROFILES): Promise<void>;
/**
 * Disable CDP-based throttling (re-enable normal network).
 */
export declare function disableThrottling(context: BrowserContext): Promise<void>;
//# sourceMappingURL=offline-mode.d.ts.map