import type { ScheduledTaskDef } from './scheduler.js'; export type { ScheduledTaskDef, TaskTarget } from './scheduler.js'; export interface TaskRecord extends ScheduledTaskDef { createdAt: string; createdBy?: string; lastRun?: string; lastStatus?: 'success' | 'error'; lastError?: string; } export interface TaskExecution { taskId: string; taskName: string; startedAt: string; completedAt: string; status: 'success' | 'error'; reply: string; durationMs: number; costUsd?: number; error?: string; } export declare class TaskStore { private dir; constructor(dir: string); load(): Promise; save(tasks: TaskRecord[]): Promise; addTask(task: TaskRecord): Promise; removeTask(id: string): Promise; getTask(id: string): Promise; updateTask(id: string, patch: Partial): Promise; listTasks(): Promise; mergeConfigTasks(configTasks: ScheduledTaskDef[]): Promise; recordExecution(exec: TaskExecution): Promise; getHistory(taskId: string, limit?: number): Promise; } //# sourceMappingURL=task-store.d.ts.map