UNPKG

hua-sdk-lite

Version:

HUA Lite API SDK - Emotional AI Chatbot Integration

18 lines (17 loc) 646 B
import { ChatRequest, ChatResponse, HUALiteConfig, EventListener } from './types'; export declare class HUALiteClient { private apiKey; private config; private eventListeners; constructor(apiKey: string, config?: HUALiteConfig); on(event: string, listener: EventListener): void; off(event: string, listener: EventListener): void; private emit; private validateChatRequest; private makeRequest; chat(request: ChatRequest): Promise<ChatResponse>; issueKey(): Promise<string>; getApiKey(): string; getConfig(): Required<HUALiteConfig>; updateConfig(newConfig: Partial<HUALiteConfig>): void; }