import { Channel } from "@effect/core/stream/Channel/definition/base";
import { Cause } from "@effect/core/io/Cause/definition";
/**
 * Returns a new channel that is the same as this one, except if this channel
 * errors for any cause at all, then the returned channel will switch over to
 * using the fallback channel returned by the specified error handler.
 * @tsplus fluent ets/Channel catchAllCause
 * @tsplus location "@effect/core/stream/Channel/operations/catchAllCause"
 */
export declare function catchAllCause_<Env, Env1, InErr, InErr1, InElem, InElem1, InDone, InDone1, OutErr, OutErr1, OutElem, OutElem1, OutDone, OutDone1>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>, f: (cause: Cause<OutErr>) => Channel<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>): Channel<Env | Env1, InErr & InErr1, InElem & InElem1, InDone & InDone1, OutErr1, OutElem | OutElem1, OutDone | OutDone1>;
/**
 * Returns a new channel that is the same as this one, except if this channel
 * errors for any cause at all, then the returned channel will switch over to
 * using the fallback channel returned by the specified error handler.
 * @tsplus static ets/Channel/Aspects catchAllCause
 * @tsplus pipeable ets/Channel catchAllCause
 * @tsplus location "@effect/core/stream/Channel/operations/catchAllCause"
 */
export declare const catchAllCause: <Env1, InErr1, InElem1, InDone1, OutErr, OutErr1, OutElem1, OutDone1>(f: (cause: import("../../../io/Cause").Cause<OutErr>) => import("../definition").Channel<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>) => <Env_1, InErr, InElem, InDone, OutElem, OutDone>(self: import("../definition").Channel<Env_1, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => import("../definition").Channel<Env_1 | Env1, InErr & InErr1, InElem & InElem1, InDone & InDone1, OutErr1, OutElem | OutElem1, OutDone | OutDone1>;
//# sourceMappingURL=catchAllCause.d.ts.map