declare function flatten(target: Record | undefined | null, maxDepth?: number): any; export { flatten };