/** * Calculates the arithmetic sum of all numbers in the source iterable. * * @param src - Source iterable yielding numeric values to accumulate. * @returns Total of all elements in `src`, or `0` when the iterable is empty. * * @example * ```ts * const total = _sum([1, 2, 3, 4]); * console.log(total); // 10 * ``` * * or using the curried version: * ```ts * const total = pipeInto([1, 2, 3, 4], sum()); * console.log(total); // 10 * ``` */ export declare function _sum(src: Iterable): number; /** * Curried version of {@link _sum}. */ export declare const sum: () => (src: Iterable) => number;