import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Predicate } from "@tsplus/stdlib/data/Predicate";
import { Effect } from "@effect/core/io/Effect/definition";
import { Scope } from "@effect/core/io/Scope/definition";
/**
 * Executes an effectful fold over the stream of values. Returns a scoped
 * value that represents the scope of the stream. Stops the fold early when
 * the condition is not fulfilled.
 * @param cont A function which defines the early termination condition.
 * @tsplus fluent ets/Stream runFoldWhileScopedEffect
 * @tsplus location "@effect/core/stream/Stream/operations/runFoldWhileScopedEffect"
 */
export declare function runFoldWhileScopedEffect_<R, E, A, R2, E2, S>(self: Stream<R, E, A>, s: LazyArg<S>, cont: Predicate<S>, f: (s: S, a: A) => Effect<R2, E2, S>, __tsplusTrace?: string): Effect<R | R2 | Scope, E | E2, S>;
/**
 * Executes an effectful fold over the stream of values. Returns a scoped
 * value that represents the scope of the stream. Stops the fold early when
 * the condition is not fulfilled.
 * @param cont A function which defines the early termination condition.
 * @tsplus static ets/Stream/Aspects runFoldWhileScopedEffect
 * @tsplus pipeable ets/Stream runFoldWhileScopedEffect
 * @tsplus location "@effect/core/stream/Stream/operations/runFoldWhileScopedEffect"
 */
export declare const runFoldWhileScopedEffect: <A, R2, E2, S>(s: import("@tsplus/stdlib/data/Function").LazyArg<S>, cont: import("@tsplus/stdlib/data/Predicate").Predicate<S>, f: (s: S, a: A) => import("../../../io/Effect").Effect<R2, E2, S>, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<import("../../../io/Scope").Scope | R | R2, E | E2, S>;
//# sourceMappingURL=runFoldWhileScopedEffect.d.ts.map