import type { AgentChatEvent } from "../agent/types.js"; export interface FusionAgentFeedSummary { text?: string; changedFiles: string[]; creditsUsed?: number; error?: string; } /** * Fusion tool results carry the call's id but often not its name. Remember * what each started call was named, so a result completes that call (named) * instead of being folded in as a second, unnamed "tool" step. */ export interface FusionToolCallMemory { names: Map; open: string[]; } export declare function createFusionToolCallMemory(): FusionToolCallMemory; /** Fusion step → the AN chat events the activity folder understands. */ export declare function fusionStepToAgentChatEvents(step: Record, memory?: FusionToolCallMemory): AgentChatEvent[]; export declare function createFusionAgentFeed(args: { send?: (event: AgentChatEvent) => void; agent: string; agentCallId: string; }): { summary: FusionAgentFeedSummary; onEvent(step: Record): void; finish(result: { sent: boolean; response?: string; error?: string; }): FusionAgentFeedSummary; };