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