import type { Comment, ReanchorStatus } from "./types.js"; export declare const MAX_CONTEXT_CANDIDATE_BLOCKS = 64; type BlockType = "heading" | "code" | "list" | "table" | "blockquote" | "paragraph"; interface MarkdownBlock { startLine: number; endLine: number; type: BlockType; text: string; headingPath: string[]; } interface DocumentBlockIndex { lines: string[]; blocks: MarkdownBlock[]; lineToBlock: Map; tokenPostings: Map; } export interface AnchorContextIndex { source: DocumentBlockIndex; target: DocumentBlockIndex; } export interface ContextAnchorResolution { status: Extract; score: number; line?: number; endLine?: number; startColumn?: number; endColumn?: number; text?: string; candidateMargin: number; reason: string; } export interface ContextAnchorCandidate { score: number; line: number; endLine: number; startColumn?: number; endColumn?: number; text: string; exact: boolean; } export declare function createAnchorContextIndex(sourceLines: string[], targetLines: string[]): AnchorContextIndex; export declare function resolveContextAnchor(comment: Comment, index: AnchorContextIndex): ContextAnchorResolution | undefined; export declare function findContextAnchorCandidates(comment: Comment, index: AnchorContextIndex): ContextAnchorCandidate[]; export declare function getAnchorContextScope(comment: Comment, index: AnchorContextIndex): string | undefined; export {}; //# sourceMappingURL=anchor-context.d.ts.map