import type { First } from "../types/logic/first"; /** * Returns the first element of an array * @param array The input array * @returns The first element of the array, or undefined if the array is empty * @example first([1, 2, 3]); // 1 */ export declare const first: (array: T) => First extends never ? T[number] | undefined : First;