import type { DocumentAnnotationAnchorConfidence, DocumentAnnotationAnchorState } from "./constants.js"; import type { DocumentAnnotationAnchorSelector, DocumentAnnotationAnchorSnapshot, DocumentTextProjection, DocumentTextRange } from "./types/document-annotation.js"; export interface CreateDocumentAnchorSelectorOptions { contextLength?: number; } export interface VerifyDocumentAnchorSelectorInput { markdown: string; selector: DocumentAnnotationAnchorSelector; contextLength?: number; } export interface VerifyDocumentAnchorSelectorResult { ok: boolean; anchor: DocumentAnnotationAnchorSnapshot | null; projection: DocumentTextProjection; reason: "verified" | "quote_mismatch" | "position_mismatch" | "invalid_range"; } export interface RemapDocumentAnchorInput { previousAnchor: DocumentAnnotationAnchorSnapshot; nextMarkdown: string; contextLength?: number; } export interface RemapDocumentAnchorResult { anchorState: DocumentAnnotationAnchorState; confidence: DocumentAnnotationAnchorConfidence; anchor: DocumentAnnotationAnchorSnapshot | null; projection: DocumentTextProjection; reason: "exact" | "duplicate" | "fuzzy" | "ambiguous" | "missing"; } export declare function normalizeAnchorText(value: string): string; export declare function projectMarkdownToText(markdown: string): DocumentTextProjection; export declare function resolveProjectionRange(projection: DocumentTextProjection, normalizedStart: number, normalizedEnd: number): DocumentTextRange | null; export declare function createDocumentAnchorSelector(projection: DocumentTextProjection, range: DocumentTextRange, options?: CreateDocumentAnchorSelectorOptions): DocumentAnnotationAnchorSelector; export declare function selectorToAnchorSnapshot(selector: DocumentAnnotationAnchorSelector): DocumentAnnotationAnchorSnapshot; export declare function anchorSnapshotToSelector(anchor: DocumentAnnotationAnchorSnapshot): DocumentAnnotationAnchorSelector; export declare function verifyDocumentAnchorSelector(input: VerifyDocumentAnchorSelectorInput): VerifyDocumentAnchorSelectorResult; export declare function remapDocumentAnchor(input: RemapDocumentAnchorInput): RemapDocumentAnchorResult; //# sourceMappingURL=document-anchors.d.ts.map