/** * Creates a new object by applying a mapping function to each value of the input object. * * Iterates over the object's own enumerable string keys, * applies the given callback to each `[key, value]` pair, * and returns a new object with the same keys and transformed values. * * @typeParam T - The type of the input object’s values. * @typeParam P - The type of the output object’s values. * @param obj - The object to map over. * @param fn - A function that receives the value and key, and returns a new value. * @returns A new object with the same keys and transformed values. * * @example * ```ts * const input = { a: 1, b: 2 }; * const result = mapObject(input, (v) => v * 2); * // { a: 2, b: 4 } * ``` */ export declare function mapObject(obj: Record, fn: (v: T, k: string) => P): Record; //# sourceMappingURL=map-object.d.ts.map