import { t as Maybe } from "./Maybe-pvX1mStM.js"; //#region src/functions/take/take.d.ts /** * Returns the first `count` items from `array`. * @param array The array to take items from. * @param count The number of items to take. * @returns The first `count` items from `array`. * @example * ```ts * take([1, 2, 3, 4, 5], 3) // [1, 2, 3] * ``` */ declare function take(array: Maybe, count: C): Take; type Take = TCount extends 0 ? [] : `${TCount}` extends `-${number}` ? [] : TArray extends readonly unknown[] ? TakeFromStart : []; type TakeFromStart = TArray['length'] extends 0 ? Taken : TCount extends Taken['length'] ? Taken : TArray extends readonly [infer First, ...infer Rest] ? TakeFromStart : TArray[number][]; //#endregion export { take as t }; //# sourceMappingURL=take-CmBMZq-u.d.ts.map