UNPKG

@infomatebot/chatbot-widget

Version:

Build intelligent chatbots using pre-designed conversation flows with quick reply options. Upload documents for AI-powered, context-aware responses and reduce support costs by 80% with guided conversations

28 lines 1.33 kB
export type { ChatbotConfig, ChatbotEvents, ChatbotActionPayload, ChatbotActionCallback, ChatbotActionResponse } from './types/public.types'; export { VERSION } from './constants/defaults'; export interface ChatbotInstance { element: HTMLElement; isReady(): boolean; on<K extends keyof import('./types/public.types').ChatbotEvents>(eventType: K, handler: (event: import('./types/public.types').ChatbotEvents[K]) => void): void; off<K extends keyof import('./types/public.types').ChatbotEvents>(eventType: K, handler: (event: import('./types/public.types').ChatbotEvents[K]) => void): void; once<K extends keyof import('./types/public.types').ChatbotEvents>(eventType: K, handler: (event: import('./types/public.types').ChatbotEvents[K]) => void): void; } export declare function initialize(config: { apiUrl: string; apiKey: string; container?: HTMLElement; }): ChatbotInstance; export declare function create(config: { apiUrl: string; apiKey: string; container?: HTMLElement; }): Promise<ChatbotInstance>; export declare function isSupported(): boolean; export declare const version = "1.0.5"; export declare const InfoMateAPI: { initialize: typeof initialize; create: typeof create; isSupported: typeof isSupported; version: string; }; //# sourceMappingURL=index.d.ts.map