import * as i0 from "@angular/core"; export declare class Tasks { private idGenerator; private groups; currentTask: Task | undefined; once: Set; queue(task: Task): void; private run; resetTimeouts(): void; queueOnce(task: Task & { name: string; }): void; waitForGroup(debounce: number): Thenable; private ensureGroup; static UI: number; static work: number; static background: number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export type Task = { id?: number; name?: string; debounce?: number; func: () => any; }; type Thenable = { then: (callback: () => any) => void; }; export {};