declare global { interface Array { /** * Returns the count of elements from the array that satisfy the predicate. * @param pred The predicate function. * * @example * ```typescript * [1, 2, 3, 3, 5].count((x) => x === 3); // => 2 * [1, 2, 3, 3, 5].count((x) => x === 10); // => 0 * ``` */ count: ( this: AS, pred: (value: AS[number], index: number, array: AS) => boolean, ) => number; } interface ReadonlyArray { /** * Returns the count of elements from the array that satisfy the predicate. * @param pred The predicate function. * * @example * ```typescript * [1, 2, 3, 3, 5].count((x) => x === 3); // => 2 * [1, 2, 3, 3, 5].count((x) => x === 10); // => 0 * ``` */ count: ( this: AS, pred: (value: AS[number], index: number, array: AS) => boolean, ) => number; } } export {}; //# sourceMappingURL=count.d.ts.map