export declare class TaskRunDispatcher { #private; private readonly deps; constructor(deps: { workerId: string; maxConcurrency?: number; ensureSession: (taskId: string, runId: string, agentId?: string) => Promise; runAgent: (runId: string, conversationId: string, message: string) => Promise; }); dispatch(): void; stop(): void; drain(): Promise; private reconcileExpiredRuns; private drainSlot; } export declare function buildTaskRunMessage(objective: string, trigger: Record, body?: string): string;