/** * Divides an array into two arrays, where the first array * contains all elements that satisfy the predicate, and the * second array contains all elements that do not satisfy the * predicate. * * Note: It is assumed that the array monotonically goes from true to false. * * @param array - The array to partition. * @param predicate - The predicate to partition the array by. * * @returns A tuple containing the left and right arrays. * * @example * ```ts * const [left, right] = partition([1, 2, 3, 4, 5], (n) => n <= 2); * // left = [1, 2] * // right = [3, 4, 5] * ``` */ export declare const partition: (array: T[], predicate: (item: T) => boolean) => [T[], T[]]; //# sourceMappingURL=partition.d.ts.map