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