import { Stream } from "@effect/core/stream/Stream/definition";
import { Effect } from "@effect/core/io/Effect/definition";
import { Scope } from "@effect/core/io/Scope/definition";
/**
 * Like `Stream.runForEachWhile`, but returns a scoped `Effect` so the
 * finalization order can be controlled.
 * @tsplus fluent ets/Stream runForEachWhileScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runForEachWhileScoped"
 */
export declare function runForEachWhileScoped_<R, E, A, R2, E2, Z>(self: Stream<R, E, A>, f: (a: A) => Effect<R2, E2, boolean>, __tsplusTrace?: string): Effect<R | R2 | Scope, E | E2, void>;
/**
 * Like `Stream.runForEachWhile`, but returns a scoped `Effect` so the
 * finalization order can be controlled.
 * @tsplus static ets/Stream/Aspects runForEachWhileScoped
 * @tsplus pipeable ets/Stream runForEachWhileScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runForEachWhileScoped"
 */
export declare const runForEachWhileScoped: <A, R2, E2>(f: (a: A) => import("../../../io/Effect").Effect<R2, E2, boolean>, __tsplusTrace?: string) => <R, E, Z>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<import("../../../io/Scope").Scope | R | R2, E | E2, void>;
//# sourceMappingURL=runForEachWhileScoped.d.ts.map