1 | import { MathOptions } from './mathoptions';
|
2 | /**
|
3 | * Computes the average of the async-iterable sequence.
|
4 | *
|
5 | * @export
|
6 | * @param {AsyncIterable<number>} source The source async-iterable sequence to compute the average.
|
7 | * @param {AverageOptions<number>} [options] The options for calculating the average.
|
8 | * @returns {Promise<number>} A Promise which returns the computed average for the async-iterable sequence.
|
9 | */
|
10 | export declare function average(source: AsyncIterable<number>, options?: MathOptions<number>): Promise<number>;
|
11 | /**
|
12 | * Computes the average of the async-iterable sequence.
|
13 | *
|
14 | * @export
|
15 | * @template TSource The type of elements in the source sequence.
|
16 | * @param {AsyncIterable<TSource>} source source async-iterable sequence to compute the average.
|
17 | * @param {AverageOptions<TSource>} [options] The options for calculating the average.
|
18 | * @returns {Promise<number>} A Promise which returns the computed average for the async-iterable sequence.
|
19 | */
|
20 | export declare function average<TSource>(source: AsyncIterable<TSource>, options?: MathOptions<TSource>): Promise<number>;
|