declare function chunk(arr: T[], size: number): T[][]; export = chunk;