import predicateType from '../helpers/predicateType'; /** * Creates an object composed of keys generated from the results of running each element of object thru `iteratee`. * The corresponding value of each key is an array of original keys responsible for generating the key. * * @since 1.0.0 * * @param {Object} object - The object to invert. * @param {Function} [iteratee = identity] - The function invoked per iteration. * @returns The new inverted object. * * @example * const object = { 'a': 1, 'b': 2, 'c': 1 }; * * invertBy(object); * // => { '1': ['a', 'c'], '2': ['b'] } * * invertBy(object, (value) => `group_${value}`); * // => { 'group_1': ['a', 'c'], 'group_2': ['b'] } */ declare const invertBy: (object: Object, iteratee?: predicateType) => Object; export default invertBy;