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