type Predicate = (value: T) => value is U; /** * Splits the array into two based on the predicate's result. Returns a tuple of arrays with * matching and non-matching elements, maintaining the original order within each group. * * If the predicate includes a type assertion, the resulting arrays will be typed accordingly. */ export declare function partition(array: readonly T[], predicate: Predicate): [U[], Exclude[]]; export declare function partition(array: readonly T[], predicate: (value: T) => boolean): [T[], T[]]; /** * Splits the record into two based on the predicate's result. Returns a tuple of records with * matching and non-matching elements. * * If the predicate includes a type assertion, the resulting records will be typed accordingly. */ export declare function partitionRecord(obj: Record, predicate: Predicate): [Record, Record>]; export declare function partitionRecord(obj: Record, predicate: (value: T) => boolean): [Record, Record]; export {}; //# sourceMappingURL=partition.d.ts.map