import { Refinement } from 'fp-ts/lib/Refinement'; import { AsyncStream } from '../uri'; import { AsyncPredicate } from './async-predicate'; /** * Creates a new {@link AsyncStream} which is a copy of the input dropping the * longest initial substream for which all element satisfy the specified * predicate/refinement from the end to the start. * * **Warning: This function consumes the stream.** * * @export * @template A The value type. * @template B The refined value type. * @param {Refinement} refinement The refinement/predicate function. * @return {(fa: AsyncStream) => AsyncStream} A function that takes an * async stream to drop its left while the condition holds. * * @__PURE__ */ export declare function dropRightWhile(refinement: Refinement): (fa: AsyncStream) => AsyncStream; /** * Creates a new {@link AsyncStream} which is a copy of the input dropping the * longest initial substream for which all element satisfy the specified * predicate/refinement from the end to the start. * * **Warning: This function consumes the stream.** * * @export * @template A The value type. * @param {AsyncPredicate} predicate The refinement/predicate function. * @return {(fa: AsyncStream) => AsyncStream} A function that * takes an async stream to drop its left while the condition holds. * * @__PURE__ */ export declare function dropRightWhile(predicate: AsyncPredicate): (fb: AsyncStream) => AsyncStream; /** * Creates a new {@link AsyncStream} which is a copy of the input dropping the * longest initial substream for which all element satisfy the specified * predicate/refinement from the end to the start. * * **Warning: This function consumes the stream.** * * @export * @template A The value type. * @param {AsyncPredicate} predicate The refinement/predicate function. * @return {(fa: AsyncStream) => AsyncStream} A function that takes an * async stream to drop its left while the condition holds. * * @__PURE__ */ export declare function dropRightWhile(predicate: AsyncPredicate): (fa: AsyncStream) => AsyncStream;