terminal-chat-ui
Version:
Shared UI components for terminal-based chat interfaces using Theater actors
17 lines (16 loc) • 577 B
TypeScript
/**
* useTheaterSession - centralized Theater connection and session management
*/
import type { ChatSession, ChannelStream, SetupStatus, TheaterConfig } from '../types/common.js';
/**
* Hook for managing Theater actor sessions and channel communication
*/
export declare function useTheaterSession(client: any, config: TheaterConfig): {
setupStatus: SetupStatus;
setupMessage: string;
session: ChatSession | null;
channel: ChannelStream | null;
sendMessage: (message: string) => Promise<any>;
cleanup: () => Promise<void>;
isReady: boolean;
};