/** * Updates the value of a property at the specified path in the provided object using the given updater function. * * @since 1.0.0 * * @template T - Type of the input object. * * @param {T} object - The input object to update. * @param {string|any} path - The path to the property to update. Can be an array or a string. * @param {Function} updater - The function that will be used to update the property value. * * @returns {Object} - The updated object. * * @example * const obj = { a: { b: { c: 1 } } }; * update(obj, 'a.b.c', (val) => val + 1); // { a: { b: { c: 2 } } } * * const obj2 = { a: { b: { c: 1 } } }; * update(obj2, 'a.b.d', (val) => 2); // { a: { b: { c: 1, d: 2 } } } */ declare const update: (object: T, path: string | any, updater: Function) => Object; export default update;