export declare function flatten(nestedObject: Record, maxDepth?: number): Record;