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