@restnfeel/agentc-starter-kit
Version:
한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템
37 lines • 1.32 kB
TypeScript
import { Message } from "./chat-dock";
import { ChatbotAPIError } from "../../../../services/chatbot-api";
import { ThemeName } from "./theme-config";
interface ChatbotWidgetProps {
apiBaseUrl?: string;
apiKey?: string;
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
buttonSize?: "sm" | "md" | "lg";
buttonColor?: string;
title?: string;
placeholder?: string;
enableSuggestedQuestions?: boolean;
enableTypingIndicator?: boolean;
enableRetry?: boolean;
maxRetries?: number;
className?: string;
disabled?: boolean;
onError?: (error: ChatbotAPIError) => void;
onMessageSent?: (message: string) => void;
onMessageReceived?: (message: Message) => void;
theme?: ThemeName;
language?: string;
enableLanguageSelector?: boolean;
enableThemeToggle?: boolean;
}
export declare function useChatbotWidget(): {
isOpen: boolean;
messages: Message[];
unreadCount: number;
openChat: () => void;
closeChat: () => void;
clearMessages: () => void;
addMessage: (message: Omit<Message, "id">) => Message;
};
export declare function ChatbotWidget({ theme, language, ...props }: ChatbotWidgetProps): import("react/jsx-runtime").JSX.Element;
export default ChatbotWidget;
//# sourceMappingURL=chatbot-widget.d.ts.map