import { PubSubEngine } from 'type-graphql';
import { AppContext } from '../types.js';
import { ResolverBase } from '../generic/ResolverBase.js';
export declare class TaskExecutionResultType {
    taskId: string;
    success: boolean;
    output?: string;
    error?: string;
}
export declare class ExecuteTaskGraphResult {
    success: boolean;
    errorMessage?: string;
    results: TaskExecutionResultType[];
}
/**
 * TaskOrchestrationResolver handles multi-step task orchestration.
 * This resolver is called when the Conversation Manager returns a task graph
 * for complex workflows that require multiple agents working in sequence or parallel.
 */
export declare class TaskOrchestrationResolver extends ResolverBase {
    /**
     * Execute a task graph from the Conversation Manager.
     * This creates tasks in the database, manages dependencies, and executes them in proper order.
     *
     * @param taskGraphJson - JSON string containing the task graph from Conversation Manager
     * @param conversationDetailId - ID of the conversation detail that triggered this workflow
     * @param environmentId - Environment ID for the tasks
     */
    ExecuteTaskGraph(taskGraphJson: string, conversationDetailId: string, environmentId: string, sessionId: string, pubSub: PubSubEngine, { userPayload }: AppContext, createNotifications?: boolean): Promise<ExecuteTaskGraphResult>;
}
//# sourceMappingURL=TaskResolver.d.ts.map