import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { ITerminalLogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal.service"; import { IXtermTerminal } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal"; import type { Terminal } from "@xterm/xterm"; export declare class BufferContentTracker extends Disposable { private readonly _xterm; private readonly _configurationService; private readonly _logService; /** * Marks the last part of the buffer that was cached */ private _lastCachedMarker; /** * The number of wrapped lines in the viewport when the last cached marker was set */ private _priorEditorViewportLineCount; private _lines; get lines(): string[]; bufferToEditorLineMapping: Map; constructor(_xterm: Pick & { raw: Terminal; }, _configurationService: IConfigurationService, _logService: ITerminalLogService); reset(): void; update(): void; private _updateCachedContent; private _removeViewportContent; private _updateViewportContent; }