import type { TextQuoteAnchor } from '../types/annotations'; /** * Locate `anchor` in `root`'s rendered text and return a Range covering the * matched span. Returns null when the anchor cannot be resolved (orphan). * * Strategy: build a flat string of the visible text content (skipping code * blocks and our own marker spans), search for `prefix + exact + suffix`, * then map the offsets back to the underlying Text nodes. */ export declare function resolveTextQuote(root: HTMLElement, anchor: TextQuoteAnchor): Range | null; /** * Build a text-quote anchor for the current Selection inside `root`. Uses up * to `contextLength` characters on each side as prefix/suffix so the anchor * survives non-local edits. */ export declare function selectionToAnchor(root: HTMLElement, selection: Selection, contextLength?: number): TextQuoteAnchor | null; //# sourceMappingURL=annotationResolver.d.ts.map