export type Task = (...args: T) => Promise; /** * Wrap an async function to wait for previous calls to complete first. */ export declare function taskQueue(task: Task): Task;