import type { IsomorphicIterable, Reducer } from "@vangware/types"; import type { ReducerOutput } from "./types/ReducerOutput.js"; /** * Reducer function for iterables and asynchronous iterables. * * @category Reducers * @example * ``` * const sum = Accumulator(item => total => total + item); * const sumFrom0 = sum(0); * * sumFrom0([1, 2, 3]); // 6 * ``` * @param reducer Reducer function. * @returns Curried function with `reducer` in context. */ export declare const reduce: ( reducer: Reducer, ) => ( initialValue: Accumulator, ) => >( iterable: Iterable_1, ) => ReducerOutput;