import { Simplify } from 'type-fest'; import { E as EnumerableStringKeyOf } from './EnumerableStringKeyOf-BQ4aR5ep.cjs'; import { E as EnumerableStringKeyedValueOf } from './EnumerableStringKeyedValueOf-CLzltniW.cjs'; type MappedValues = Simplify<{ -readonly [P in keyof T as `${P extends number | string ? P : never}`]: Value; }>; /** * Maps values of `object` and keeps the same keys. Symbol keys are not passed * to the mapper and will be removed from the output object. * * To also copy the symbol keys to the output use merge: * `merge(data, mapValues(data, mapper))`). * * @param data - The object to map. * @param valueMapper - The mapping function. * @signature * R.mapValues(data, mapper) * @example * R.mapValues({a: 1, b: 2}, (value, key) => value + key) // => {a: '1a', b: '2b'} * @dataFirst * @category Object */ declare function mapValues(data: T, valueMapper: (value: EnumerableStringKeyedValueOf, key: EnumerableStringKeyOf, data: T) => Value): MappedValues; /** * Maps values of `object` and keeps the same keys. Symbol keys are not passed * to the mapper and will be removed from the output object. * * To also copy the symbol keys to the output use merge: * `merge(data, mapValues(data, mapper))`). * * @param valueMapper - The mapping function. * @signature * R.mapValues(mapper)(data) * @example * R.pipe({a: 1, b: 2}, R.mapValues((value, key) => value + key)) // => {a: '1a', b: '2b'} * @dataLast * @category Object */ declare function mapValues(valueMapper: (value: EnumerableStringKeyedValueOf, key: EnumerableStringKeyOf, data: T) => Value): (data: T) => MappedValues; export { mapValues };