declare function flatten(arr: any[]): any[]; export = flatten;