import type { Mean } from '../../Array/mean.js'; declare global { interface Array { /** * Returns the mean of all elements in the array (only for number or bigint arrays). * * **Do not** use it with an array of bigint with zero elements, as it will return `0` instead of `0n`. * * @throws {TypeError} If the array contains non-numbers or mixed numbers and bigints. * * @example * ```typescript * const arr = [2, 1, 3.5, 3, 4]; * arr.mean(); // => 2.7 * ``` */ mean(): Mean; } interface ReadonlyArray { /** * Returns the mean of all elements in the array (only for number or bigint arrays). * * **Do not** use it with an array of bigint with zero elements, as it will return `0` instead of `0n`. * * @throws {TypeError} If the array contains non-numbers or mixed numbers and bigints. * * @example * ```typescript * const arr = [2, 1, 3.5, 3, 4]; * arr.mean(); // => 2.7 * ``` */ mean(): Mean; } } //# sourceMappingURL=mean.d.ts.map