/** * MRSF Re-anchor Engine — §7.4 Anchoring Resolution Procedure. * * Implements a four-step algorithm to re-locate each comment's * anchor within the current document revision: * * Step 0 – diff-based shift (git + commit available) * Step 1 – exact text match * Step 1.5– fuzzy match ≥ high threshold (0.8) * Step 2 – line/column fallback (commit-aware staleness) * Step 3 – lower-threshold fuzzy ≥ configured threshold (0.6) * Step 4 – orphan */ import type { MrsfDocument, ReanchorOptions, ReanchorResult } from "./types.js"; export { applyReanchorResults, DEFAULT_THRESHOLD, HIGH_THRESHOLD, reanchorComment, reanchorDocumentLines, reanchorDocumentText, resolveAnchor, toReanchorLines, } from "./reanchor-core.js"; /** * Re-anchor all comments in an MRSF document. */ export declare function reanchorDocument(doc: MrsfDocument, documentLines: string[], opts?: ReanchorOptions & { documentPath?: string; repoRoot?: string; }): Promise; /** * High-level re-anchor for a single sidecar file path. */ export declare function reanchorFile(sidecarPath: string, opts?: ReanchorOptions): Promise<{ results: ReanchorResult[]; changed: number; written: boolean; }>; //# sourceMappingURL=reanchor.d.ts.map