import type { Policy } from '../types.js'; export interface Snapshot { sessionId: string; rootDir: string; files: Map; createdAt: Date; } export interface SnapshotEntry { path: string; hash: string; size: number; snapshotPath: string; } /** * Create a snapshot of all files matching the policy */ export declare function createSnapshot(rootDir: string, policy: Policy, sessionId: string): Promise; /** * Get the snapshot content for a file */ export declare function getSnapshotContent(snapshot: Snapshot, filePath: string): Buffer | null; /** * Check if a file has been modified since snapshot */ export declare function hasChanged(snapshot: Snapshot, filePath: string, rootDir: string): boolean; /** * Load an existing snapshot from disk */ export declare function loadSnapshot(sessionId: string): Snapshot | null; /** * Clean up a snapshot session */ export declare function cleanupSnapshot(sessionId: string): void; /** * Generate a unique session ID */ export declare function generateSessionId(): string; //# sourceMappingURL=snapshot.d.ts.map