import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { sum } from '../../asynciterable/sum.js'; import { MathOptions } from '../../asynciterable/mathoptions.js'; export function sumProto( this: AsyncIterable, options?: MathOptions ): Promise; export function sumProto(this: AsyncIterable, options?: MathOptions): Promise; export function sumProto(this: AsyncIterable, options?: MathOptions): Promise { return sum(this, options); } AsyncIterableX.prototype.sum = sumProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { sum: typeof sumProto; } }