import { Stream } from '../uri'; /** * Fold a {@link Stream} from the right, keeping all intermediate results * instead of the final result. * * **Warning: This function consumes the stream.** * * @export * @template A The value type. * @template B The output value type. * @param {B} b The initial value. * @param {(b: B, a: A) => B} f The mapping function. * @return {(fa: Stream) => Stream} A function that takes a stream and * returns another. * * @__PURE__ */ export declare function scanRight(b: B, f: (b: B, a: A) => B): (fa: Stream) => Stream;