import * as A from "../../Collections/Immutable/Chunk"
import * as M from "../_internal/managed"
import type { Stream } from "./definitions"
/**
 * Fan out the stream, producing a list of streams that have the same elements as this stream.
 * The driver stream will only ever advance of the `maximumLag` chunks before the
 * slowest downstream stream.
 */
export declare function broadcast(
  n: number,
  maximumLag: number
): <R, E, O>(
  self: Stream<R, E, O>
) => M.Managed<R, never, A.Chunk<Stream<unknown, E, O>>>
/**
 * Fan out the stream, producing a list of streams that have the same elements as this stream.
 * The driver stream will only ever advance of the `maximumLag` chunks before the
 * slowest downstream stream.
 */
export declare function broadcast_<R, E, O>(
  self: Stream<R, E, O>,
  n: number,
  maximumLag: number
): M.Managed<R, never, A.Chunk<Stream<unknown, E, O>>>
//# sourceMappingURL=broadcast.d.ts.map
