import type { Dec } from '../internal/types/number.js'; export type Last = number extends AS['length'] ? AS[0] | undefined : AS extends [] | readonly [] ? undefined : AS[Dec]; /** * Returns the last element of the array. * @param array The array to get the last element of. * * @example * ```typescript * const arr = [1, 2, 3]; * last(arr); // => 3 * ``` */ declare const last: ( array: AS, ) => Last; export default last; //# sourceMappingURL=last.d.ts.map