/** * Counts elements of an array grouped by an iteratee key * @param {T[]} array Array to count * @param {(value: T, index: number, array: T[]) => K} iteratee * Function to determine the group key for each element * @returns {Record} Object mapping keys to counts * @example countBy([6.1, 4.2, 6.3], Math.floor); // { '4': 1, '6': 2 } * @example countBy(["one", "two", "three"], (s) => s.length); // { '3': 2, '5': 1 } */ export declare const countBy: (array: T[], iteratee: (value: T, index: number, array: T[]) => K) => Record;