Version: 0.1.00.1.10.1.20.2.00.2.10.2.20.2.30.3.01.0.0-beta.11.0.0-beta.21.0.0-beta.31.0.0-beta.41.0.0-beta.51.0.0-beta.61.0.0-beta.71.0.0-rc.11.0.0-rc.21.0.0-rc.31.0.0-rc.41.0.0-rc.51.0.0-rc.61.0.0-rc.71.0.0-rc.81.0.01.0.11.0.21.0.31.1.01.2.01.2.11.3.01.3.11.3.21.4.01.5.01.5.11.6.01.7.01.7.11.7.21.8.01.8.11.8.21.8.31.9.01.9.11.9.21.10.01.10.11.10.22.0.0-02.0.0-12.0.0-22.0.0-32.0.0-42.0.0-52.0.0-62.0.0-72.0.0-82.0.0-92.0.0-102.0.0-112.0.02.0.12.1.02.1.12.1.22.1.32.2.02.2.12.2.22.3.0-02.3.0-12.3.0-22.3.0-32.3.0-42.3.0-52.3.02.3.12.3.22.3.32.3.42.4.02.4.12.4.22.4.32.4.42.4.52.5.02.5.12.6.02.6.1
/**
* Tracks newlines during parsing in order to provide an efficient API for
* determining the one-indexed `{ line, col }` position for any offset
* within the input.
*/
export declare class LineCounter {
lineStarts: number[];
* Should be called in ascending order. Otherwise, call
* `lineCounter.lineStarts.sort()` before calling `linePos()`.
addNewLine: (offset: number) => number;
* Performs a binary search and returns the 1-indexed { line, col }
* position of `offset`. If `line === 0`, `addNewLine` has never been
* called or `offset` is before the first known newline.
linePos: (offset: number) => {
line: number;
col: number;
};
}