import { Stream } from "./definitions"
/**
 * Allows a faster producer to progress independently of a slower consumer by buffering
 * up to `capacity` chunks in a queue.
 *
 * @note Prefer capacities that are powers of 2 for better performance.
 */
export declare function buffer_<R, E, O>(
  self: Stream<R, E, O>,
  capacity: number
): Stream<R, E, O>
/**
 * Allows a faster producer to progress independently of a slower consumer by buffering
 * up to `capacity` chunks in a queue.
 *
 * @note Prefer capacities that are powers of 2 for better performance.
 */
export declare function buffer(
  capacity: number
): <R, E, O>(self: Stream<R, E, O>) => Stream<R, E, O>
//# sourceMappingURL=buffer.d.ts.map
