import { AsyncStream } from '../uri'; /** * Fold an {@link AsyncStream} 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 | Promise} f The mapping function. * @return {(fa: AsyncStream) => AsyncStream} A function that takes an * async stream and returns another. * * @__PURE__ */ export declare function scanRight(b: B, f: (b: B, a: A) => B | Promise): (fa: AsyncStream) => AsyncStream;