import type { AgentBackend, AgentResponse, AgentSession } from "../agent/types.js"; import { RuntimeStateStore } from "./runtime-state.js"; import { ResponseSender, type SendResult } from "./response-sender.js"; type RunAgentInput = { runId: string; chatId: string; agent: AgentBackend; session: AgentSession; message: string; signal?: AbortSignal; }; export type RunAgentResult = { status: "response"; response: AgentResponse; } | { status: "stopped"; }; type SendFinalResponseInput = { runId: string; chatId: string; header: string; content: string; footer?: string; replyToMsgId?: string; signal?: AbortSignal; }; export declare class RunManager { private readonly runtimeState; private readonly responseSender; constructor(runtimeState: RuntimeStateStore, responseSender: ResponseSender); runAgent(input: RunAgentInput): Promise; sendFinalResponse(input: SendFinalResponseInput): Promise; private markRun; private recordRunEvent; } export {};