import type { Ary } from '../../internal/types/tools/index.js'; declare global { interface Array { /** * Drops elements from the array until the predicate returns `true`. * @param pred The predicate function. * * @example * ```typescript * [1, 2, 3, 4, 5].dropUntil((x) => x === 3); // => [3, 4, 5] * [1, 2, 3, 4, 5].dropUntil((x) => x === 10); // => [] * ``` */ dropUntil: ( this: AS, pred: (value: AS[number], index: number, array: AS) => boolean, ) => Ary.Mutate; } interface ReadonlyArray { /** * Drops elements from the array until the predicate returns `true`. * @param pred The predicate function. * * @example * ```typescript * [1, 2, 3, 4, 5].dropUntil((x) => x === 3); // => [3, 4, 5] * [1, 2, 3, 4, 5].dropUntil((x) => x === 10); // => [] * ``` */ dropUntil: ( this: AS, pred: (value: AS[number], index: number, array: AS) => boolean, ) => Ary.Mutate; } } //# sourceMappingURL=dropUntil.d.ts.map