declare type FunctionReturnType = T extends () => infer R ? R : never; declare type PromiseArrayValues unknown)[] | []> = T extends readonly (() => unknown)[] ? { -readonly [P in keyof T]: Awaited>; } : never; /** * promise all with each task could retry in multiple times. * * @example * * promiseAll([() => 1, () => new Promise((resolve) => resolve(2))], 2); * * // => [1, 2] */ export declare function promiseAll unknown)[]) | [])>(tasks: T, retry?: number): Promise>; /** * promise all with each task could retry in multiple times. * * @example * * promiseAll([() => 1, () => new Promise((resolve) => resolve(2))], () => true); * * // => [1, 2] */ export declare function promiseAll unknown)[]) | [])>(tasks: T, predicate: () => unknown): Promise>; export {};