import { Refinement } from 'fp-ts/lib/Refinement'; import { AsyncStream } from '../uri'; import { AsyncPredicate } from './async-predicate'; /** * Calculates the longest initial substream for which all elements satisfying * the specified predicate, creating a new {@link AsyncStream}. * * @export * @template A The value type. * @template B The refined value type. * @param {Refinement} refinement The refinement function. * @return {(fa: AsyncStream) => AsyncStream} A function that takes an * async stream to take from the left as long as the condition holds true. * * @__PURE__ */ export declare function takeLeftWhile(refinement: Refinement): (fa: AsyncStream) => AsyncStream; /** * Calculates the longest initial substream for which all elements satisfying * the specified predicate, creating a new {@link AsyncStream}. * * @export * @template A The value type. * @param {Predicate} predicate The predicate function. * @return {(fb: AsyncStream) => AsyncStream} A function that * takes an async stream to take from the left as long as the condition holds * true. * * @__PURE__ */ export declare function takeLeftWhile(predicate: AsyncPredicate): (fb: AsyncStream) => AsyncStream; /** * Calculates the longest initial substream for which all elements satisfying * the specified predicate, creating a new {@link AsyncStream}. * * @export * @template A The value type. * @param {AsyncPredicate} predicate The predicate function. * @return {(fa: AsyncStream) => AsyncStream} A function that takes * an async stream to take from the left as long as the condition holds true. * * @__PURE__ */ export declare function takeLeftWhile(predicate: AsyncPredicate): (fa: AsyncStream) => AsyncStream;