export declare function flatten(items: T[][]): T[]; export declare function splitWhen( items: T[], predicate: (item: T) => boolean ): T[][];