import { Pipeline } from '../types'; /** * Decorator that returns the previous and current value as array * * @param {Pipeline.StepFunction} fn - selector function to select the array to loop * @returns {Pipeline.StepFunction} * * @example * * const { pairwise, step, pipe } = require('@axa/bautajs-core'); * * const getMovie = step(() => ({ name: 'star wars' })); * const getMovieImdbIdAsync = step<{ name: string }, string>(() => Promise.resolve('imdb12354')); * * const pipeline = pipe(getMovie, pairwise(getMovieImdbIdAsync), ([movie, imdbId]) => ({ * ...movie, * imdb_id: imdbId * })); * */ export declare function pairwise(fn: Pipeline.StepFunction): Pipeline.StepFunction; //# sourceMappingURL=pairwise.d.ts.map