import { Channel } from "@effect/core/stream/Channel/definition/base";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Deferred } from "@effect/core/io/Deferred/definition";
/**
 * Returns a new channel, which is the same as this one, except it will be
 * interrupted when the specified deferred is completed. If the deferred is
 * completed before the underlying channel is done, then the returned channel
 * will yield the value of the deferred. Otherwise, if the underlying channel
 * finishes first, then the returned channel will yield the value of the
 * underlying channel.
 * @tsplus fluent ets/Channel interruptWhenDeferred
 * @tsplus location "@effect/core/stream/Channel/operations/interruptWhenDeferred"
 */
export declare function interruptWhenDeferred_<Env, InErr, InElem, InDone, OutErr, OutErr1, OutElem, OutDone, OutDone1>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>, deferred: LazyArg<Deferred<OutErr1, OutDone1>>): Channel<Env, InErr, InElem, InDone, OutErr | OutErr1, OutElem, OutDone | OutDone1>;
/**
 * Returns a new channel, which is the same as this one, except it will be
 * interrupted when the specified deferred is completed. If the deferred is
 * completed before the underlying channel is done, then the returned channel
 * will yield the value of the deferred. Otherwise, if the underlying channel
 * finishes first, then the returned channel will yield the value of the
 * underlying channel.
 * @tsplus static ets/Channel/Aspects interruptWhenDeferred
 * @tsplus pipeable ets/Channel interruptWhenDeferred
 * @tsplus location "@effect/core/stream/Channel/operations/interruptWhenDeferred"
 */
export declare const interruptWhenDeferred: <OutErr1, OutDone1>(deferred: import("@tsplus/stdlib/data/Function").LazyArg<import("../../../io/Deferred").Deferred<OutErr1, OutDone1>>) => <Env_1, InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: import("../definition").Channel<Env_1, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => import("../definition").Channel<Env_1, InErr, InElem, InDone, OutErr | OutErr1, OutElem, OutDone | OutDone1>;
//# sourceMappingURL=interruptWhenDeferred.d.ts.map