export interface TaskRecord { id: string; title: string; prompt: string; /** @deprecated Old field — migrated to title+prompt on load. */ text?: string; details?: string; status: "pending" | "in-progress" | "done"; createdAt: string; } export interface PendingTaskInfo { id: string; title: string; prompt: string; } export declare function createTaskRecord(title: string, prompt: string): TaskRecord; export declare function loadTasks(cwd: string): Promise; export declare function loadTasksSync(cwd: string): TaskRecord[]; export declare function saveTasks(cwd: string, tasks: readonly TaskRecord[]): Promise; export declare function saveTasksSync(cwd: string, tasks: readonly TaskRecord[]): void; export declare function getTaskCount(cwd: string): number; export declare function getNextPendingTask(cwd: string): PendingTaskInfo | null; /** * Drop every completed task and persist the pruned list, returning the * survivors. Used by the desktop app so finished tasks disappear from the Tasks * modal on completion instead of lingering with a "done" badge. No-op write * when nothing was done (keeps the file untouched on idle runs). */ export declare function pruneDoneTasksSync(cwd: string): TaskRecord[]; export declare function markTaskInProgress(cwd: string, taskId: string): void; //# sourceMappingURL=tasks-store.d.ts.map