import { Stream } from "@effect/core/stream/Stream/definition";
import { Channel } from "@effect/core/stream/Channel/definition/base";
import { Chunk } from "@tsplus/stdlib/collections/Chunk/definition";
/**
 * Performs the specified operation with the channel underlying this stream.
 * @tsplus fluent ets/Stream channelWith
 * @tsplus location "@effect/core/stream/Stream/operations/channelWith"
 */
export declare function channelWith_<R, E, A, R1, E1, A1>(self: Stream<R, E, A>, f: (channel: Channel<R, unknown, unknown, unknown, E, Chunk<A>, unknown>) => Channel<R1, unknown, unknown, unknown, E1, Chunk<A1>, unknown>, __tsplusTrace?: string): Stream<R | R1, E | E1, A1>;
/**
 * Performs the specified operation with the channel underlying this stream.
 * @tsplus static ets/Stream/Aspects channelWith
 * @tsplus pipeable ets/Stream channelWith
 * @tsplus location "@effect/core/stream/Stream/operations/channelWith"
 */
export declare const channelWith: <R, E, A, R1, E1, A1>(f: (channel: import("../../Channel").Channel<R, unknown, unknown, unknown, E, import("@tsplus/stdlib/collections/Chunk").Chunk<A>, unknown>) => import("../../Channel").Channel<R1, unknown, unknown, unknown, E1, import("@tsplus/stdlib/collections/Chunk").Chunk<A1>, unknown>, __tsplusTrace?: string) => (self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R1, E | E1, A1>;
//# sourceMappingURL=channelWith.d.ts.map