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";
/**
 * Reduces the elements in the stream to a value of type `S`. Stops the fold
 * early when the condition is not fulfilled.
 * @tsplus fluent ets/Stream runFoldWhileEffect
 * @tsplus location "@effect/core/stream/Stream/operations/runFoldWhileEffect"
 */
export declare function runFoldWhileEffect_<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, E | E2, S>;
/**
 * Reduces the elements in the stream to a value of type `S`. Stops the fold
 * early when the condition is not fulfilled.
 * @tsplus static ets/Stream/Aspects runFoldWhileEffect
 * @tsplus pipeable ets/Stream runFoldWhileEffect
 * @tsplus location "@effect/core/stream/Stream/operations/runFoldWhileEffect"
 */
export declare const runFoldWhileEffect: <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<R | R2, E | E2, S>;
//# sourceMappingURL=runFoldWhileEffect.d.ts.map