import { BautaJSInstance, Context, Pipeline } from '../types'; /** * Loop over the selected array and create a promise for each array item with the given mapFn, then it will resolve everything in parallel. * @template TIn * @template TOut * @param {...functions: Pipeline.StepFunction[]} functions * @returns {Pipeline.StepFunction} * @example * * const { parallelMap, pipe } = require('@batuajs/core'); * const { getMovieImdbId } = require('./my-datasource'); * * operations.op1.setup(pipe( * parallelMap( * movies => movies, * getMovieImdbId() * ), * movies => movies.filter(m => !!m.imdb_id) * ); */ export declare function parallelMap(selector: (prev: TIn, ctx: Context, bautajs: BautaJSInstance) => TIn1[], mapFn: Pipeline.StepFunction): Pipeline.StepFunction; //# sourceMappingURL=parallel-map.d.ts.map