import { TaskRepo } from '../../store/task-repo.js'; import type { EventBus } from '../../events/index.js'; export declare class TaskMutator { private store; private bus?; constructor(store?: TaskRepo, bus?: EventBus); setBus(bus: EventBus): void; /** getById with a one-shot refresh on miss: tasks created out-of-process (CLI, manager * threads) reach the in-memory cache only on refresh — callers like the cortex-run * callback may fire before any dispatch cycle has reloaded TASKS.yaml. */ private getByIdFresh; claim(taskId: string, agent: string): Promise; unclaim(taskId: string): Promise; complete(taskId: string, note?: string, options?: { skipVerify?: boolean; skipVerifyReason?: string; }): Promise; uncomplete(taskId: string): Promise; block(taskId: string, reason: string): Promise; unblock(taskId: string): Promise; pause(taskId: string): Promise; resume(taskId: string): Promise; requestApproval(taskId: string): Promise; approve(taskId: string): Promise; clearApproval(taskId: string): Promise; batchEdit(project: string, taskIds: string[], options: any): Promise; add(project: string, text: string, why: string, doneWhen: string, priority?: string, template?: string, dependsOn?: string[]): Promise; edit(project: string, options: any): Promise; decompose(project: string, taskText: string | null, subtasks: any[], taskId?: string | null, options?: { keepParent?: boolean; system?: boolean; }): Promise; } export declare const taskMutator: TaskMutator;