import { Channel } from "@effect/core/stream/Channel/definition/base";
/**
 * @tsplus fluent ets/Channel foldChannel
 * @tsplus location "@effect/core/stream/Channel/operations/foldChannel"
 */
export declare function foldChannel_<Env, Env1, Env2, InErr, InErr1, InErr2, InElem, InElem1, InElem2, InDone, InDone1, InDone2, OutErr, OutErr1, OutErr2, OutElem, OutElem1, OutElem2, OutDone, OutDone1, OutDone2>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>, onErr: (oErr: OutErr) => Channel<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>, onSucc: (oErr: OutDone) => Channel<Env2, InErr2, InElem2, InDone2, OutErr2, OutElem2, OutDone2>): Channel<Env | Env1 | Env2, InErr & InErr1 & InErr2, InElem & InElem1 & InElem2, InDone & InDone1 & InDone2, OutErr2 | OutErr1, OutElem | OutElem2 | OutElem1, OutDone2 | OutDone1>;
/**
 * @tsplus static ets/Channel/Aspects foldChannel
 * @tsplus pipeable ets/Channel foldChannel
 * @tsplus location "@effect/core/stream/Channel/operations/foldChannel"
 */
export declare const foldChannel: <Env1, Env2, InErr1, InErr2, InElem1, InElem2, InDone1, InDone2, OutErr, OutErr1, OutErr2, OutElem1, OutElem2, OutDone, OutDone1, OutDone2>(onErr: (oErr: OutErr) => import("../definition").Channel<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>, onSucc: (oErr: OutDone) => import("../definition").Channel<Env2, InErr2, InElem2, InDone2, OutErr2, OutElem2, OutDone2>) => <Env_1, InErr, InElem, InDone, OutElem>(self: import("../definition").Channel<Env_1, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => import("../definition").Channel<Env_1 | Env1 | Env2, InErr & InErr1 & InErr2, InElem & InElem1 & InElem2, InDone & InDone1 & InDone2, OutErr1 | OutErr2, OutElem | OutElem1 | OutElem2, OutDone1 | OutDone2>;
//# sourceMappingURL=foldChannel.d.ts.map