/** Maps between char offsets and 0-based { line, column } positions for one text. */ export declare class LineIndex { /** Char offset at which each line starts. `lineStarts[0]` is always 0. */ private readonly lineStarts; private readonly length; constructor(text: string); /** Number of lines. A text with no trailing newline still counts its last line. */ get lineCount(): number; /** 0-based line, 0-based column -> 0-based char offset. Out-of-range line clamps to [0, last]. */ offsetAt(line: number, column: number): number; /** 0-based char offset -> { line, column }. Offset is clamped into [0, text.length]. */ positionAt(offset: number): { line: number; column: number; }; }