import type { Ary, IfpList, List, Num, Yield1$, } from '../../internal/types/tools/index.js'; declare global { interface Array { /** * Takes the first `count` elements from the array. * @param count - The number of elements to take. * * @example * ```typescript * [1, 2, 3, 4, 5].take(3); // => [1, 2, 3] * [1, 2, 3, 4, 5].take(0); // => [] * [1, 2, 3, 4, 5].take(10); // => [1, 2, 3, 4, 5] * ``` */ take: ( this: AS, count: N, ) => IfpList< AS, Num.IfNat, Ary.Mutate$>, Yield1$ >; } interface ReadonlyArray { /** * Takes the first `count` elements from the array. * @param count - The number of elements to take. * * @example * ```typescript * [1, 2, 3, 4, 5].take(3); // => [1, 2, 3] * [1, 2, 3, 4, 5].take(0); // => [] * [1, 2, 3, 4, 5].take(10); // => [1, 2, 3, 4, 5] * ``` */ take: ( this: AS, count: N, ) => IfpList< AS, Num.IfNat, Ary.Mutate$>, Yield1$ >; } } //# sourceMappingURL=take.d.ts.map