import Observable, { ObservableLike } from "./observable"; /** * Applies an accumulator function over the source Observable, and returns * each intermediate result. It is basically the same as `.reduce()`, but * it continuously yields accumulated values, not just after the input * completed. * If no accumulator seed is supplied then the first input value will be used * as a seed. To be applied to an input observable using `pipe()`. */ declare function scan(accumulator: (accumulated: T, value: T, index: number) => Promise | T): (observable: ObservableLike) => Observable; declare function scan(accumulator: (accumulated: Out, value: In, index: number) => Promise | Out, seed?: Out): (observable: ObservableLike) => Observable; export default scan;