import * as H from "../../../../Hub";
import * as M from "../../../../Managed";
import type * as TK from "../../Take";
import type * as C from "../core";
/**
 * Converts the stream to a managed hub of chunks. After the managed hub is used,
 * the hub will never again produce values and should be discarded.
 */
export declare function toHub_<R, E, A>(self: C.Stream<R, E, A>, capacity: number): M.RIO<R, H.Hub<TK.Take<E, A>>>;
/**
 * Converts the stream to a managed hub of chunks. After the managed hub is used,
 * the hub will never again produce values and should be discarded.
 *
 * @ets_data_first toHub_
 */
export declare function toHub(capacity: number): <R, E, A>(self: C.Stream<R, E, A>) => M.RIO<R, H.Hub<TK.Take<E, A>>>;
//# sourceMappingURL=toHub.d.ts.map