/** * A circular buffer implementation for storing log lines with a fixed capacity */ export declare class CircularBuffer { private buffer; private head; private tail; private size; private readonly capacity; /** * Create a new circular buffer * @param capacity Maximum number of items the buffer can hold */ constructor(capacity: number); /** * Add an item to the buffer, overwriting the oldest item if full * @param item Item to add to the buffer */ push(item: T): void; /** * Get all items currently in the buffer in order of insertion * @returns Array of items in order of insertion (oldest to newest) */ getAll(): T[]; /** * Get the number of items in the buffer */ getSize(): number; /** * Get the capacity of the buffer */ getCapacity(): number; /** * Clear all items from the buffer */ clear(): void; }