import { Option } from 'fp-ts/lib/Option';
import { Predicate } from 'fp-ts/lib/Predicate';
import { Refinement } from 'fp-ts/lib/Refinement';
import { Stream } from '../uri';
/**
* Find the first element which satisfies a predicate (or a refinement)
* function.
*
* It returns an {@link Option} containing the element or `None` if not found.
*
* @export
* @template A The value type.
* @template B The refined value type.
* @param {Refinement} refinement The refinement function.
* @return {(fa: Stream) => Option} A function that takes a stream
* to search.
*
* @__PURE__
*/
export declare function findFirst(refinement: Refinement): (fa: Stream) => Option;
/**
* Find the first element which satisfies a predicate (or a refinement)
* function.
*
* It returns an {@link Option} containing the element or `None` if not found.
*
* @export
* @template A The value type.
* @param {Predicate} predicate The predicate function.
* @return {(fa: Stream) => Option} A function that takes
* a stream to search.
*
* @__PURE__
*/
export declare function findFirst(predicate: Predicate): (fb: Stream) => Option;
/**
* Find the first element which satisfies a predicate (or a refinement)
* function.
*
* It returns an {@link Option} containing the element or `None` if not found.
*
* @export
* @template A The value type.
* @param {Predicate} predicate The predicate function.
* @return {(fa: Stream) => Option} A function that takes
* a stream to search.
*
* @__PURE__
*/
export declare function findFirst(predicate: Predicate): (fa: Stream) => Option;