UNPKG

tb-react-live-chat-loader

Version:

Implement live chat in your react app without taking a performance hit.

30 lines (29 loc) 803 B
import { State } from '../types'; declare global { interface Window { chatwootSettings: any; $chatwoot: any; chatwootSDK: { run: (options: { websiteToken: string; baseUrl: string; locale?: string; type?: 'standard' | 'expanded_bubble'; position?: 'left' | 'right'; }) => void; }; } } declare const _default: { domain: string; load: ({ providerKey, locale, setState, baseUrl, beforeInit, onReady }: { providerKey: string; locale?: string; setState: (state: State) => void; baseUrl?: string; beforeInit?: () => void; onReady?: () => void; }) => void; open: () => void; }; export default _default;