import type { AgentResolver } from "./agent-resolver.js"; import type { SlotHandle, SlotManager } from "./slot-manager.js"; import type { ValidatedAgent } from "../spawner/spawn-request-builder.js"; export interface PreflightParams { agent: string; currentDepth: number; parentSessionId: string; prompt?: string; queueKey: string; surface?: "agent-delegation" | "command-process"; workingDirectory?: string; } export interface PreflightResult { queueKey: string; slotHandle: SlotHandle; validatedAgent: ValidatedAgent; } export interface DelegationDispatcherOptions { agentResolver: Pick; slotManager: Pick & Partial>; } /** Runs delegate-task v2 pre-flight checks before native Task execution. */ export declare class DelegationDispatcher { private readonly agentResolver; private readonly slotManager; constructor(options: DelegationDispatcherOptions); /** Execute concurrency, depth, and agent validation checks. */ preflightCheck(params: PreflightParams): Promise; private checkDepth; private releaseSlot; } //# sourceMappingURL=dispatcher.d.ts.map