import type { AgentProcessManager } from '../multi-agent/agent-process-manager.js'; import type { DelegationManager } from '../multi-agent/delegation-manager.js'; import type { RawStore } from '../connectors/framework/raw-store.js'; import type { SQLiteDatabase } from '../sqlite.js'; import type { ValidationSessionService } from '../validation/session-service.js'; import type { GatewayToolResult } from './types.js'; export type DelegationRoutingContext = { agentId: string; source: string; channelId: string; }; export type AgentTestInput = { agent_id: string; sample_count?: number; test_data?: Array<{ input: string; expected?: string; }>; }; export type DelegateInput = { agentId: string; task: string; background?: boolean; skill?: string; }; export type DelegationExecutorDeps = { agentProcessManager: AgentProcessManager | null; delegationManagerRef: DelegationManager | null; rawStore?: RawStore | null; sessionsDb?: SQLiteDatabase | null; validationService?: ValidationSessionService | null; retryDelayMs: number; resolveManagedAgentId: (id: string) => string; checkViewerOnly: () => string | null; }; export declare class DelegationExecutor { private readonly deps; private readonly testInFlight; constructor(deps: DelegationExecutorDeps); runAgentTest(input: AgentTestInput, routing: DelegationRoutingContext): Promise; runDelegate(input: DelegateInput, routing: DelegationRoutingContext): Promise; private cleanupValidationSessionOnTelemetryFailure; private runAgentTestInternal; private runDelegateInternal; private sendDelegationMessageWithRetry; private buildDelegationPrompt; private withChannelHistory; } //# sourceMappingURL=delegation-executor.d.ts.map