export default function flatten(arr: unknown[], depth?: number): any;