export type Task = (...dataset: T) => Promise | U; export declare function runTask(task: Task, datasets: T[]): Promise;