export declare function slice_when(arr: T[] | unknown, boundary: (previous: T, current: T, index: number, source: T[]) => boolean): T[][];