import { Message, Task } from "../types.js"; import { AgentExecutionEvent } from "../event/event_bus.js"; import { TaskStore } from "../store/task_store.js"; /** * Tracks state of the current task and synchronizes updates to Momento. * Handles task, status, artifact, and message events. */ export declare class ResultManager { private taskStore; private currentTask?; private latestUserMessage?; private finalMessageResult?; constructor(taskStore: TaskStore); /** Set the latest user message to track for history. */ setContext(latestUserMessage: Message): void; /** * Handle an agent execution event and update the task accordingly. * Persists changes to Momento via TaskStore. */ processEvent(event: AgentExecutionEvent): Promise; /** Persist the current task to the task store. */ private saveCurrentTask; /** Get the final result for the request: a Message (if one was sent), or the last Task. */ getFinalResult(): Message | Task | undefined; /** Get the current in-flight task (if any). */ getCurrentTask(): Task | undefined; } //# sourceMappingURL=result_manager.d.ts.map