// @flow import type {Stream} from "@basic-streams/stream" declare export default function scan( reducer: (acc: A, next: N) => A, seed: A, stream: Stream, ): Stream