export declare const requestIdleCallback: ((callback: IdleRequestCallback, options?: IdleRequestOptions) => number) & typeof globalThis.requestIdleCallback; export declare const cancelIdleCallback: ((handle: number) => void) & typeof globalThis.cancelIdleCallback; /** * awaitPageLoadAndIdle - Invokes the callback after: * 1. The page has finished loading * 2. Idle time remaining is >= specified `remainingTime` (default 49ms) * 3. Timeout of `timeout` duration (default 2000ms) if idle condition is not met */ export declare function awaitPageLoadAndIdle({ remainingTime, timeout }?: { remainingTime: number; timeout: number; }): Promise;