import { z } from 'zod';
import { runAgentSchema, type RunAgentInternalArgs } from '../../tools/run_agent.js';
export type AgentSpec = z.infer<typeof runAgentSchema> & {
    taskId?: string;
};
export type { RunAgentInternalArgs };
export interface DispatchOptions {
    waitAll: boolean;
}
export interface AgentDispatchResult {
    label: string;
    runner: string;
    agentName?: string;
    status: 'success' | 'error';
    elapsed: string;
    result: string;
}
export declare function runAgentsLocally(agents: AgentSpec[], opts: DispatchOptions): Promise<{
    content: [{
        type: 'text';
        text: string;
    }];
    isError: boolean;
}>;
export declare function dispatchAgents(agents: AgentSpec[], opts: DispatchOptions): Promise<{
    content: [{
        type: "text";
        text: string;
    }];
    isError: boolean;
}>;
//# sourceMappingURL=dispatcher.d.ts.map