/** * Network throttle simulation via CDP. * * Simulates different network conditions during crawl to test how the app * behaves under slow connections. Useful for detecting loading states, error * handling, and performance degradation on poor networks. * * Conditions mirror Chrome DevTools presets: * - slow3g: ~500kbps download, high latency * - fast3g: ~1.6Mbps download, medium latency * - 4g: ~9Mbps download, low latency * - offline: no connectivity * - none: no throttle (default) */ export type NetworkConditionPreset = 'none' | 'slow3g' | 'fast3g' | '4g' | 'offline'; export declare function applyNetworkThrottle(cdpSession: any, preset: NetworkConditionPreset): Promise; export declare function clearNetworkThrottle(cdpSession: any): Promise; export interface ThrottledCrawlOpts { /** Network preset to apply during this URL's crawl */ preset: NetworkConditionPreset; /** Restore to 'none' after navigation (default: true) */ restoreAfter?: boolean; } /** Apply throttle, run fn, restore. Returns fn's result. */ export declare function withNetworkThrottle(cdpSession: any, preset: NetworkConditionPreset, fn: () => Promise, restoreAfter?: boolean): Promise;