import { Stream } from "@effect/core/stream/Stream/definition";
import { Effect } from "@effect/core/io/Effect/definition";
import { Scope } from "@effect/core/io/Scope/definition";
import { Dequeue } from "@effect/core/io/Queue/definition/common";
import { Take } from "@effect/core/stream/Take/definition";
/**
 * Converts the stream to a scoped queue of chunks. After the scope is closed,
 * the queue will never again produce values and should be discarded.
 * @tsplus fluent ets/Stream toQueue
 * @tsplus location "@effect/core/stream/Stream/operations/toQueue"
 */
export declare function toQueue_<R, E, A>(self: Stream<R, E, A>, capacity?: number, __tsplusTrace?: string): Effect<R | Scope, never, Dequeue<Take<E, A>>>;
/**
 * Converts the stream to a scoped queue of chunks. After the scope is closed,
 * the queue will never again produce values and should be discarded.
 * @tsplus static ets/Stream/Aspects toQueue
 * @tsplus pipeable ets/Stream toQueue
 * @tsplus location "@effect/core/stream/Stream/operations/toQueue"
 */
export declare const toQueue: (capacity?: number, __tsplusTrace?: string) => <R, E, A>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<import("../../../io/Scope").Scope | R, never, import("../../../io/Queue").Dequeue<import("../../Take").Take<E, A>>>;
//# sourceMappingURL=toQueue.d.ts.map