import type { ScheduledTask, TaskRunLog } from '../types.js'; /** Create a new scheduled task. Returns the task ID. */ export declare function createTask(task: Omit): string; /** Get a single task by ID. */ export declare function getTaskById(id: string): ScheduledTask | undefined; /** Get all tasks. */ export declare function getAllTasks(): ScheduledTask[]; /** Get tasks for a specific conversation key. */ export declare function getTasksForConversation(conversationKey: string): ScheduledTask[]; /** Get all tasks that are due for execution (active and next_run <= now). */ export declare function getDueTasks(): ScheduledTask[]; /** Update a task's fields. Only updates provided fields. */ export declare function updateTask(id: string, updates: Partial>): boolean; /** Delete a task by ID. */ export declare function deleteTask(id: string): boolean; /** Update a task after execution: set last_run, last_result, and compute next_run. */ export declare function updateTaskAfterRun(id: string, lastRun: string, lastResult: string | null, nextRun: string | null, newStatus?: string): void; /** Log a task execution. */ export declare function logTaskRun(log: TaskRunLog): void;