import { TaskState } from '../types.js'; /** * Get the storage directory path (~/.super-agents/) */ export declare function getStorageDir(): string; /** * Get MD5 hash of a string */ export declare function hashCwd(cwd: string): string; /** * Get the storage file path for a given cwd * Returns: ~/.super-agents/{md5(cwd)}.json */ export declare function getStoragePath(cwd: string): string; /** * Save tasks to disk with atomic write (async — non-blocking). */ export declare function saveTasks(cwd: string, tasks: TaskState[]): Promise; /** * Load tasks from disk (sync — startup only, before any requests are served) * Returns empty array if file doesn't exist or is corrupted * Marks orphaned running tasks as failed */ export declare function loadTasks(cwd: string): TaskState[]; /** * Delete storage file for a cwd (for testing/cleanup) */ export declare function deleteStorage(cwd: string): boolean; //# sourceMappingURL=task-persistence.d.ts.map