export type First = number extends AS['length'] ? AS[0] | undefined : AS[0]; /** * Returns the first element of the array. * @param array The array to get the first element of. * * @example * ```typescript * const arr = [1, 2, 3]; * first(arr); // => 1 * ``` */ declare const first: ( array: AS, ) => First; export default first; //# sourceMappingURL=first.d.ts.map