import type { FrontMcpLogger } from '../../common'; import type { ChannelInstance } from '../channel.instance'; import type { ChannelAgentCompletionSource } from '../../common/metadata/channel.metadata'; /** * Event payload from agent completion. * This is the shape the source expects from the agent emitter. */ export interface AgentCompletionEvent { agentId: string; agentName: string; status: 'success' | 'error'; durationMs?: number; output?: string; error?: string; runId?: string; /** Session that triggered this agent execution (for session-scoped delivery) */ sessionId?: string; } /** * Wires an agent-completion channel source to an agent registry emitter. * * @param channel - The channel instance to push notifications to * @param sourceConfig - The agent-completion source configuration * @param agentEmitterSubscribe - Subscribe function from the agent registry * @param logger - Logger instance * @returns Unsubscribe function */ export declare function wireAgentCompletionSource(channel: ChannelInstance, sourceConfig: ChannelAgentCompletionSource, agentEmitterSubscribe: (cb: (event: AgentCompletionEvent) => void) => () => void, logger: FrontMcpLogger): () => void; //# sourceMappingURL=agent-completion.source.d.ts.map