-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathBotBubble.d.ts
More file actions
38 lines (38 loc) · 1.41 KB
/
BotBubble.d.ts
File metadata and controls
38 lines (38 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { FeedbackRatingType } from '@/queries/sendMessageQuery';
import { IAction, MessageType } from '../Bot';
import { DateTimeToggleTheme } from '@/features/bubble/types';
type Props = {
message: MessageType;
chatflowid: string;
chatId: string;
apiHost?: string;
onRequest?: (request: RequestInit) => Promise<void>;
fileAnnotations?: any;
showAvatar?: boolean;
avatarSrc?: string;
backgroundColor?: string;
textColor?: string;
chatFeedbackStatus?: boolean;
fontSize?: number;
feedbackColor?: string;
isLoading: boolean;
dateTimeToggle?: DateTimeToggleTheme;
showAgentMessages?: boolean;
sourceDocsTitle?: string;
renderHTML?: boolean;
handleActionClick: (elem: any, action: IAction | undefined | null) => void;
handleSourceDocumentsClick: (src: any) => void;
onRegenerateResponse?: () => void;
showRegenerateResponseButton?: boolean;
onRatingUpdate?: (messageId: string, rating: FeedbackRatingType) => void;
isTTSEnabled?: boolean;
isTTSLoading?: Record<string, boolean>;
isTTSPlaying?: Record<string, boolean>;
handleTTSClick?: (messageId: string, messageText: string) => void;
handleTTSStop?: (messageId: string) => void;
hasCustomHeader?: boolean;
dialogContainer?: HTMLElement;
};
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
export {};
//# sourceMappingURL=BotBubble.d.ts.map