/** * Get last item of an array * @param array Array to get last item from * @returns Last item of `array` */ export declare const last: (array: readonly [...Init, Last]) => Last; /** * Get last item of an array * @param array Array to get last item from * @param def Value to return should `array` is found empty * @returns Last item of `array` if it's not empty, or `def` otherwise */ export declare const lastOr: (array: readonly Item[], def: Default) => Item | Default; /** * Get last item of an array * @param array Array to get last item from * @returns Last item of `array` if it's not empty, or `undefined` otherwise */ export declare const lastOrUndefined: (array: readonly Item[]) => Item | undefined;