import { type Task } from '../../../core/task-parser.js'; declare function withTaskFileMutationLock(project: string, mutate: () => T): T; declare function withTaskFileMutationLocks(projects: string[], mutate: () => T): T; declare function taskFileProjects(): string[]; declare function withTaskFileMutationLockAsync(project: string, mutate: () => Promise): Promise; 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 const editTask: (project: string, options?: any) => TaskLineTransformResult; export { VALID_PRIORITIES, _resetTemplateNameCacheForTests, clearDependsOnAll, editTask, findTask, findTaskById, getTasksPath, readTasks, sweepTaskOrphans, taskFileProjects, validateTemplateName, withTaskFileMutationLock, withTaskFileMutationLockAsync, withTaskFileMutationLocks, writeTasks, }; export type { TaskLineTransformResult };