import { I as IterableContainer } from './IterableContainer-CtfinwiH.cjs'; /** * Returns elements from the array until predicate returns false. * * @param data - The array. * @param predicate - The predicate. * @signature * R.takeWhile(data, predicate) * @example * R.takeWhile([1, 2, 3, 4, 3, 2, 1], x => x !== 4) // => [1, 2, 3] * @dataFirst * @category Array */ declare function takeWhile(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array; /** * Returns elements from the array until predicate returns false. * * @param predicate - The predicate. * @signature * R.takeWhile(predicate)(data) * @example * R.pipe([1, 2, 3, 4, 3, 2, 1], R.takeWhile(x => x !== 4)) // => [1, 2, 3] * @dataLast * @category Array */ declare function takeWhile(predicate: (item: T[number], index: number, data: T) => boolean): (array: T) => Array; export { takeWhile };