import { type ObservableLike, Observable } from "./Observable.js"; export declare class BufferOverflowError extends Error { readonly name = "BufferOverflowError"; } /** * A strategy for adding new values to a buffer that is full. */ export declare enum BufferOverflowStrategy { /** * Discard new values as they arrive. */ DropLatest = "DropLatest", /** * Discard old values making room for new values. */ DropOldest = "DropOldest", /** * Error if adding a new value to the buffer will cause an overflow. */ Error = "Error" } export type BufferOptions = { /** * The max capacity of the buffer. */ limit?: number; /** * How to handle a buffer overflow scenario. */ overflowStrategy?: BufferOverflowStrategy; }; /** * Buffers emitted values until a signal emits or completes. Once the signal * emits or completes the buffered values will be emitted synchronously. */ export declare function bufferUntil(signal: ObservableLike, { limit, overflowStrategy }?: BufferOptions): (observable: ObservableLike) => Observable; //# sourceMappingURL=bufferUntil.d.ts.map