export interface LintFinding { /** Source path inside `content/knowledge/`. */ file: string; /** 1-based line number in the FILE (post-patch). */ line: number; /** Trimmed text of the offending line (no leading `+`). */ text: string; /** Short reason, e.g. "no source link within 3 lines". */ reason: string; } export interface LintInput { /** Path of the changed file. */ file: string; /** Raw file contents AFTER the change. */ content: string; /** * Added-line records from the diff: line numbers (1-based, post-patch) and * the line text WITHOUT the leading `+`. Caller is responsible for parsing * the unified diff and producing this list — keeps this module pure. */ addedLines: Array<{ line: number; text: string; }>; } export declare function lintUnsourcedClaims(inputs: LintInput[]): LintFinding[]; /** * Parse a unified diff (`git diff` output) into per-file added-line lists. * Only `content/knowledge/**\/*.md` paths are emitted; other files are * silently dropped so the caller can pipe an unfiltered diff in. */ export interface DiffParseResult { file: string; addedLines: Array<{ line: number; text: string; }>; } export declare function parseUnifiedDiff(diff: string): DiffParseResult[]; //# sourceMappingURL=lint-unsourced.d.ts.map