/** * Batch Command Executor * * Executes multiple commands as a single atomic operation wrapped in a * transaction. A single undo reverts the entire batch. * * @module commands/batch */ import type { Command, CommandContext, BatchResult } from './types.js'; /** * Execute an array of commands as a single atomic transaction. * * - Calls dispatch.startTransaction() before the first command * - Re-reads workflow via context.getWorkflow() before each command * - On success of all: calls dispatch.commitTransaction() * - On first error: calls dispatch.cancelTransaction() and stops */ export declare function executeBatch(commands: Command[], context: CommandContext): BatchResult;