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