import { type XtermCompatibilityRow } from '../internal/xterm-compatibility.js'; import type { GhosttyBindings } from './bindings.js'; import type { ResolvedTerminalTheme, TerminalBufferRange, TerminalBufferSnapshot, TerminalBufferState } from './types.js'; /** Reads paged rows directly from Ghostty without introducing another VT parser. */ export declare class BufferReader { private readonly bindings; private readonly scalar; private readonly point; private readonly gridRef; private readonly cell; private readonly row; private readonly style; private readonly scrollbar; private readonly graphemeLength; private graphemes; private readonly mode; private readonly cursorStyle; private readonly terminalScalars; private readonly terminalMultiKeys; private readonly terminalMultiValues; private readonly terminalMultiWritten; private readonly modeBatch; private readonly modeSize; private readonly hyperlinkLength; private hyperlinkBytes; private readonly cellBits; private readonly rowIdentityOffsets; constructor(bindings: GhosttyBindings); state(terminal: number, revision: number): TerminalBufferState; read(terminal: number, revision: number, theme: ResolvedTerminalTheme, range?: TerminalBufferRange): TerminalBufferSnapshot; /** * Points a tracked reference at a retained row, creating the reference when `tracked` is 0. * Ghostty moves it as rows scroll or are pruned. Returns 0 when the row does not exist. */ trackRow(terminal: number, index: number, tracked: number): number; /** The current row index of a tracked reference, or -1 once Ghostty discarded its row. */ trackedRow(tracked: number): number; /** Frees a reference created by {@link trackRow}. */ releaseTrackedRow(tracked: number): void; /** Reads an explicit retained-buffer range directly into the xterm packed cell format. */ compatibilityRows(terminal: number, start: number, end: number): readonly XtermCompatibilityRow[]; dispose(): void; private readRow; /** Reads the raw cell at column `x` of the selected row as its low and high 32-bit words. */ private readCell; /** Decodes a raw cell's text; only multi-codepoint graphemes need another WASM call. */ private cellText; /** Reads the style of the cell selected by {@link readCell} into the style buffer. */ private readSelectedStyle; /** Page node of the row last selected by {@link selectRowIdentity}. */ private selectedNode; private selectRowIdentity; private getInt; private rowFlag; private readGrapheme; private readStyle; private readStyleColorSource; private readHyperlinkUri; private readModes; private readModesBulk; private readMode; private readCursorAttributes; private cursorAttributesFromStyle; private initializeTerminalMultiQuery; private readTerminalStateBulk; } //# sourceMappingURL=buffer.d.ts.map