/** * Safely gets a nested property value from an object using a path. * * @template T - The type of the default value and return type * @param object - The object to get the value from * @param path - The path to the property (string with dots or array of keys) * @param defaultValue - The value to return if the path doesn't exist * @returns The value at the specified path or the default value * * @example * ```typescript * const obj = { user: { name: 'John', age: 30 } }; * get(obj, 'user.name', 'Unknown'); // 'John' * get(obj, ['user', 'name'], 'Unknown'); // 'John' * get(obj, 'user.email', 'No email'); // 'No email' * ``` */ export declare function get = Record>(object: O, path: string | string[], defaultValue?: T): T | O | undefined;