import { Sequence } from "../../sequency"; export declare class LastOrNull { /** * Returns the last element of the sequence or the last element matching `predicate` if present, otherwise returns `null`. * * @param {(value: T) => boolean} predicate * @returns {T} */ lastOrNull(this: Sequence, predicate?: (value: T) => boolean): T | null; /** * Returns the last element of the sequence or the last element matching `predicate` if present, otherwise returns `null`. * * @param {(value: T) => boolean} predicate * @returns {T} */ findLast(this: Sequence, predicate?: (value: T) => boolean): T | null; }