import type { InstanceStatus, RunGroup, RunGroupStatus, RunInstance } from "@skaile/workspaces/types"; /** * Counters per status plus the group-status transition to apply * (null = none). Batch only, when all instances are terminal: any failed * -> `failed`; else all cancelled (no completes) -> `cancelled`; else * `complete` (mixed complete + cancelled counts as `complete`). `active` * is the reverse transition after retry_instance re-queues on a terminal * group - deliberately only from `complete`/`failed`: a `cancelled` group * never reactivates (cancel_group is a final host command; a cancelled * group's instances cannot be retried). Standing groups never * auto-transition (pause/close are host commands). Rollup owns * reactivation - hosts re-run it after every mutation, including retries. */ export declare function rollup(group: RunGroup, instances: RunInstance[]): { counters: Record; groupStatus: RunGroupStatus | null; }; //# sourceMappingURL=rollup.d.ts.map