UNPKG

touchstage-client

Version:

A customizable chat widget for providing interactive in-app tours and user guidance

32 lines (27 loc) 996 B
declare module 'touchstage-client' { export interface InitConfig { apiKey: string; productId: string; userId: string; userEmail?: string; userName?: string; userRole?: string[]; userPlan?: string; userTenantId?: string; isDarkMode?: boolean; showChatButton?: boolean; initialVisible?: boolean; additionalData?: Record<string, any>; } export interface WidgetOptions { showChatButton?: boolean; initialVisible?: boolean; } export function initChatWidget(config: InitConfig): Promise<void>; export function setUserData(userData: InitConfig, widgetOptions?: WidgetOptions): void; export function openChatWidget(): Promise<boolean>; export function closeChatWidget(): Promise<boolean>; export function toggleChatWidget(): Promise<boolean>; export function isChatWidgetVisible(): Promise<boolean>; } declare module 'touchstage-client/style.css';