/** * useGateway Hook * * Manages the gateway background service within the Ink interactive UI. * Listens for remote requests and translates gateway events into * messages/state that the App can render alongside local interactions. */ import type { ToolCallRecord } from '../components/ToolCallIndicator.js'; export interface RemoteRequest { requestId: string; clientType: string; message: string; } export interface UseGatewayOptions { enabled: boolean; pollInterval?: number; sessionName?: string; debug?: boolean; mcpState?: unknown; onMcpToolCall?: unknown; mcpClient?: unknown; } export interface CompletedRemoteExchange { userMessage: string; assistantContent: string; clientType: string; } export interface UseGatewayReturn { isOnline: boolean; isProcessingRemote: boolean; remoteRequest: RemoteRequest | null; remoteStreamingText: string; remoteToolCallHistory: ToolCallRecord[]; remoteError: string | null; completedCount: number; statusMessage: string | null; lastCompletedExchange: CompletedRemoteExchange | null; clearCompletedExchange: () => void; } export declare function useGateway(options: UseGatewayOptions): UseGatewayReturn; //# sourceMappingURL=useGateway.d.ts.map