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