/** * Sets a value for the given key in a Map and returns the value. * * This is useful when you want to chain map setting with inline assignment, * for example when building up a Map in a functional style. * * @param map - The Map to update. * @param key - The key to set. * @param value - The value to set for the key. * @returns The same value that was set. * * @example * ```ts * const m = new Map(); * const v = setMapValue(m, 'a', 42); * // v === 42, m.get('a') === 42 * ``` */ export declare function setMapValue(map: Map, key: K, value: T): T; //# sourceMappingURL=set-map-value.d.ts.map