/** * Runs queued tasks one per event loop iteration, in the order they were * pushed. While the queue is idle, a task runs synchronously inside `push`. */ export declare class EventQueue { private onError; private tasks; private draining; constructor(onError: (error: Error) => void); push(task: () => void): void; clear(): void; private drain; }