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