/**
 * Pure worker state transitions for the orchestration run state machine.
 *
 * Extracted from OrchestrationStateManager (Phase 4b).
 */
import type { OrchestrationState, WorkerState } from "../contracts/index.js";
import type { TaskResult } from "../../contracts/orchestration.js";
export type WorkerTransitionEvent = {
    type: "initialize";
    nodeId: string;
    maxRetries: number;
} | {
    type: "start";
    nodeId: string;
    assignment?: WorkerState["assignment"];
} | {
    type: "complete";
    nodeId: string;
    result: TaskResult;
} | {
    type: "retry";
    nodeId: string;
} | {
    type: "fail";
    nodeId: string;
    error: string;
} | {
    type: "batch_complete";
    batchIndex: number;
    nodeIds: string[];
} | {
    type: "orchestration_complete";
    success: boolean;
};
export declare function transitionWorker(state: OrchestrationState, event: WorkerTransitionEvent): OrchestrationState;
export declare function getRunningWorkerCount(state: OrchestrationState): number;
export declare function getCompletedWorkerCount(state: OrchestrationState): number;
export declare function getFailedWorkerCount(state: OrchestrationState): number;
