import type { AgentAPI } from '../../api/agents.js'; import type { ProfileConfig, HistoryEntry, TurnEntry } from '../../api/types.js'; interface PanelOpts { api: AgentAPI; agentId: string; channel: string; lang: 'cn' | 'global'; config: ProfileConfig; onExit: () => Promise; _sharedState?: PanelState; ptt?: boolean; wsBroadcast?: (msg: Record) => void; } interface TranscriptEntry { role: 'user' | 'assistant'; text: string; turnId: number; final: boolean; interrupted: boolean; } interface PanelState { history: HistoryEntry[]; turns: TurnEntry[]; inSubmenu: boolean; printedCount: number; transcriptEntries: TranscriptEntry[]; transcriptPrintedCount: number; ephemeral: TranscriptEntry | null; lastEphemeralText: string; hasLiveTranscript: boolean; } export declare function runPanel(opts: PanelOpts): Promise; export declare function handleTranscriptMessage(state: PanelState, msg: Record): void; export {};