import { IterableX } from '../../iterable/iterablex.js'; import { sum } from '../../iterable/sum.js'; import { MathOptions } from '../../iterable/mathoptions.js'; export function sumProto(this: IterableX, options?: MathOptions): number; export function sumProto(this: IterableX, options?: MathOptions): number; export function sumProto(this: IterableX, options?: MathOptions): number { return sum(this, options); } IterableX.prototype.sum = sumProto; declare module '../../iterable/iterablex' { interface IterableX { sum: typeof sumProto; } }