import type { ExtensionContext } from "@earendil-works/pi-coding-agent"; interface AgentCompletionThreadState { channelId: string; } export interface AgentCompletionRuntimeDeps { getThreads: () => Map; clearThreadStatus: (channelId: string, threadTs: string) => Promise; clearFollowUpPending: () => void; signalAgentFree: (ctx: ExtensionContext) => Promise; formatError: (error: unknown) => string; } export interface AgentCompletionRuntime { trackThinkingThread: (threadTs: string) => void; onAgentEnd: (_event: unknown, ctx: ExtensionContext) => Promise; } export declare function createAgentCompletionRuntime(deps: AgentCompletionRuntimeDeps): AgentCompletionRuntime; export {};