import type { ThreadTask, ThreadMessage } from '../types.js';
/**
 * Decide where a new send_back message should land in the form's tasks array.
 *
 * If there is already an open clarifications task (one whose `parent_task_id`
 * matches and whose `status !== 'completed'`), append the message to that task.
 * Otherwise, ask the caller to build a fresh clarifications task and append it
 * to the array.
 *
 * Pure: returns a new array; never mutates the input.
 */
export declare function merge_send_back_message(tasks: ThreadTask[], parent_task_id: string, new_msg: ThreadMessage, build_new_task: (msg: ThreadMessage) => ThreadTask): ThreadTask[];
//# sourceMappingURL=merge_send_back.d.ts.map