import { Options } from './types.cjs';

/**
 * Promise.map(arr, fn, concurrency) in Bluebird
 * code take from caolan/async
 */

declare function map<IN, OUT = Awaited<IN>>(arr: IN[], fn?: (item: Awaited<IN>, index?: number, array?: IN[]) => OUT, { concurrency }?: Options): Promise<Awaited<OUT>[]>;

export { map as default, map };
