import type { AgentMessage } from '@earendil-works/pi-agent-core'; import type { TUI } from '@earendil-works/pi-tui'; import type { ChatLog } from './components/chat-log.js'; import type { TuiEventSource, TuiState } from './tui-types.js'; export declare function clearSeenStreamEvents(): void; export declare function clearSeenStreamEventsForRun(runId: string): void; export declare function dispatchAgentEvent(event: string, data: Record, state: TuiState, chatLog: ChatLog, tui: TUI, setActivityStatus: (status: string) => void, touchStreamingActivity?: () => void, onRunEnded?: () => void, onAssistantFinalized?: (message: AgentMessage, options?: { errorMessage?: string; }) => void, source?: TuiEventSource): void; export declare const DEFAULT_STREAMING_WATCHDOG_MS = 30000;