import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
/**
 * Statefully maps over the elements of this stream to produce all
 * intermediate results of type `S` given an initial S.
 * @tsplus fluent ets/Stream scan
 * @tsplus location "@effect/core/stream/Stream/operations/scan"
 */
export declare function scan_<R, E, A, S>(self: Stream<R, E, A>, s: LazyArg<S>, f: (s: S, a: A) => S, __tsplusTrace?: string): Stream<R, E, S>;
/**
 * Statefully maps over the elements of this stream to produce all
 * intermediate results of type `S` given an initial S.
 * @tsplus static ets/Stream/Aspects scan
 * @tsplus pipeable ets/Stream scan
 * @tsplus location "@effect/core/stream/Stream/operations/scan"
 */
export declare const scan: <A, S>(s: import("@tsplus/stdlib/data/Function").LazyArg<S>, f: (s: S, a: A) => S, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R, E, S>;
//# sourceMappingURL=scan.d.ts.map