import { type Component, type TUI } from "@elyracode/tui"; export interface DiffViewerCallbacks { /** Open the diff in the external editor. */ onOpenEditor: () => void; /** Close the viewer. */ onClose: () => void; } /** * Full-height, scrollable diff viewer rendered in the editor area. * * Keys: * - up/down: scroll one line * - PageUp/PageDown: scroll one viewport * - g / G (or Home / End): jump to top / bottom * - e: open the diff in the external editor * - Esc / q: close */ export declare class DiffViewerComponent implements Component { private tui; private title; private callbacks; private readonly styledLines; private scrollOffset; private lastViewport; constructor(tui: TUI, diffText: string, title: string, callbacks: DiffViewerCallbacks); invalidate(): void; private getViewportHeight; private clampScroll; render(width: number): string[]; handleInput(keyData: string): void; } //# sourceMappingURL=diff-viewer.d.ts.map