/** * Classify a set of items into 2 groups * @param iterable List of items * @param predicate Function that classifies item * @returns A tuple of 2 item groups * - First group includes items that `predicate` returns `true` * - Second group includes items that `predicate` returns `false` */ export declare function partition(iterable: Iterable, predicate: (item: Item) => boolean): [Item[], Item[]]; /** * Like `partition` but with type predicate */ export declare const partitionPredicate: { /** * Classify a set of items into 2 groups * @param iterable List of items * @param predicate Function that classifies item * @returns A tuple of 2 item groups * - First group includes items that `predicate` returns `true` * - Second group includes items that `predicate` returns `false` */ (iterable: Iterable, predicate: (item: Type) => item is Subtype): [Subtype[], Type[]]; };