/** * Wraps a Promise with a timeout, rejecing the promise with the timeout. */ export declare function withTimeout(promise: Promise | void, message: string, timeout: number): Promise; /** * Iterates iterable, executes each function in parallel and awaits * all function return values */ export declare function forEachAsync(it: Iterable, fn: (t: T) => void | Promise): Promise; /** * Iterates iterable, executes each function in parallel and awaits * all function return values returning the awaited result */ export declare function mapAsync(it: Iterable, fn: (t: T) => R | Promise): Promise; //# sourceMappingURL=async.d.ts.map