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