type NestedObject = { [key: string]: NestedObject | any; }; /** * A function to help override a property in a nested object * Example usage * * ```js * const baseObject = { * level1: { * level2: { * level3: { * value: 42, * }, * }, * }, * }; * const updatedObject = overrideProperty( * baseObject, * ['level1', 'level2', 'level3', 'value'], * 99 * ); * * updatedObject.level1.level2.level3.value === 99 * ``` * @param baseObject A base context object of undefined depth. * @param propertyPath An array of strings of undefined length, representing from left to right the property you want to override by accessing each preceding node in the object. * @param overrideValue The value that will override the rightmost string in propertyPath. * @returns */ export declare function overrideContext(baseObject: NestedObject, propertyPath: string[], overrideValue: unknown): NestedObject; export {};