import { FIFOBuffer } from "./fifo.js"; /** * Returns a {@link DroppingBuffer} ring buffer with given max. capacity. * * @remarks * With this implementation, writes are **always** possible, but not guaranteed * to happen: Whilst the buffer is at full capacity, new writes will be silently * ignored. Read behavior is the same as for {@link fifo}. * * Also see {@link sliding} for alternative behavior. * * @param cap */ export declare const dropping: (cap: number) => DroppingBuffer; export declare class DroppingBuffer extends FIFOBuffer { copy(): DroppingBuffer; writable(): boolean; write(x: T): boolean; } //# sourceMappingURL=dropping.d.ts.map