import { Source } from './Source'; export declare class Position { readonly source: Source; readonly offset: number; private cachedLine; private cachedColumn; /** * Return line number of position (starting from 1) */ get line(): number; /** * Return column number of position(starts from 0) */ get column(): number; constructor(source: Source, offset: number, line?: number, column?: number); relative(offset: number): Position; until(other: Position): string; equals(other: Position): boolean; toString(): string; private cacheLineAndColumn; }