/** * Batches multiple non-critical tasks (like directive renders) into a single queue. * Delays execution until the browser is idle, or until the timeout expires. * * @param task - The callback function containing the DOM update logic. * @param options - Configuration containing the maximum timeout budget. * * Note: If multiple tasks are scheduled before the idle callback executes, they will be executed in the same batch, **sharing the same timeout**. This ensures efficient use of idle time while preventing starvation of critical tasks. * * @example * ```ts * // Schedule multiple tasks in quick succession * scheduleIdleBatch(() => updateDirectiveA(), { timeout: 1000 }); * scheduleIdleBatch(() => updateDirectiveB(), { timeout: 1000 }); * scheduleIdleBatch(() => updateDirectiveC(), { timeout: 1000 }); */ export declare const scheduleIdleBatch: (task: VoidFunction, options?: IdleRequestOptions) => void; //# sourceMappingURL=schedule_idle_batch.d.ts.map