/**
 * Circular buffer implementation for efficient log storage
 */
import type { LogEntry } from '../types.js';
/**
 * Circular buffer for storing log entries with O(1) add/remove
 */
export declare class CircularBuffer {
    private entries;
    private head;
    private tail;
    private count;
    private maxEntries;
    constructor(maxEntries: number);
    /**
     * Add entry to buffer - O(1) operation
     * Returns the removed entry if buffer was full, undefined otherwise
     */
    add(entry: LogEntry): LogEntry | undefined;
    /**
     * Get all entries as array (oldest to newest)
     */
    getAll(): LogEntry[];
    /**
     * Get current count of entries
     */
    getCount(): number;
    /**
     * Clear all entries
     */
    clear(): void;
}
//# sourceMappingURL=circular-buffer.d.ts.map