export declare function flatten(arr: Array, depth?: number): void;