/** * Object path utilities for reading and writing nested values. * * Provides functions to get, set, and delete values in nested objects * using dotted path notation (e.g., "permissions.allow"). * * Note: Keys containing literal dots cannot be accessed via these functions. */ /** * Get a value from an object by dotted path. * * @example * getByPath({ a: { b: 1 } }, "a.b") // 1 * getByPath({ a: { b: 1 } }, "a.c") // undefined */ declare function getByPath(object: unknown, keyPath: string): unknown; /** * Set a value in an object by dotted path. * * Creates intermediate objects as needed. * * @example * const obj = {}; * setByPath(obj, "a.b", 1) // obj becomes { a: { b: 1 } } */ declare function setByPath(object: Record, keyPath: string, value: unknown): void; /** * Delete a key from an object by dotted path. * * @returns true if the key existed and was deleted, false otherwise * * @example * const obj = { a: { b: 1 } }; * deleteByPath(obj, "a.b") // true, obj becomes { a: {} } * deleteByPath(obj, "a.c") // false */ declare function deleteByPath(object: Record, keyPath: string): boolean; export { deleteByPath, getByPath, setByPath };