import { TextDocument } from 'vscode-languageserver-textdocument'; import { IndexMapping } from './IndexMapping'; export interface TextRange { start: number; end: number; } export declare const EmptyRange: { start: number; end: number; }; export declare namespace TextRange { function toLspRange(range: TextRange, textDoc: TextDocument): { start: import("vscode-languageserver-textdocument").Position; end: import("vscode-languageserver-textdocument").Position; }; } /** * Remap all the indices in the specific TextRange object by the specific mapping. * @param range The specific TextRange object. * @param mapping The mapping used to offset. */ export declare function remapTextRange(range: T, mapping: IndexMapping): T; export declare function areOverlapped(a: TextRange, b: TextRange): boolean; export declare function isInRange(char: number, range: TextRange): boolean;