import { MathOptions } from './mathoptions'; /** * Computes the sum of a sequence of values. * * @export * @param {AsyncIterable} source A sequence of values to calculate the sum. * @param {MathOptions} [options] Optional options for providing a selector, thisArg and abort signal. * @returns {Promise} A promise containing the sum of the sequence of values. */ export declare function sum(source: Iterable, options?: MathOptions): number; /** * Computes the sum of a sequence of values. * * @export * @template T The type of values in the source sequence. * @param {Iterable} source A sequence of values to calculate the sum. * @param {MathOptions} [options] Optional options for providing a selector, thisArg and abort signal. * @returns {Promise} A promise containing the sum of the sequence of values. */ export declare function sum(source: Iterable, options?: MathOptions): number;