import type { Position } from "./types.ts"; /** * Convert byte offset in file content to LSP Position (0-based line/character). * LSP spec mandates UTF-16 code unit counting. Surrogate pairs (codepoints > U+FFFF) * count as 2 UTF-16 code units, which is the natural behavior of charCodeAt iteration. */ export declare function offsetToPosition(text: string, offset: number): Position; /** * Convert LSP Position (0-based line/character) to byte offset in file content. * Handles UTF-16 surrogate pairs per LSP spec. */ export declare function positionToOffset(text: string, position: Position): number; //# sourceMappingURL=position.d.ts.map