import { Paths, Prop, ReplaceType } from '../typings/types'; interface PathSet { (path: [K], value: V, obj: O): ReplaceType; (path: [K], value: V): (obj: O) => ReplaceType; (path: [K]): { (value: V, obj: O): ReplaceType; (value: V): (obj: O) => ReplaceType; }; (path: Paths, value: any, obj: O): O; (path: Paths, value: any): (obj: O) => O; (path: Paths): { (value: any, obj: O): O; (value: any): (obj: O) => O; }; } /** * Returns the result of "setting" the portion of the given data structure * focused by the given paths to the given value. * * **Note:** If property in the object is equal to value by reference then function * just returns object without changes * * @param {[String]} paths * @param {*} value * @param {Object} obj * @return {Object} * @example * * pathSet(['a', 'b'], 3, {}) // => { a: { b: 3 } } */ declare const _default: PathSet; export default _default;