/** * Creates an object with the same keys as the given object, but * with values transformed by the provided function. * * @param object - The source object. * @param function_ - The function invoked per value. Receives (value, key). * @returns A new object with transformed values. * * @remarks * **Prototype pollution warning:** This function does not filter out * prototype-polluting keys (`__proto__`, `constructor`, `prototype`). * If processing user-controlled input, sanitize with the appropriate * `removePrototype*` helper before calling this function: * - `removePrototype` — shallow sanitization of a single object * - `removePrototypeDeep` — recursive sanitization of a single object (for deeply nested data) * - `removePrototypeMap` — shallow sanitization of an array of objects * - `removePrototypeMapDeep` — recursive sanitization of an array of objects (for deeply nested data) * * @example * ```typescript * mapValues({ a: 1, b: 2 }, (value) => value * 2); * // { a: 2, b: 4 } * ``` */ export declare const mapValues: , R>(object: T, function_: (value: T[keyof T], key: string) => R) => Record;