@vuedapt/vuebot
Version:
VueBot - AI Chatbot Widget for easy website integration
39 lines (35 loc) • 973 B
TypeScript
import React from 'react';
interface VueBotWidgetProps {
config: VueBotConfig;
}
declare const VueBotWidget: React.FC<VueBotWidgetProps>;
//# sourceMappingURL=VueBotWidget.d.ts.map
interface VueBotConfig {
apiKey: string;
apiBaseUrl?: string;
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
primaryColor?: string;
secondaryColor?: string;
textColor?: string;
backgroundColor?: string;
botName?: string;
botAvatar?: string;
collapsed?: boolean;
showOnLoad?: boolean;
zIndex?: number;
greetingMessage?: string;
darkTheme?: boolean;
}
declare global {
interface Window {
VueBot: {
init: (config: VueBotConfig) => void;
open: () => void;
close: () => void;
toggle: () => void;
};
}
}
declare const initVueBot: (config: VueBotConfig) => void;
export { VueBotWidget as default, initVueBot };
export type { VueBotConfig };