export declare function flatten(arr: unknown[] | unknown, depth?: number): unknown[];