import type { WorkflowGraphNode } from "../workflow-graph-model.js";
import type { NestedTaskEntry } from "./NestedTaskList.js";
export interface UseNestedTaskEditorInput {
    /** The container node (fork, try_catch, or for_each). */
    readonly node: WorkflowGraphNode;
    /** Dot-notation path to the nested array within config (e.g. "branches.0.do", "try", "catch.do", "do"). */
    readonly arrayPath: string;
}
export interface UseNestedTaskEditorReturn {
    /** Parsed task entries from the nested array. */
    readonly tasks: readonly NestedTaskEntry[];
    /** Reorder a task within the nested array. */
    readonly reorder: (fromIndex: number, toIndex: number) => void;
    /** Remove a task at the given index. */
    readonly remove: (index: number) => void;
}
/**
 * Behavior hook for managing a nested task array in a container node's config.
 *
 * Parses tasks from the specified config path and provides reorder/remove
 * operations that dispatch graph commands through the canvas actions context.
 *
 * @since T09 (Branch Management UX)
 */
export declare function useNestedTaskEditor({ node, arrayPath, }: UseNestedTaskEditorInput): UseNestedTaskEditorReturn;
//# sourceMappingURL=useNestedTaskEditor.d.ts.map