import type { ComponentType } from "react"; export interface ChatTopic { label: string; slug: string; } export interface ChatOptions { webhookUrl: string; webhookConfig?: { method?: "GET" | "POST"; headers?: Record; }; target?: string | Element; showWelcomeScreen?: boolean; loadPreviousSession?: boolean; chatInputKey?: string; chatSessionKey?: string; defaultLanguage?: "en"; initialMessages?: string[]; complianceNotice?: string; metadata?: Record; i18n: Record< string, { title: string; subtitle: string; footer: string; getStarted: string; inputPlaceholder: string; closeButtonTooltip: string; newChatButtonTooltip: string; [message: string]: string; } >; theme?: {}; messageComponents?: Record>>; disabled?: boolean; allowFileUploads?: boolean; allowedFilesMimeTypes?: string; enableStreaming?: boolean; enableFeedback?: boolean; topics?: ChatTopic[]; }