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 runFoldWhile
 * @tsplus location "@effect/core/stream/Stream/operations/runFoldWhile"
 */
export declare function runFoldWhile_<R, E, A, S>(self: Stream<R, E, A>, s: LazyArg<S>, cont: Predicate<S>, f: (s: S, a: A) => S, __tsplusTrace?: string): Effect<R, E, 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 runFoldWhile
 * @tsplus pipeable ets/Stream runFoldWhile
 * @tsplus location "@effect/core/stream/Stream/operations/runFoldWhile"
 */
export declare const runFoldWhile: <A, S>(s: import("@tsplus/stdlib/data/Function").LazyArg<S>, cont: import("@tsplus/stdlib/data/Predicate").Predicate<S>, f: (s: S, a: A) => S, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<R, E, S>;
//# sourceMappingURL=runFoldWhile.d.ts.map