/** * Checks if a key uses dot notation * @param key - The key to check * @returns true if the key contains a dot (.) character */ export declare function isDotNotation(key: string): boolean; /** * Checks if an object contains any keys with dot notation * @param obj - The object to check * @returns true if any key in the object uses dot notation */ export declare function hasDotNotationKeys(obj: Record): boolean; /** * Converts a flat object with dot notation keys into a nested object * Example: * Input: { 'address.city': 'LA', 'address.zip': '90001', name: 'John' } * Output: { address: { city: 'LA', zip: '90001' }, name: 'John' } * * @param flatObj - Object with dot notation keys * @returns Nested object structure */ export declare function expandDotNotation(flatObj: Record): T; /** * Converts a nested object into a flat object with dot notation keys * Example: * Input: { address: { city: 'LA', zip: '90001' }, name: 'John' } * Output: { 'address.city': 'LA', 'address.zip': '90001', name: 'John' } * * @param obj - Nested object to flatten * @param prefix - Internal prefix for recursion * @returns Flat object with dot notation keys */ export declare function flattenToDotNotation(obj: Record, prefix?: string): Record; /** * Merges dot notation updates with existing data * Handles both regular and dot notation keys in a mixed object * * @param existingData - Current document data * @param updates - Updates to apply (may contain dot notation) * @returns Merged data structure */ export declare function mergeDotNotationUpdate(existingData: Record, updates: Record): Record; /** * Validates dot notation paths to prevent invalid field names * @param key - The dot notation key to validate * @throws Error if the key is invalid */ export declare function validateDotNotationPath(key: string): void; /** * Extracts the root fields from dot notation paths * Example: ['address.city', 'address.zip', 'name'] => ['address', 'name'] * * @param keys - Array of keys (may include dot notation) * @returns Array of root field names */ export declare function getRootFields(keys: string[]): string[]; /** * Gets the depth of a dot notation path * Example: 'address.city' => 2, 'name' => 1 * * @param key - The dot notation key * @returns The depth of the path */ export declare function getDotNotationDepth(key: string): number;