import { type Line } from '../types/grid.js';
/**
 * InfiniteBuffer - Manages the complete conversation history as a list of lines.
 */
export declare class InfiniteBuffer {
    private lines;
    addLine(line: Line): void;
    addLines(lines: Line[]): void;
    getLineCount(): number;
    /**
     * getAllLines - Provides access to the full raw line list.
     */
    getAllLines(): Line[];
    /**
     * Takes a snapshot of the buffer for a specific viewport window.
     */
    getSnapshot(startLine: number, height: number, width: number): Line[];
    clear(): void;
    /** Truncate the buffer to the given line count (remove all lines from lineIndex onward). */
    truncateToLine(lineIndex: number): void;
}
//# sourceMappingURL=history.d.ts.map