shiza-developer-chat-embed
Version:
Javascript library to display SHIZA Developer chatbot on your website
30 lines • 918 B
TypeScript
import { observersConfigType } from './components/Bot';
import { BubbleTheme } from './features/bubble/types';
type BotProps = {
nexusId: string;
apiHost?: string;
onRequest?: (request: RequestInit) => Promise<void>;
nexusConfig?: Record<string, unknown>;
observersConfig?: observersConfigType;
theme?: BubbleTheme;
};
export declare const initFull: (props: BotProps & {
id?: string;
}) => void;
export declare const init: (props: BotProps) => void;
export declare const destroy: () => void;
type Chatbot = {
initFull: typeof initFull;
init: typeof init;
destroy: typeof destroy;
};
export declare const parseChatbot: () => {
initFull: (props: BotProps & {
id?: string;
}) => void;
init: (props: BotProps) => void;
destroy: () => void;
};
export declare const injectChatbotInWindow: (bot: Chatbot) => void;
export {};
//# sourceMappingURL=window.d.ts.map