export type FileState = 'pending' | 'scanned' | 'confirmed' | 'learned'; export interface RepoProgress { status: 'pending' | 'in_progress' | 'complete'; startedAt: string; files: Record; } export type HarvestProgress = Record; export declare function loadProgress(dir: string): Promise; export declare function saveProgress(dir: string, progress: HarvestProgress): Promise; export declare function getFileState(progress: HarvestProgress, repoKey: string, filePath: string): FileState; export declare function getRepoStatus(files: Record): 'pending' | 'in_progress' | 'complete'; export declare function initRepo(progress: HarvestProgress, repoKey: string): HarvestProgress; export declare function setFileState(progress: HarvestProgress, repoKey: string, filePath: string, state: FileState): HarvestProgress;