import type { TodoCompletionTransition, TodoItem, TodoPhase } from "./todo-types.ts";
export type TaskHit = {
    task: TodoItem;
    phase: TodoPhase;
};
export declare function findTaskByContent(phases: TodoPhase[], content: string): TaskHit | undefined;
export declare function findPhaseByName(phases: TodoPhase[], name: string): TodoPhase | undefined;
export declare function normalizeInProgressTask(phases: TodoPhase[]): void;
/** Return the active task, preferring an in-progress item over the first pending item. */
export declare function nextActionableTask(phases: readonly TodoPhase[]): TodoItem | undefined;
export declare function getCompletionTransitions(previous: readonly TodoPhase[], updated: readonly TodoPhase[]): TodoCompletionTransition[];
//# sourceMappingURL=todo-query.d.ts.map