/** * 根据提供函数返回的值映射一个新对象 * @template T - 原始对象值类型 * @template R - 映射后的值类型 * @param {Record} obj - 要映射的对象 * @param {(value: T, key: string, obj: Record) => R} fn - 映射函数 * @returns {Record} 映射后的新对象 * @example * const users = { * fred: { user: 'fred', age: 40 }, * pebbles: { user: 'pebbles', age: 1 } * }; * mapValues(users, u => u.age); * // => { fred: 40, pebbles: 1 } */ export declare const mapValues: (obj: Record, fn: (value: T, key: string, obj: Record) => R) => Record;