import type { NotebookCell, NotebookDocument, TextLine } from 'vscode'; import { Position, Range } from '../../../util/common/test/shims/vscodeTypesShim'; export declare abstract class AlternativeNotebookDocument { protected readonly _text: string; protected readonly notebook: NotebookDocument; private _transformer; private get transformer(); getText(range?: Range): string; private _getTextInRange; constructor(_text: string, notebook: NotebookDocument); protected positionToOffset(position: Position): number; /** * Translates a position in the notebook document to the corresponding alternative position. */ abstract fromCellPosition(cell: NotebookCell, position: Position): Position; /** * Translates a position in the alternative document to the corresponding cell index and position in the notebook document. */ abstract toCellPosition(position: Position): { cell: NotebookCell; position: Position; } | undefined; getWordRangeAtPosition(_position: Position): Range | undefined; private _lines; get lines(): string[]; get lineCount(): number; lineAt(line: number): TextLine; lineAt(position: Position): TextLine; offsetAt(position: Position): number; positionAt(offset: number): Position; validateRange(range: Range): Range; validatePosition(position: Position): Position; } //# sourceMappingURL=alternativeNotebookDocument.d.ts.map