export declare const AGENT_CHAT_RUNNING_EVENT = "agentNative.chatRunning"; export type AgentChatPresentationPhase = "working" | "responding" | "idle"; export interface AgentChatRunningEventDetail { isRunning: boolean; phase?: AgentChatPresentationPhase; threadId?: string; tabId?: string; turnId?: string; runId?: string; /** * `"run.submitted"` marks the run this client just started for a submitted * message, which carries no successor link to any earlier run. */ reason?: string; } export interface UseAgentChatRunningThreadsOptions { apiUrl?: string; pollIntervalMs?: number; startGraceMs?: number; } export interface AgentChatRunningThreadsState { runningThreadIds: ReadonlySet; workingThreadIds: ReadonlySet; observedThreadStarts: ReadonlyMap; } export declare function resolveAgentChatRunningThreadId(detail: Partial | null | undefined): string | null; export declare function dispatchAgentChatRunning(detail: AgentChatRunningEventDetail): void; export declare function useAgentChatRunningThreads(options?: UseAgentChatRunningThreadsOptions): AgentChatRunningThreadsState;