import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Sink } from "@effect/core/stream/Sink/definition/base";
import { Effect } from "@effect/core/io/Effect/definition";
import { Scope } from "@effect/core/io/Scope/definition";
/**
 * @tsplus fluent ets/Stream runScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runScoped"
 */
export declare function runScoped_<R, E, A, R2, E2, B>(self: Stream<R, E, A>, sink: LazyArg<Sink<R2, E2, A, unknown, B>>, __tsplusTrace?: string): Effect<R | R2 | Scope, E | E2, B>;
/**
 * @tsplus static ets/Stream/Aspects runScoped
 * @tsplus pipeable ets/Stream runScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runScoped"
 */
export declare const runScoped: <A, R2, E2, B>(sink: import("@tsplus/stdlib/data/Function").LazyArg<import("../../Sink").Sink<R2, E2, A, unknown, B>>, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<import("../../../io/Scope").Scope | R | R2, E | E2, B>;
//# sourceMappingURL=runScoped.d.ts.map