import type { WorkflowGateMode } from '../types/index.js'; import { type DelegationPacket } from './workflow-delegation.js'; import { type SupportedRuntime } from './workflow-executor.js'; export declare function setMaxConcurrentSpawns(max: number): void; export declare function getSpawnPoolStatus(): { active: number; queued: number; max: number; circuitOpen: boolean; }; export declare function acquireSpawnSlot(): Promise; export declare function releaseSpawnSlot(): void; export declare function resetSpawnPool(): void; export declare function recordSpawnSuccess(): void; export declare function recordSpawnFailure(): void; export type SpawnProcessResult = { exitCode: number; stdout: string; elapsedMs: number; }; export declare function spawnDelegated(runtime: SupportedRuntime, packet: DelegationPacket, cwd: string, gates: WorkflowGateMode, timeoutMs: number): Promise;