export declare function flat(array: T | T[], depth?: number): T[];