import type { AnchorPosition, Comment, DiffHunk, MrsfDocument, ReanchorResult } from "./types.js"; import { type FuzzySearchIndex } from "./fuzzy.js"; import { type RevisionProjectionIndex } from "./revision-projection.js"; import { type AnchorContextIndex } from "./anchor-context.js"; export declare const HIGH_THRESHOLD = 0.8; export declare const DEFAULT_THRESHOLD = 0.6; /** * Default proximity window (in lines) for the §7.4 step 1a relocation guard. * * A lone exact match of `selected_text` that lands farther than this many * lines from the comment's original `line` — while the text at the original * position has changed — is treated as an in-place edit rather than a * confident relocation. See {@link isImplausibleExactRelocation}. */ export declare const DEFAULT_PROXIMITY_WINDOW = 5; export declare function toReanchorLines(documentText: string): string[]; export declare function reanchorComment(comment: Comment, documentLines: string[], opts?: { diffHunks?: DiffHunk[]; threshold?: number; commitIsStale?: boolean; proximityWindow?: number; revisionProjection?: RevisionProjectionIndex; anchorContext?: AnchorContextIndex; fuzzySearchIndex?: FuzzySearchIndex; getFuzzySearchIndex?: () => FuzzySearchIndex; }): ReanchorResult; export declare function reanchorDocumentLines(doc: MrsfDocument, documentLines: string[], opts?: { threshold?: number; proximityWindow?: number; }): ReanchorResult[]; export declare function reanchorDocumentText(doc: MrsfDocument, documentText: string, opts?: { threshold?: number; proximityWindow?: number; }): ReanchorResult[]; export declare function resolveAnchor(comment: Comment, documentText: string, opts?: { threshold?: number; proximityWindow?: number; }): AnchorPosition; export declare function applyReanchorResults(doc: MrsfDocument, results: ReanchorResult[], opts?: { updateText?: boolean; force?: boolean; headCommit?: string; }): number; //# sourceMappingURL=reanchor-core.d.ts.map