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