import { LastArrayElement } from 'type-fest'; import { I as IterableContainer } from './IterableContainer-CtfinwiH.cjs'; type Last = LastArrayElement; /** * Gets the last element of `array`. * * @param data - The array. * @signature * R.last(array) * @example * R.last([1, 2, 3]) // => 3 * R.last([]) // => undefined * @dataFirst * @category Array */ declare function last(data: T): Last; /** * Gets the last element of `array`. * * @signature * R.last()(array) * @example * R.pipe( * [1, 2, 4, 8, 16], * R.filter(x => x > 3), * R.last(), * x => x + 1 * ); // => 17 * @dataLast * @category Array */ declare function last(): (data: T) => Last; export { last };