import { Predicate } from 'fp-ts/lib/Predicate'; import { Refinement } from 'fp-ts/lib/Refinement'; import { Stream } from '../uri'; /** * Creates a {@link Stream} from a {@link Refinement}. * * @export * @template A The value type. * @template B The refined value type. * @param {Refinement} refinement The refinement function. * @return {(a: A) => Stream} A function that will take a value * and return a stream of it. * * @__PURE__ */ export declare function fromPredicate(refinement: Refinement): (a: A) => Stream; /** * Creates a {@link Stream} from a {@link Predicate}. * * @export * @template A The value type. * @template B The refined value type. * @param {Predicate} predicate The refinement function. * @return {(b: B) => Stream} A function that will take a value * and return a stream of it. * * @__PURE__ */ export declare function fromPredicate(predicate: Predicate): (b: B) => Stream; /** * Creates a {@link Stream} from a {@link Predicate}. * * @export * @template A The value type. * @template B The refined value type. * @param {Predicate} predicate The refinement function. * @return {(a: A) => Stream} A function that will take a value * and return a stream of it. * * @__PURE__ */ export declare function fromPredicate(predicate: Predicate): (a: A) => Stream;