declare function unique( arr: any[], cmp?: (a: any, b: any) => boolean | number ): any[]; export = unique;