/** * File Tracker - Detects new/modified files in a directory * * Used to track what workers create or modify for the gallery view. */ export interface TrackedFile { path: string; name: string; mtime: number; size: number; hash?: string; } export interface FileSnapshot { workingDir: string; files: Map; timestamp: number; } export interface WorkerAsset { path: string; name: string; type: 'new' | 'modified' | 'unchanged'; fileType: 'code' | 'image' | 'pdf' | 'text' | 'other'; preview?: string; diff?: Array<{ type: 'context' | 'add' | 'remove'; content: string; }>; } /** * Take a snapshot of files in a directory */ export declare function takeSnapshot(workingDir: string): FileSnapshot; /** * Compare two snapshots to find new/modified files */ export declare function compareSnapshots(before: FileSnapshot, after: FileSnapshot): WorkerAsset[];