import { type ObjectOrArray } from './common.js'; /** * tiny non-mutating alternative to dot-prop or lodash.set that only * works with JSON-compatible objects * * accepts a generic to optionally set the output type, otherwise assumes * your mutation will not alter the object's type */ export declare function set(root: T, path: string | number | (string | number)[], newValue: unknown): (O extends undefined ? T : O);