import xtermHeadless from "@xterm/headless"; declare const Terminal: typeof xtermHeadless.Terminal; type Terminal = InstanceType; export interface CellSnapshot { char: string; fg: string; bg: string; } export interface DiffResult { highlights: Map; changedCells: number; changedRowRange: [number, number] | null; } /** * Capture a snapshot of the visible viewport — char + resolved colors per cell. */ export declare function captureBuffer(terminal: Terminal): CellSnapshot[][]; /** * Compare two buffer snapshots cell-by-cell. Returns a highlight map * compatible with RenderOptions.highlights. */ export declare function diffBuffers(before: CellSnapshot[][], after: CellSnapshot[][], excludeRows?: Set): DiffResult; export {};