tb-react-live-chat-loader
Version:
Implement live chat in your react app without taking a performance hit.
19 lines (18 loc) • 439 B
TypeScript
import { State } from '../types';
declare global {
interface Window {
Beacon: any;
attachEvent: any;
}
}
declare const _default: {
domain: string;
load: ({ providerKey, setState, beforeInit, onReady }: {
providerKey: string;
setState: (state: State) => void;
beforeInit?: () => void;
onReady?: () => void;
}) => boolean;
open: () => void;
};
export default _default;