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