import type { Position, Range } from '../types.js'; /** * Convert a character offset in `text` to an LSP Position. * @param text - Source text. * @param offset - Character offset. * @returns LSP Position (line and character). */ export declare function offsetToPosition(text: string, offset: number): Position; /** * Convert an LSP Position in `text` to a character offset. * @param text - Source text. * @param position - LSP Position. * @returns Character offset from the start of the text. */ export declare function positionToOffset(text: string, position: Position): number; /** * Extract the text covered by a Range. * @param text - Source text. * @param range - LSP Range to extract. * @returns Substring of `text` covered by the range. */ export declare function getTextInRange(text: string, range: Range): string; //# sourceMappingURL=positions.d.ts.map