import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Deferred } from "@effect/core/io/Deferred/definition";
import { Channel } from "@effect/core/stream/Channel/definition/base";
import { Chunk } from "@tsplus/stdlib/collections/Chunk/definition";
/**
 * Halts the evaluation of this stream when the provided deferred resolves.
 *
 * If the deferred completes with a failure, the stream will emit that failure.
 * @tsplus fluent ets/Stream haltWhenDeferred
 * @tsplus location "@effect/core/stream/Stream/operations/haltWhenDeferred"
 */
export declare function haltWhenDeferred_<R, E, A, E2, Z>(self: Stream<R, E, A>, deferred: LazyArg<Deferred<E2, Z>>, __tsplusTrace?: string): Stream<R, E | E2, A>;
/**
 * Halts the evaluation of this stream when the provided deferred resolves.
 *
 * If the deferred completes with a failure, the stream will emit that failure.
 * @tsplus static ets/Stream/Aspects haltWhenDeferred
 * @tsplus pipeable ets/Stream haltWhenDeferred
 * @tsplus location "@effect/core/stream/Stream/operations/haltWhenDeferred"
 */
export declare const haltWhenDeferred: <E2, Z>(deferred: 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=haltWhenDeferred.d.ts.map