/** * Lexical SSOT↔evidence fit (no LLM). * Conservative stemming, H1/lead/body evidence, overlap, phrase-as-explanation, better-match. */ export declare const DEFAULT_SSOT_OVERLAP_MIN = 0.35; export declare const DEFAULT_BETTER_MATCH_MARGIN = 0.15; export declare function lightStem(token: string): string; export declare function contentTokens(text: string): string[]; /** First ATX H1 text, if any. */ export declare function extractH1(content: string): string; export declare function buildEvidenceText(content: string): string; export declare function ssotEvidenceOverlap(summary: string, evidence: string): number; /** Longest contentful n-gram from summary (prefer 3, else 2). */ export declare function longestSummaryPhrase(summary: string): string[] | null; export declare function evidenceHasPhrase(evidence: string, phrase: string[]): boolean; interface FitOptions { overlapMin?: number; betterMatchMargin?: number; phraseCheck?: boolean; } export interface FitFile { path: string; summary: string; content: string; } type FitIssueKind = "short" | "weak" | "better-match"; interface FitIssue { kind: FitIssueKind; path: string; message: string; otherPath?: string; } export declare function evaluateSsotFit(files: FitFile[], options?: FitOptions): FitIssue[]; /** @deprecated Prefer ssotEvidenceOverlap — kept for callers that pass raw body. */ export declare function ssotBodyOverlap(summary: string, body: string): number; export {};