/** * An asynchronous function. */ type Task = () => Promise; /** * Options for {@link runParallel}. */ interface RunParallelOptions { /** * The number of tasks that can be executed in parallel. * Defaults to 4. */ parallelTasks?: number; } /** * Runs the given array of tasks in parallel. * @param tasks The tasks the execute. * @param options Additional options. * @returns An array of promises that resolve to results, in the same order as `tasks`. */ declare function runParallel(tasks: Task[], options?: RunParallelOptions): Promise[]; export { runParallel }; export type { RunParallelOptions, Task };