// Type definitions for react-chat-widget v3.0.0 // Project: // Definitions by: Martín Callegari import { ElementType } from 'react'; declare const Widget: React.ComponentType; export function addUserMessage(text: string): void; export function addUserMessage(text: string, id: string): void; export function addResponseMessage(text: string): void; export function addResponseMessage(text: string, id: string): void; export function addLinkSnippet(link: { link: string, title: string, target?: string, linkMask?: string }): void; export function addLinkSnippet(link: { link: string, title: string, target?: string, linkMask?: string }, id: string): void; export function renderCustomComponent(component: ElementType, props: any): void; export function renderCustomComponent(component: ElementType, props: any, showAvatar: boolean): void; export function renderCustomComponent(component: ElementType, props: any, showAvatar: boolean, id: string): void; export function toggleMsgLoader(): void; export function toggleWidget(): void; export function toggleInputDisabled(value: boolean): void; export function toggleForcedScreenRecorder(value: boolean): void; export function togglePasteEnabled(value: boolean): void; export function setMinCharLimit(value: number | null): void; export function dropMessages(): void; export function isWidgetOpened(): boolean; export function setQuickButtons(buttons: Array<{ label: string, value: string | number }>): void; export function deleteMessages(count: number): void; export function deleteMessages(count: number, id: string): void; export function markAllAsRead(): void; export function setBadgeCount(count: number): void; export as namespace ReactChatWidget; // declare module 'react-chat-widget-custom' { // export const Widget: React.ComponentType; // }