import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Effect } from "@effect/core/io/Effect/definition";
/**
 * Interrupts the evaluation of this stream when the provided effect completes.
 * The given effect will be forked as part of this stream, and its success will
 * be discarded. This combinator will also interrupt any in-progress element
 * being pulled from upstream.
 *
 * If the effect completes with a failure before the stream completes, the
 * returned stream will emit that failure.
 * @tsplus fluent ets/Stream interruptWhen
 * @tsplus location "@effect/core/stream/Stream/operations/interruptWhen"
 */
export declare function interruptWhen_<R, E, A, R2, E2, Z>(self: Stream<R, E, A>, effect: LazyArg<Effect<R2, E2, Z>>, __tsplusTrace?: string): Stream<R | R2, E | E2, A>;
/**
 * Interrupts the evaluation of this stream when the provided effect completes.
 * The given effect will be forked as part of this stream, and its success will
 * be discarded. This combinator will also interrupt any in-progress element
 * being pulled from upstream.
 *
 * If the effect completes with a failure before the stream completes, the
 * returned stream will emit that failure.
 * @tsplus static ets/Stream/Aspects interruptWhen
 * @tsplus pipeable ets/Stream interruptWhen
 * @tsplus location "@effect/core/stream/Stream/operations/interruptWhen"
 */
export declare const interruptWhen: <R2, E2, Z>(effect: import("@tsplus/stdlib/data/Function").LazyArg<import("../../../io/Effect").Effect<R2, E2, Z>>, __tsplusTrace?: string) => <R, E, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R2, E | E2, A>;
//# sourceMappingURL=interruptWhen.d.ts.map