import { AsyncStream } from '../uri'; import { AsyncPredicate } from '../utils/async-predicate'; /** * Creates a {@link AsyncStream} from a {@link AsyncPredicate}. * * @export * @template A The value type. * @template B The refined value type. * @param {AsyncPredicate} predicate The refinement function. * @return {(b: B) => AsyncStream} A function that will take a * value and return an async stream of it. * * @__PURE__ */ export declare function fromAsyncPredicate(predicate: AsyncPredicate): (b: B) => AsyncStream; /** * Creates an {@link AsyncStream} from an {@link AsyncPredicate}. * * @export * @template A The value type. * @template B The refined value type. * @param {AsyncPredicate} predicate The refinement function. * @return {(a: A) => AsyncStream} A function that will take a value * and return an async stream of it. * * @__PURE__ */ export declare function fromAsyncPredicate(predicate: AsyncPredicate): (a: A) => AsyncStream;