/** * Source Sync Checker * Validates that documentation references match actual source code */ import { SyncStatus, LogicSection } from '../types/documentation.js'; export declare class SourceSyncChecker { private workspaceRoot; constructor(workspaceRoot?: string); /** * Check if a source file reference is valid */ checkSourceReference(ref: string): Promise; /** * Read source code at specified line range */ readSourceLines(ref: string): Promise; /** * Check if source file has been modified since doc update */ detectChanges(sourceFile: string, docUpdated: Date): Promise; /** * Validate all logic sections in a document */ validateLogicSections(logicSections: LogicSection[], docUpdated: string): Promise<{ valid: boolean; results: Array<{ section: string; status: SyncStatus; }>; }>; /** * Check if all source_files exist */ validateSourceFiles(sourceFiles: string[]): Promise<{ valid: boolean; missing: string[]; existing: string[]; }>; /** * Compare code snippet in doc with actual source */ compareWithSource(docCode: string, sourceRef: string): Promise<{ matches: boolean; similarity: number; message: string; }>; }