import type { Range, TextEdit, WorkspaceEdit } from "./types"; /** * Apply text edits to a string in-memory. * Edits are applied in reverse order (bottom-to-top) to preserve line/character indices. */ export declare function applyTextEditsToString(content: string, edits: TextEdit[]): string; /** True when two ranges overlap (share any position other than a touching boundary). */ export declare function rangesOverlap(a: Range, b: Range): boolean; /** * Flatten a WorkspaceEdit's text edits into a Map. * Resource operations (create/rename/delete) are ignored — callers handle them separately. */ export declare function flattenWorkspaceTextEdits(edit: WorkspaceEdit): Map; /** * Apply text edits to a file. * Edits are applied in reverse order (bottom-to-top) to preserve line/character indices. */ export declare function applyTextEdits(filePath: string, edits: TextEdit[]): Promise; /** * Apply a workspace edit (collection of file changes). * Returns array of applied change descriptions. */ export declare function applyWorkspaceEdit(edit: WorkspaceEdit, cwd: string): Promise;