/** The document as the compiler reads it, and where each of its offsets sits. */ export interface Document { /** The normalised text: what `diagnose`, `complete` and the rest are given. */ readonly text: string; /** * The offset in the editor's own document that a normalised offset names. * * The identity where the document is already normalised, which is what a * document written on a machine that ends its lines with one character is. */ at(offset: number): number; } export declare function documentOf(raw: string): Document; /** The normalised offset an editor offset names, which is the other direction. */ export declare function normalisedOffset(held: Document, raw: number): number; //# sourceMappingURL=positions.d.ts.map