/**
 * Goes through a iterable applying the scanner function to the accumulator
 * returning the accumulator at each step
 */
export declare function scan<T, A>(scanner: (accumulator: A, next: T) => Promise<A> | A, init: Promise<A> | A): (source: AsyncIterable<T>) => AsyncGenerator<A, void, unknown>;
