import { LineColPos } from '../../language/LineColPos' ; import { Span } from '../../language/Span' ; import { IDocumentLocation } from "./IDocumentLocation" ; /**
 * Represents a document with a URL location, contents and indexing by position
 */ export interface IDocument extends IDocumentLocation { /**
     * Get the document text as a string.
     */ documentText : string ; /**
     * Retrieves a section of the document text
     */ getDocumentText ( span , offsetIndex ? ) : string ; getDocumentPosition ( documentCharacterIndex ) : LineColPos ; getDocumentCharacterIndex ( documentLineIndex , documentColumnIndex , options ? ) : number ; }