import { Option } from 'fp-ts/lib/Option'; import { Task } from 'fp-ts/lib/Task'; import { AsyncStream } from '../uri'; import { MaybeAsync } from './maybe-async'; /** * Given a selector function which takes an element and returns * a {@link Task} of an {@link Option}, this function applies the selector to * each element of the array and returns the first `Some` result. * Otherwise it returns `None`. * * @export * @template A The value type. * @template B The mapped value type. * @param {(a: A) => Option | Promise>} f The mapping function. * @return {(fa: AsyncStream) => Task>} A function that takes an * async stream and returns an option of `B`. * * @__PURE__ */ export declare function findFirstMap(f: (a: A) => MaybeAsync>): (fa: AsyncStream) => Task>;