import { type Task } from '../../../core/task-parser.js'; declare function sweepTaskOrphans(tasksPath: string): void; declare const VALID_PRIORITIES: Set; declare function _resetTemplateNameCacheForTests(): void; declare function validateTemplateName(name: string): string | null; declare function getTasksPath(project: string): string; declare function readTasks(project: string): Task[]; declare function writeTasks(project: string, tasks: Task[]): void; declare function findTaskById(tasks: Task[], taskId: string): Task | undefined; declare function findTask(tasks: Task[], taskText: string | null, taskId: string | null): { task: Task; index: number; } | { error: string; }; declare function clearDependsOnAll(completedHash: string): { count: number; tasks: { taskId: string | null; project: string; preview: string; }[]; }; type TaskLineTransformResult = { success: true; message?: string; [k: string]: any; } | { success: false; message: string; }; declare function editTask(project: string, options?: any): TaskLineTransformResult; export { VALID_PRIORITIES, _resetTemplateNameCacheForTests, clearDependsOnAll, editTask, findTask, findTaskById, getTasksPath, readTasks, sweepTaskOrphans, validateTemplateName, writeTasks, }; export type { TaskLineTransformResult };