import type { Ary } from '../internal/types/tools/index.js'; /** * Takes elements from the array until the predicate returns `false`. * @param array The array to take from. * @param pred The predicate function. * * @example * ```typescript * takeWhile([1, 2, 3, 4, 5], (x) => x < 4); // => [1, 2, 3] * takeWhile([1, 2, 3, 4, 5], (x) => x > 10); // => [] * ``` */ declare const takeWhile: ( array: AS, pred: (value: AS[number], index: number, array: AS) => boolean, ) => import('../internal/types/tools/index.js').If< Ary.IsWritable, AS[number][], readonly AS[number][] >; export default takeWhile; //# sourceMappingURL=takeWhile.d.ts.map