/** * Splits an array into two arrays: the first containing elements for which the predicate returns truthy, * and the second containing elements for which it returns falsy. * * @example * partition([1, 2, 3, 4], (n) => n % 2 === 0) // [[2, 4], [1, 3]] */ export declare function partition(array: readonly T[], predicate: (item: T, index: number, array: readonly T[]) => boolean): [T[], T[]];