import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Deferred } from "@effect/core/io/Deferred/definition";
/**
 * Interrupts the evaluation of this stream when the provided deferred
 * resolves. This combinator will also interrupt any in-progress element being
 * pulled from upstream.
 *
 * If the deferred completes with a failure, the stream will emit that failure.
 * @tsplus fluent ets/Stream interruptWhenDeferred
 * @tsplus location "@effect/core/stream/Stream/operations/interruptWhenDeferred"
 */
export declare function interruptWhenDeferred_<R, E, A, E2, Z>(self: Stream<R, E, A>, promise: LazyArg<Deferred<E2, Z>>, __tsplusTrace?: string): Stream<R, E | E2, A>;
/**
 * Interrupts the evaluation of this stream when the provided deferred
 * resolves. This combinator will also interrupt any in-progress element being
 * pulled from upstream.
 *
 * If the deferred completes with a failure, the stream will emit that failure.
 * @tsplus static ets/Stream/Aspects interruptWhenDeferred
 * @tsplus pipeable ets/Stream interruptWhenDeferred
 * @tsplus location "@effect/core/stream/Stream/operations/interruptWhenDeferred"
 */
export declare const interruptWhenDeferred: <E2, Z>(promise: import("@tsplus/stdlib/data/Function").LazyArg<import("../../../io/Deferred").Deferred<E2, Z>>, __tsplusTrace?: string) => <R, E, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R, E | E2, A>;
//# sourceMappingURL=interruptWhenDeferred.d.ts.map