import { AsyncSequence } 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) => Promise | boolean} predicate * @returns {Promise} */ firstOrNull(this: AsyncSequence, predicate?: (item: T) => Promise | boolean): Promise; /** * Returns the first element of the sequence or the first element matching `predicate` if present, otherwise returns `null`. * * @param {(T) => Promise | boolean} predicate * @returns {Promise} */ find(this: AsyncSequence, predicate?: (item: T) => Promise | boolean): Promise; }