UNPKG

squabble-mcp

Version:

Engineer-driven development with critical-thinking PM collaboration - MCP server for Claude

40 lines 929 B
/** * Circular buffer for efficient in-memory event storage * Automatically overwrites oldest events when capacity is reached */ export declare class CircularBuffer<T> { private buffer; private writeIndex; private size; private readonly capacity; constructor(capacity: number); /** * Add an item to the buffer */ push(item: T): void; /** * Get all items in chronological order */ toArray(): T[]; /** * Iterate over items in chronological order */ forEach(callback: (item: T, index: number) => void): void; /** * Get the most recent N items */ getRecent(count: number): T[]; /** * Clear the buffer */ clear(): void; /** * Get current number of items in buffer */ getSize(): number; /** * Check if buffer is full */ isFull(): boolean; } //# sourceMappingURL=circular-buffer.d.ts.map