import type { ChatState } from './types'; export type ChatSet = ( partial: Partial | ((state: ChatState) => Partial), replace?: false, ) => void; export type ChatGet = () => ChatState; export type SessionHistoryActions = Pick< ChatState, 'loadSessions' | 'switchSession' | 'newSession' | 'deleteSession' | 'cleanupEmptySession' | 'loadHistory' >; export type RuntimeActions = Pick< ChatState, 'sendMessage' | 'abortRun' | 'handleChatEvent' | 'toggleThinking' | 'refresh' | 'clearError' >;