export declare function flatten(grid: T[][]): T[];