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