/** * Flatten nested objects into a single level object using dot notation keys. * Arrays are kept as values. * @example flatten({ foo: { bar: 'test' } }) // { 'foo.bar': 'test' } * @param {Record} object - The object to flatten. * @param {string} [prefix] - Key prefix used for recursion. * @returns {Record} */ export function flatten(object: Record, prefix?: string): Record; /** * Get a value from a nested object using a dot notation path. * @param {Record} object - The object to read from. * @param {string} path - Dot notation path, e.g. `foo.bar`. * @returns {any} */ export function getByPath(object: Record, path: string): any; /** * Set a value in a nested object using a dot notation path, creating objects as needed. * @param {Record} object - The object to write to. * @param {string} path - Dot notation path, e.g. `foo.bar`. * @param {any} value - The value to set. */ export function setByPath(object: Record, path: string, value: any): void; /** * Restore nested objects from dot notation keys. * @example unflatten({ 'foo.bar': 'test' }) // { foo: { bar: 'test' } } * @param {Record} object - The flattened object. * @returns {Record} */ export function unflatten(object: Record): Record;