import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Hub } from "@effect/core/io/Hub/definition";
import { Take } from "@effect/core/stream/Take/definition";
import { Effect } from "@effect/core/io/Effect/definition";
import { Scope } from "@effect/core/io/Scope/definition";
/**
 * Like `Stream.runIntoHub`, but provides the result as a scoped effect to
 * allow for scope composition.
 * @tsplus fluent ets/Stream runIntoHubScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runIntoHubScoped"
 */
export declare function runIntoHubScoped_<R, E extends E1, A, E1>(self: Stream<R, E, A>, hub: LazyArg<Hub<Take<E1, A>>>, __tsplusTrace?: string): Effect<R | Scope, E | E1, void>;
/**
 * Like `Stream.runIntoHub`, but provides the result as a scoped effect to
 * allow for scope composition.
 * @tsplus static ets/Stream/Aspects runIntoHubScoped
 * @tsplus pipeable ets/Stream runIntoHubScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runIntoHubScoped"
 */
export declare const runIntoHubScoped: <A, E1>(hub: import("@tsplus/stdlib/data/Function").LazyArg<import("../../../io/Hub").Hub<import("../../Take").Take<E1, A>>>, __tsplusTrace?: string) => <R, E extends E1>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<import("../../../io/Scope").Scope | R, E | E1, void>;
//# sourceMappingURL=runIntoHubScoped.d.ts.map