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";
/**
 * Publishes elements of this stream to a hub. Stream failure and ending will
 * also be signalled.
 * @tsplus fluent ets/Stream runIntoHub
 * @tsplus location "@effect/core/stream/Stream/operations/runIntoHub"
 */
export declare function runIntoHub_<R, E extends E1, A, E1>(self: Stream<R, E, A>, hub: LazyArg<Hub<Take<E1, A>>>, __tsplusTrace?: string): Effect<R, E | E1, void>;
/**
 * Publishes elements of this stream to a hub. Stream failure and ending will
 * also be signalled.
 * @tsplus static ets/Stream/Aspects runIntoHub
 * @tsplus pipeable ets/Stream runIntoHub
 * @tsplus location "@effect/core/stream/Stream/operations/runIntoHub"
 */
export declare const runIntoHub: <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<R, E1 | E, void>;
//# sourceMappingURL=runIntoHub.d.ts.map