import type { Resource } from "webappwiz/disposable"; import type { Task, TaskQueue, TaskQueueEventMap, TaskQueueState } from "./task-queue.js"; /** * Runs the task, and if anything triggered while it was running, runs it once * more. Triggers that arrive during a run collapse into that single rerun, so * work asked for a hundred times happens twice: now, and once with the latest * state. */ export declare class ConflatedTaskQueue implements TaskQueue, Resource { private readonly task; private readonly dispatcher; readonly events: import("webappwiz/events").Events; private running; private pending; constructor(task: Task); state(): TaskQueueState; trigger(): void; cancel(): void; dispose(): void; private pump; private setRunning; }