import { Tag } from "@tsplus/stdlib/service/Tag";
import { Channel } from "@effect/core/stream/Channel/definition/base";
/**
 * Accesses the specified service in the environment of the channel in the
 * context of a channel.
 * @tsplus static ets/Channel/Ops serviceWithChannel
 * @tsplus location "@effect/core/stream/Channel/operations/serviceWithChannel"
 */
export declare function serviceWithChannel<T>(tag: Tag<T>): <Env_1, InErr, InElem, InDone, OutErr, OutElem, OutDone>(f: (resource: T) => import("../definition").Channel<Env_1, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => import("../definition").Channel<T | Env_1, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
//# sourceMappingURL=serviceWithChannel.d.ts.map