import Sequence from "./Sequence";
export declare class Last {
    /**
     * Returns the last element of the sequence or the last element matching `predicate` if present, otherwise throws
     * an error.
     *
     * @param {(value: T) => boolean} predicate
     * @returns {T}
     */
    last<T>(this: Sequence<T>, predicate?: (value: T) => boolean): T;
}
