import { type TaskEntity } from "../../core/planning/index.js";
export declare function maxNumericTaskIdFromIds(ids: Iterable<string>): number;
export declare function nextTaskId(tasks: TaskEntity[]): string;
/**
 * Build execution tasks from operator-supplied drafts (convert-wishlist-compatible rows).
 * Allocates T### ids for rows missing or holding invalid ids; rejects duplicates against the store and within the batch.
 */
export declare function buildTasksFromExecutionDrafts(args: {
    drafts: unknown;
    existingTasks: TaskEntity[];
    planningType: string;
    planRef: string;
    capturedAnswerKeys: string[];
    timestamp: string;
}): {
    ok: true;
    tasks: TaskEntity[];
} | {
    ok: false;
    code: string;
    message: string;
};
