@cometchat/chat-uikit-react 6.1.2 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/assets/Profile.png +0 -0
  2. package/dist/assets/chat-history.svg +3 -0
  3. package/dist/assets/copy-text.svg +3 -0
  4. package/dist/assets/message_blocked.svg +8 -0
  5. package/dist/assets/new-chat.svg +3 -0
  6. package/dist/assets/right-arrow.svg +3 -0
  7. package/dist/assets/send-message.svg +3 -0
  8. package/dist/assets/stop-message.svg +3 -0
  9. package/dist/assets/warning-small.svg +0 -0
  10. package/dist/index.d.ts +447 -198
  11. package/dist/index.js +9 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/styles/CometChatAIAssistantChat.css +465 -0
  14. package/dist/styles/CometChatAIAssistantChatHistory.css +175 -0
  15. package/dist/styles/CometChatAIAssistantMessageBubble.css +118 -0
  16. package/dist/styles/CometChatConversations.css +19 -0
  17. package/dist/styles/CometChatErrorView.css +22 -0
  18. package/dist/styles/CometChatMessageComposer.css +9 -9
  19. package/dist/styles/CometChatMessageHeader.css +2 -4
  20. package/dist/styles/CometChatMessageList.css +34 -19
  21. package/dist/styles/CometChatModerationView.css +25 -0
  22. package/dist/styles/CometChatSearch.css +13 -0
  23. package/dist/styles/CometChatStreamMessageBubble.css +183 -0
  24. package/dist/styles/CometChatToolCallArgumentBubble.css +100 -0
  25. package/dist/styles/CometChatToolCallResultBubble.css +91 -0
  26. package/dist/styles/components/CometChatAIAssistantChat.css +465 -0
  27. package/dist/styles/components/CometChatAIAssistantChatHistory.css +175 -0
  28. package/dist/styles/components/CometChatAIAssistantMessageBubble.css +118 -0
  29. package/dist/styles/components/CometChatConversations.css +19 -0
  30. package/dist/styles/components/CometChatErrorView.css +22 -0
  31. package/dist/styles/components/CometChatMessageComposer.css +9 -9
  32. package/dist/styles/components/CometChatMessageHeader.css +2 -4
  33. package/dist/styles/components/CometChatMessageList.css +34 -19
  34. package/dist/styles/components/CometChatModerationView.css +25 -0
  35. package/dist/styles/components/CometChatSearch.css +13 -0
  36. package/dist/styles/components/CometChatStreamMessageBubble.css +183 -0
  37. package/dist/styles/components/CometChatToolCallArgumentBubble.css +100 -0
  38. package/dist/styles/components/CometChatToolCallResultBubble.css +91 -0
  39. package/dist/styles/components/index.css +9 -2
  40. package/dist/styles/css-variables.css +5 -0
  41. package/dist/styles/index.css +9 -2
  42. package/dist/types/components/BaseComponents/CometChatAIAssistantMessageBubble/CometChatAIAssistantMessageBubble.d.ts +6 -0
  43. package/dist/types/components/BaseComponents/CometChatErrorView/CometChatErrorView.d.ts +9 -0
  44. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +7 -0
  45. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +1 -0
  46. package/dist/types/components/BaseComponents/CometChatModerationView/CometChatModerationView.d.ts +2 -0
  47. package/dist/types/components/BaseComponents/CometChatSendButtonView/CometChatSendButtonView.d.ts +4 -0
  48. package/dist/types/components/BaseComponents/CometChatStreamMessageBubble/CometChatStreamMessageBubble.d.ts +6 -0
  49. package/dist/types/components/BaseComponents/CometChatToolCallArgumentBubble/CometChatToolCallArgumentBubble.d.ts +6 -0
  50. package/dist/types/components/BaseComponents/CometChatToolCallResultBubble/CometChatToolCallResultBubble.d.ts +6 -0
  51. package/dist/types/components/CometChatAIAssistantChat/CometChatAIAssistantChat.d.ts +30 -0
  52. package/dist/types/components/CometChatAIAssistantChatHistory/CometChatAIAssistantChatHistory.d.ts +24 -0
  53. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
  54. package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +2 -0
  55. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +24 -14
  56. package/dist/types/components/CometChatMessageList/CometChatMessageListController.d.ts +3 -2
  57. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  58. package/dist/types/constants/CometChatUIKitConstants.d.ts +21 -0
  59. package/dist/types/events/CometChatMessageEvents.d.ts +4 -0
  60. package/dist/types/index.d.ts +7 -0
  61. package/dist/types/modals/CometChatAIAssistantTools.d.ts +47 -0
  62. package/dist/types/modals/CometChatMessageTemplate.d.ts +1 -1
  63. package/dist/types/services/stream-message.service.d.ts +44 -0
  64. package/dist/types/utils/DataSource.d.ts +9 -1
  65. package/dist/types/utils/DataSourceDecorator.d.ts +9 -1
  66. package/dist/types/utils/MessageReceiptUtils.d.ts +1 -1
  67. package/dist/types/utils/MessageUtils.d.ts +6 -0
  68. package/dist/types/utils/MessagesDataSource.d.ts +15 -6
  69. package/dist/types/utils/util.d.ts +9 -0
  70. package/package.json +7 -3
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
- import React__default, { JSX, ReactNode, FC } from 'react';
2
+ import React__default, { JSX as JSX$1, ReactNode, FC } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
5
+ import * as rxjs from 'rxjs';
5
6
  import { Subject } from 'rxjs';
6
7
 
7
8
  /**
@@ -344,7 +345,7 @@ interface MentionsProps {
344
345
  * @param item - An instance of CometChat.User or CometChat.GroupMember to be rendered
345
346
  * @returns A JSX element representing the custom item view
346
347
  */
347
- itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
348
+ itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX$1.Element;
348
349
  /**
349
350
  * The search keyword used to filter users or group members.
350
351
  */
@@ -358,7 +359,7 @@ interface MentionsProps {
358
359
  * @param item - An instance of CometChat.User or CometChat.GroupMember
359
360
  * @returns A JSX element representing the custom subtitle view
360
361
  */
361
- subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
362
+ subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX$1.Element;
362
363
  /**
363
364
  * A request builder to fetch users with custom parameters.
364
365
  */
@@ -450,10 +451,10 @@ declare class CalendarObject {
450
451
  declare class OutgoingCallConfiguration {
451
452
  disableSoundForCalls?: boolean;
452
453
  customSoundForCalls?: string;
453
- titleView?: (call: CometChat.Call) => JSX.Element;
454
- subtitleView?: (call: CometChat.Call) => JSX.Element;
455
- avatarView?: (call: CometChat.Call) => JSX.Element;
456
- cancelButtonView?: (call: CometChat.Call) => JSX.Element;
454
+ titleView?: (call: CometChat.Call) => JSX$1.Element;
455
+ subtitleView?: (call: CometChat.Call) => JSX$1.Element;
456
+ avatarView?: (call: CometChat.Call) => JSX$1.Element;
457
+ cancelButtonView?: (call: CometChat.Call) => JSX$1.Element;
457
458
  onError?: (error: CometChat.CometChatException) => void;
458
459
  onCallCanceled?: Function;
459
460
  constructor(configuration: OutgoingCallConfiguration);
@@ -1078,7 +1079,7 @@ declare class CometChatActionsView extends CometChatActions {
1078
1079
  * User-defined component to customize the action view for each option in the template.
1079
1080
  * @type {callbacks: any) => Element | JSX.Element | undefined}
1080
1081
  */
1081
- customView?: (callbacks: any) => Element | JSX.Element;
1082
+ customView?: (callbacks: any) => Element | JSX$1.Element;
1082
1083
  /**
1083
1084
  * Creates an instance of CometChatActionsView.
1084
1085
  */
@@ -1102,7 +1103,7 @@ declare class CometChatActionsView extends CometChatActions {
1102
1103
  * User-defined component to customize the action view. This is optional and can be omitted.
1103
1104
  * @type {Element | JSX.Element}
1104
1105
  */
1105
- customView?: (callbacks: any) => Element | JSX.Element;
1106
+ customView?: (callbacks: any) => Element | JSX$1.Element;
1106
1107
  });
1107
1108
  }
1108
1109
 
@@ -1254,36 +1255,36 @@ declare class CometChatMessageTemplate {
1254
1255
  * and Video bubble based on the type of the message.
1255
1256
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1256
1257
  */
1257
- contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX.Element | null) | null;
1258
+ contentView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, textFormatters?: CometChatTextFormatter[]) => Element | JSX$1.Element | null) | null;
1258
1259
  /**
1259
1260
  * Custom component to customize the complete message bubble.
1260
1261
  * By default, headerView, contentView and footerView collectively form a message bubble.
1261
1262
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1262
1263
  */
1263
- bubbleView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1264
+ bubbleView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1264
1265
  /**
1265
1266
  * Custom component to customize the header section for each message bubble.
1266
1267
  * By default, it displays the message sender's name.
1267
1268
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1268
1269
  */
1269
- headerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1270
+ headerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1270
1271
  /**
1271
1272
  * Custom component to customize the footer section for each message bubble.
1272
1273
  * By default, it displays the reactions.
1273
1274
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1274
1275
  */
1275
- footerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1276
+ footerView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1276
1277
  /**
1277
1278
  * Custom component to customize the bottom view section for each message bubble.
1278
1279
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1279
1280
  */
1280
- bottomView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX.Element | null) | null;
1281
+ bottomView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment) => Element | JSX$1.Element | null) | null;
1281
1282
  /**
1282
1283
  * Custom component to customize the status info section for each message bubble.
1283
1284
  * By default, it displays the receipt and the timestamp.
1284
1285
  * @type {(message:CometChat.BaseMessage,alignment:MessageBubbleAlignment)=> Element | JSX.Element | null}
1285
1286
  */
1286
- statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => Element | JSX.Element | null) | null;
1287
+ statusInfoView: ((message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean) => Element | JSX$1.Element | null) | null;
1287
1288
  /**
1288
1289
  * List of available actions that any user can perform on a message, like reacting,
1289
1290
  * editing or deleting a message.
@@ -1409,11 +1410,11 @@ declare class MessagesDataSource implements DataSource {
1409
1410
  * @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
1410
1411
  * @returns {JSX.Element | null} Returns JSX.Element for receipt of a message bubble or null
1411
1412
  */
1412
- getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean) => JSX.Element | null;
1413
+ getBubbleStatusInfoReceipt: (item: CometChat.BaseMessage, hideReceipts?: boolean, showError?: boolean) => JSX$1.Element | null;
1413
1414
  /**
1414
- * Function for displaying the timestamp next to messages.
1415
- * @returns CalendarObject
1416
- */
1415
+ * Function for displaying the timestamp next to messages.
1416
+ * @returns CalendarObject
1417
+ */
1417
1418
  getMessageSentAtDateFormat(messageSentAtDateTimeFormat?: CalendarObject): {
1418
1419
  today: string;
1419
1420
  yesterday: string;
@@ -1431,10 +1432,19 @@ declare class MessagesDataSource implements DataSource {
1431
1432
  * @param {CometChat.BaseMessage} item - The message bubble for which the information needs to be fetched
1432
1433
  * @returns {JSX.Element | null} Returns JSX.Element for status and date of a message bubble or null
1433
1434
  */
1434
- getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX.Element | null;
1435
- getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject) => react_jsx_runtime.JSX.Element | null;
1435
+ getBubbleStatusInfoDate: (item: CometChat.BaseMessage, messageSentAtDateTimeFormat?: CalendarObject) => JSX$1.Element | null;
1436
+ getStatusInfoView: (_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean) => react_jsx_runtime.JSX.Element | null;
1436
1437
  getBottomView(_messageObject: CometChat.BaseMessage, _alignment: MessageBubbleAlignment): null;
1437
1438
  getTextMessageTemplate(additionalConfigurations?: additionalParams): CometChatMessageTemplate;
1439
+ getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage): react_jsx_runtime.JSX.Element;
1440
+ getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage): react_jsx_runtime.JSX.Element;
1441
+ getToolResultsMessageBubble(message: CometChat.AIToolResultMessage): react_jsx_runtime.JSX.Element;
1442
+ handleCopy: (message: CometChat.AIAssistantMessage) => void;
1443
+ getAgentAssistantMessageTemplate(): CometChatMessageTemplate;
1444
+ getToolResultsMessageTemplate(): CometChatMessageTemplate;
1445
+ getToolArgumentsMessageTemplate(): CometChatMessageTemplate;
1446
+ getStreamMessageBubble(message: CometChat.CustomMessage): react_jsx_runtime.JSX.Element;
1447
+ getStreamMessageTemplate(): CometChatMessageTemplate;
1438
1448
  getAudioMessageTemplate(): CometChatMessageTemplate;
1439
1449
  getVideoMessageTemplate(): CometChatMessageTemplate;
1440
1450
  getImageMessageTemplate(): CometChatMessageTemplate;
@@ -1451,18 +1461,18 @@ declare class MessagesDataSource implements DataSource {
1451
1461
  getAllMessageCategories(additionalConfigurations?: {
1452
1462
  hideGroupActionMessages?: boolean;
1453
1463
  }): Array<string>;
1454
- getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
1464
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX$1.Element | undefined;
1455
1465
  getId(): string;
1456
- getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX.Element | Element;
1457
- getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1458
- getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1459
- getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1460
- getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1466
+ getTextMessageContentView(message: CometChat.TextMessage, _alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): JSX$1.Element | Element;
1467
+ getAudioMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1468
+ getFileMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1469
+ getImageMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1470
+ getVideoMessageContentView(message: CometChat.MediaMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1461
1471
  getActionMessage(message: any): string;
1462
1472
  getDeleteMessageBubble(message: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): react_jsx_runtime.JSX.Element;
1463
1473
  getGroupActionBubble(message: CometChat.BaseMessage): react_jsx_runtime.JSX.Element;
1464
- getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX.Element;
1465
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1474
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: additionalParams): Element | JSX$1.Element;
1475
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
1466
1476
  /**
1467
1477
  * Function to check mimeType and return the iconUrl of that type
1468
1478
  * @param mimeType
@@ -1475,16 +1485,16 @@ declare class MessagesDataSource implements DataSource {
1475
1485
  * @returns
1476
1486
  */
1477
1487
  getFileSize: (sizeInBytes: number) => string;
1478
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
1488
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
1479
1489
  getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function): react_jsx_runtime.JSX.Element;
1480
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX.Element;
1490
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function): Element | JSX$1.Element;
1481
1491
  imageAttachmentOption(): CometChatMessageComposerAction;
1482
1492
  videoAttachmentOption(): CometChatMessageComposerAction;
1483
1493
  audioAttachmentOption(): CometChatMessageComposerAction;
1484
1494
  fileAttachmentOption(): CometChatMessageComposerAction;
1485
1495
  getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): Array<CometChatMessageComposerAction>;
1486
1496
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations: additionalParams): string;
1487
- getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
1497
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
1488
1498
  /**
1489
1499
  * Adds styled @ for every mention in the text by matching uid
1490
1500
  *
@@ -1498,15 +1508,15 @@ declare class MessagesDataSource implements DataSource {
1498
1508
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
1499
1509
  getMentionsTextFormatter(params: additionalParams): CometChatMentionsFormatter;
1500
1510
  getUrlTextFormatter(params?: additionalParams): CometChatUrlsFormatter;
1501
- getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1502
- getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1503
- getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
1511
+ getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1512
+ getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1513
+ getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1504
1514
  getFormMessageTemplate(): CometChatMessageTemplate;
1505
1515
  getSchedulerMessageTemplate(): CometChatMessageTemplate;
1506
1516
  getCardMessageTemplate(): CometChatMessageTemplate;
1507
- getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1508
- getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1509
- getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX.Element;
1517
+ getFormMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1518
+ getSchedulerMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1519
+ getCardMessageContentView(message: CometChat.InteractiveMessage, _alignment: MessageBubbleAlignment): Element | JSX$1.Element;
1510
1520
  }
1511
1521
 
1512
1522
  /**
@@ -1995,13 +2005,17 @@ declare abstract class DataSource {
1995
2005
  abstract getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1996
2006
  abstract getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1997
2007
  abstract getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
1998
- abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX.Element | null;
1999
- abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject): Element | JSX.Element | null;
2000
- abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX.Element;
2001
- abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2002
- abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2003
- abstract getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2004
- abstract getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2008
+ abstract getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element | null;
2009
+ abstract getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): Element | JSX$1.Element | null;
2010
+ abstract getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, otherParams: Object | undefined): Element | JSX$1.Element;
2011
+ abstract getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2012
+ abstract getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2013
+ abstract getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2014
+ abstract getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2015
+ abstract getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2016
+ abstract getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2017
+ abstract getToolResultsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2018
+ abstract getStreamMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2005
2019
  abstract getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2006
2020
  abstract getImageMessageTemplate(): CometChatMessageTemplate;
2007
2021
  abstract getVideoMessageTemplate(): CometChatMessageTemplate;
@@ -2015,30 +2029,34 @@ declare abstract class DataSource {
2015
2029
  abstract getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): CometChatMessageComposerAction[];
2016
2030
  abstract getAllMessageTypes(): Array<string>;
2017
2031
  abstract getAllMessageCategories(additionalConfigurations?: Object | undefined): Array<string>;
2018
- abstract getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
2032
+ abstract getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX$1.Element | undefined;
2019
2033
  abstract getId(): string;
2020
- abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2021
- abstract getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX.Element;
2022
- abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX.Element;
2023
- abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2024
- abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2025
- abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2026
- abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX.Element;
2034
+ abstract getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2035
+ abstract getGroupActionBubble(message: CometChat.BaseMessage): Element | JSX$1.Element;
2036
+ abstract getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2037
+ abstract getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2038
+ abstract getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2039
+ abstract getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2040
+ abstract getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): Element | JSX$1.Element;
2041
+ abstract getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2042
+ abstract getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2043
+ abstract getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2044
+ abstract getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): Element | JSX$1.Element;
2027
2045
  abstract getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
2028
- abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
2046
+ abstract getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
2029
2047
  abstract getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
2030
2048
  abstract getMentionsTextFormatter(params: Object): CometChatMentionsFormatter;
2031
2049
  abstract getUrlTextFormatter(params: Object): CometChatUrlsFormatter;
2032
2050
  abstract getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations?: Object | undefined): string;
2033
- abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2034
- abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2035
- abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2051
+ abstract getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2052
+ abstract getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2053
+ abstract getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2036
2054
  abstract getFormMessageTemplate(): CometChatMessageTemplate;
2037
2055
  abstract getSchedulerMessageTemplate(): CometChatMessageTemplate;
2038
2056
  abstract getCardMessageTemplate(): CometChatMessageTemplate;
2039
- abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2040
- abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2041
- abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX.Element;
2057
+ abstract getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2058
+ abstract getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2059
+ abstract getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): Element | JSX$1.Element;
2042
2060
  }
2043
2061
 
2044
2062
  interface CometChatUiKit {
@@ -2199,14 +2217,18 @@ declare abstract class DataSourceDecorator implements DataSource {
2199
2217
  getVideoMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2200
2218
  getAudioMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2201
2219
  getFileMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, group?: CometChat.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
2202
- getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject): JSX.Element | Element | null;
2203
- getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX.Element | Element | null;
2204
- getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
2205
- getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2206
- getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2207
- getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2208
- getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2220
+ getStatusInfoView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment, hideReceipts?: boolean, messageSentAtDateTimeFormat?: CalendarObject, showError?: boolean): JSX$1.Element | Element | null;
2221
+ getBottomView(message: CometChat.BaseMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element | null;
2222
+ getTextMessageContentView(message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2223
+ getImageMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2224
+ getVideoMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2225
+ getAudioMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2226
+ getFileMessageContentView(message: CometChat.MediaMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2209
2227
  getTextMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2228
+ getAgentAssistantMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2229
+ getToolArgumentsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2230
+ getToolResultsMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2231
+ getStreamMessageTemplate(additionalConfigurations?: Object | undefined): CometChatMessageTemplate;
2210
2232
  getImageMessageTemplate(): CometChatMessageTemplate;
2211
2233
  getVideoMessageTemplate(): CometChatMessageTemplate;
2212
2234
  getAudioMessageTemplate(): CometChatMessageTemplate;
@@ -2219,30 +2241,34 @@ declare abstract class DataSourceDecorator implements DataSource {
2219
2241
  getAttachmentOptions(id: ComposerId, additionalConfigurations?: any): CometChatMessageComposerAction[];
2220
2242
  getAllMessageTypes(): string[];
2221
2243
  getAllMessageCategories(additionalConfigurations?: Object | undefined): string[];
2222
- getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX.Element | undefined;
2244
+ getStickerButton(id: ComposerId, user?: CometChat.User, group?: CometChat.Group): JSX$1.Element | undefined;
2223
2245
  getId(): string;
2224
- getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2225
- getGroupActionBubble(message: CometChat.BaseMessage): JSX.Element | Element;
2226
- getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX.Element | Element;
2227
- getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2228
- getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2229
- getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2230
- getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX.Element | Element;
2246
+ getDeleteMessageBubble(messageObject: CometChat.BaseMessage, text?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2247
+ getGroupActionBubble(message: CometChat.BaseMessage): JSX$1.Element | Element;
2248
+ getTextMessageBubble(messageText: string, message: CometChat.TextMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2249
+ getAgentAssistantMessageBubble(message: CometChat.AIAssistantMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2250
+ getToolArgumentsMessageBubble(message: CometChat.AIToolArgumentMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2251
+ getToolResultsMessageBubble(message: CometChat.AIToolResultMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2252
+ getStreamMessageBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignment, additionalConfigurations?: Object | undefined): JSX$1.Element | Element;
2253
+ getVideoMessageBubble(videoUrl: string, message: CometChat.MediaMessage, thumbnailUrl?: string, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2254
+ getImageMessageBubble(imageUrl: string, placeholderImage: string, message: CometChat.MediaMessage, onClick?: Function, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2255
+ getAudioMessageBubble(audioUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2256
+ getFileMessageBubble(fileUrl: string, message: CometChat.MediaMessage, title?: string, alignment?: MessageBubbleAlignment): JSX$1.Element | Element;
2231
2257
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: additionalParams): string;
2232
- getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX.Element[];
2258
+ getAuxiliaryHeaderMenu(user?: CometChat.User, group?: CometChat.Group, additionalConfigurations?: any): Element[] | JSX$1.Element[];
2233
2259
  getAllTextFormatters(formatterParams: additionalParams): CometChatTextFormatter[];
2234
2260
  getMentionsTextFormatter(params?: Object): CometChatMentionsFormatter;
2235
2261
  getUrlTextFormatter(params?: Object): CometChatUrlsFormatter;
2236
2262
  getMentionsFormattedText(message: CometChat.TextMessage, subtitle: string, additionalConfigurations: Object): string;
2237
- getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2238
- getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2239
- getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2263
+ getFormMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2264
+ getSchedulerMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2265
+ getCardMessageContentView(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2240
2266
  getFormMessageTemplate(): CometChatMessageTemplate;
2241
2267
  getSchedulerMessageTemplate(): CometChatMessageTemplate;
2242
2268
  getCardMessageTemplate(): CometChatMessageTemplate;
2243
- getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2244
- getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2245
- getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX.Element | Element;
2269
+ getFormMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2270
+ getSchedulerMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2271
+ getCardMessageBubble(message: CometChat.InteractiveMessage, alignment: MessageBubbleAlignment): JSX$1.Element | Element;
2246
2272
  }
2247
2273
 
2248
2274
  interface ListProps<T> {
@@ -2251,7 +2277,7 @@ interface ListProps<T> {
2251
2277
  *
2252
2278
  * @defaultValue `""`
2253
2279
  */
2254
- headerView?: JSX.Element;
2280
+ headerView?: JSX$1.Element;
2255
2281
  /**
2256
2282
  * Hide the search bar
2257
2283
  *
@@ -2286,7 +2312,7 @@ interface ListProps<T> {
2286
2312
  /**
2287
2313
  * Custom list item view to be rendered for each object in the `list` prop
2288
2314
  */
2289
- itemView: (item: T, itemIndex: number) => JSX.Element;
2315
+ itemView: (item: T, itemIndex: number) => JSX$1.Element;
2290
2316
  /**
2291
2317
  * Function to call when the scrollbar is at the top-most position of the scrollable list
2292
2318
  */
@@ -2326,7 +2352,7 @@ interface ListProps<T> {
2326
2352
  /**
2327
2353
  * Custom view for the loading state of the component
2328
2354
  */
2329
- loadingView?: JSX.Element;
2355
+ loadingView?: JSX$1.Element;
2330
2356
  /**
2331
2357
  * Hide error view
2332
2358
  *
@@ -2339,11 +2365,11 @@ interface ListProps<T> {
2339
2365
  /**
2340
2366
  * Custom view for the error state of the component
2341
2367
  */
2342
- errorView?: JSX.Element;
2368
+ errorView?: JSX$1.Element;
2343
2369
  /**
2344
2370
  * Custom view for the empty state of the component
2345
2371
  */
2346
- emptyView?: JSX.Element;
2372
+ emptyView?: JSX$1.Element;
2347
2373
  /**
2348
2374
  * Set the scrollbar to the bottom-most position of the scrollable list
2349
2375
  *
@@ -2368,7 +2394,7 @@ interface ListProps<T> {
2368
2394
  * When provided, this component overrides the default search bar and the `hideSearch` property.
2369
2395
  * The custom search view will be displayed even if `hideSearch` is set to true.
2370
2396
  */
2371
- searchView?: JSX.Element;
2397
+ searchView?: JSX$1.Element;
2372
2398
  /**
2373
2399
  * Callback triggered when the search bar is clicked.
2374
2400
  */
@@ -2384,6 +2410,13 @@ interface ListProps<T> {
2384
2410
  * @defaultValue `false`
2385
2411
  */
2386
2412
  showScrollbar?: boolean;
2413
+ /**
2414
+ * Set the scrollbar to the bottom-most position of the scrollable list in Agent Chat
2415
+ *
2416
+ * @remarks
2417
+ *
2418
+ */
2419
+ scrollToEnd?: boolean;
2387
2420
  }
2388
2421
  /**
2389
2422
  * Renders a list component that can display a title, search bar,
@@ -2391,7 +2424,7 @@ interface ListProps<T> {
2391
2424
  *
2392
2425
  * @param props - The props for configuring the list
2393
2426
  */
2394
- declare function List<T>(props: ListProps<T>): JSX.Element;
2427
+ declare function List<T>(props: ListProps<T>): JSX$1.Element;
2395
2428
  /**
2396
2429
  * Renders a scrollable list
2397
2430
  */
@@ -3318,35 +3351,35 @@ interface IncomingCallProps {
3318
3351
  * @param call - An instance of `CometChat.Call` representing the call.
3319
3352
  * @returns A JSX element to be rendered as the item view.
3320
3353
  */
3321
- itemView?: (call: CometChat.Call) => JSX.Element;
3354
+ itemView?: (call: CometChat.Call) => JSX$1.Element;
3322
3355
  /**
3323
3356
  * A function that renders a JSX element to display the leading view.
3324
3357
  *
3325
3358
  * @param call - An instance of `CometChat.Call` representing the call.
3326
3359
  * @returns A JSX element to be rendered as the leading view.
3327
3360
  */
3328
- leadingView?: (call: CometChat.Call) => JSX.Element;
3361
+ leadingView?: (call: CometChat.Call) => JSX$1.Element;
3329
3362
  /**
3330
3363
  * A function that renders a JSX element to display the title view.
3331
3364
  *
3332
3365
  * @param call - An instance of `CometChat.Call` representing the call.
3333
3366
  * @returns A JSX element to be rendered as the title view.
3334
3367
  */
3335
- titleView?: (call: CometChat.Call) => JSX.Element;
3368
+ titleView?: (call: CometChat.Call) => JSX$1.Element;
3336
3369
  /**
3337
3370
  * A function that renders a JSX element to display the subtitle view.
3338
3371
  *
3339
3372
  * @param call - An instance of `CometChat.Call` representing the call.
3340
3373
  * @returns A JSX element to be rendered as the subtitle view.
3341
3374
  */
3342
- subtitleView?: (call: CometChat.Call) => JSX.Element;
3375
+ subtitleView?: (call: CometChat.Call) => JSX$1.Element;
3343
3376
  /**
3344
3377
  * A function that renders a JSX element to display the trailing view.
3345
3378
  *
3346
3379
  * @param call - An instance of `CometChat.Call` representing the call.
3347
3380
  * @returns A JSX element to be rendered as the trailing view.
3348
3381
  */
3349
- trailingView?: (call: CometChat.Call) => JSX.Element;
3382
+ trailingView?: (call: CometChat.Call) => JSX$1.Element;
3350
3383
  }
3351
3384
  declare const CometChatIncomingCall: (props: IncomingCallProps) => react_jsx_runtime.JSX.Element;
3352
3385
 
@@ -3390,22 +3423,22 @@ interface OutgoingCallProps {
3390
3423
  * This prop renders the custom title view for the outgoing call.
3391
3424
  * Use this to override the existing title of user name from the outgoing call.
3392
3425
  */
3393
- titleView?: JSX.Element;
3426
+ titleView?: JSX$1.Element;
3394
3427
  /**
3395
3428
  * This prop renders the custom sub title view for the outgoing call.
3396
3429
  * Use this to override the existing sub title text from the outgoing call.
3397
3430
  */
3398
- subtitleView?: JSX.Element;
3431
+ subtitleView?: JSX$1.Element;
3399
3432
  /**
3400
3433
  * This prop renders the custom avatar view for the outgoing call.
3401
3434
  * Use this to override the existing avatar image from the outgoing call.
3402
3435
  */
3403
- avatarView?: JSX.Element;
3436
+ avatarView?: JSX$1.Element;
3404
3437
  /**
3405
3438
  * This prop renders the custom cancel-call button view for the outgoing call.
3406
3439
  * Use this to override the existing cancel call button view from the outgoing call.
3407
3440
  */
3408
- cancelButtonView?: JSX.Element;
3441
+ cancelButtonView?: JSX$1.Element;
3409
3442
  }
3410
3443
  declare const CometChatOutgoingCall: (props: OutgoingCallProps) => react_jsx_runtime.JSX.Element;
3411
3444
 
@@ -3443,50 +3476,50 @@ interface CallLogsProps {
3443
3476
  /**
3444
3477
  * A custom view to display when call logs are being loaded.
3445
3478
  */
3446
- loadingView?: JSX.Element;
3479
+ loadingView?: JSX$1.Element;
3447
3480
  /**
3448
3481
  * A custom view to display when no call logs are available.
3449
3482
  */
3450
- emptyView?: JSX.Element;
3483
+ emptyView?: JSX$1.Element;
3451
3484
  /**
3452
3485
  * A custom view to display when an error occurs while fetching the call logs.
3453
3486
  */
3454
- errorView?: JSX.Element;
3487
+ errorView?: JSX$1.Element;
3455
3488
  /**
3456
3489
  * A function that renders a JSX element to display the item view.
3457
3490
  *
3458
3491
  * @param call - An instance of `any` representing the CallLog.
3459
3492
  * @returns A JSX element to be rendered as the item view.
3460
3493
  */
3461
- itemView?: (call: any) => JSX.Element;
3494
+ itemView?: (call: any) => JSX$1.Element;
3462
3495
  /**
3463
3496
  * A function that renders a JSX element to display the leading view.
3464
3497
  *
3465
3498
  * @param call - An instance of `any` representing the callLog.
3466
3499
  * @returns A JSX element to be rendered as the leading view.
3467
3500
  */
3468
- leadingView?: (call: any) => JSX.Element;
3501
+ leadingView?: (call: any) => JSX$1.Element;
3469
3502
  /**
3470
3503
  * A function that renders a JSX element to display the title view.
3471
3504
  *
3472
3505
  * @param call - An instance of `any` representing the callLog.
3473
3506
  * @returns A JSX element to be rendered as the title view.
3474
3507
  */
3475
- titleView?: (call: any) => JSX.Element;
3508
+ titleView?: (call: any) => JSX$1.Element;
3476
3509
  /**
3477
3510
  * A function that renders a JSX element to display the subtitle view.
3478
3511
  *
3479
3512
  * @param call - An instance of `any` representing the callLog.
3480
3513
  * @returns A JSX element to be rendered as the subtitle view.
3481
3514
  */
3482
- subtitleView?: (call: any) => JSX.Element;
3515
+ subtitleView?: (call: any) => JSX$1.Element;
3483
3516
  /**
3484
3517
  * A function that renders a JSX element to display the trailing view.
3485
3518
  *
3486
3519
  * @param call - An instance of `any` representing the callLog.
3487
3520
  * @returns A JSX element to be rendered as the trailing view.
3488
3521
  */
3489
- trailingView?: (call: any) => JSX.Element;
3522
+ trailingView?: (call: any) => JSX$1.Element;
3490
3523
  /**
3491
3524
  * Controls the visibility of the scrollbar in the list.
3492
3525
  * @defaultValue `false`
@@ -3595,58 +3628,58 @@ interface ConversationsProps {
3595
3628
  /**
3596
3629
  * A custom component to render in the top-right corner of the Conversations UI.
3597
3630
  */
3598
- headerView?: JSX.Element;
3631
+ headerView?: JSX$1.Element;
3599
3632
  /**
3600
3633
  * A custom component to display during the loading state.
3601
3634
  */
3602
- loadingView?: JSX.Element;
3635
+ loadingView?: JSX$1.Element;
3603
3636
  /**
3604
3637
  * A custom component to display when there are no conversations available.
3605
3638
  */
3606
- emptyView?: JSX.Element;
3639
+ emptyView?: JSX$1.Element;
3607
3640
  /**
3608
3641
  * A custom component to display when an error occurs.
3609
3642
  */
3610
- errorView?: JSX.Element;
3643
+ errorView?: JSX$1.Element;
3611
3644
  /**
3612
3645
  * A custom view to render each conversation in the list.
3613
3646
  *
3614
3647
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3615
3648
  * @returns A JSX element to be rendered as the conversation item.
3616
3649
  */
3617
- itemView?: (conversation: CometChat.Conversation) => JSX.Element;
3650
+ itemView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3618
3651
  /**
3619
3652
  * A function that renders a JSX element to display the leading view.
3620
3653
  *
3621
3654
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3622
3655
  * @returns A JSX element to be rendered as the leading view.
3623
3656
  */
3624
- leadingView?: (conversation: CometChat.Conversation) => JSX.Element;
3657
+ leadingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3625
3658
  /**
3626
3659
  * A function that renders a JSX element to display the title view.
3627
3660
  *
3628
3661
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3629
3662
  * @returns A JSX element to be rendered as the title view.
3630
3663
  */
3631
- titleView?: (conversation: CometChat.Conversation) => JSX.Element;
3664
+ titleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3632
3665
  /**
3633
3666
  * A custom view to render the subtitle for each conversation.
3634
3667
  *
3635
3668
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3636
3669
  * @returns A JSX element to be rendered as the subtitle view.
3637
3670
  */
3638
- subtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
3671
+ subtitleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3639
3672
  /**
3640
3673
  * A custom view to render at the end of each conversation item.
3641
3674
  *
3642
3675
  * @param conversation - An instance of `CometChat.Conversation` representing the conversation.
3643
3676
  * @returns A JSX element to be rendered as the trailing view.
3644
3677
  */
3645
- trailingView?: (conversation: CometChat.Conversation) => JSX.Element;
3678
+ trailingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
3646
3679
  /**
3647
3680
  * A custom search bar component to display in the Conversations header.
3648
3681
  */
3649
- searchView?: JSX.Element;
3682
+ searchView?: JSX$1.Element;
3650
3683
  /**
3651
3684
  * Callback triggered when the search bar is clicked.
3652
3685
  */
@@ -3773,54 +3806,54 @@ interface GroupMembersProps {
3773
3806
  /**
3774
3807
  * A custom component to render in the top-right corner of the group members list.
3775
3808
  */
3776
- headerView?: JSX.Element;
3809
+ headerView?: JSX$1.Element;
3777
3810
  /**
3778
3811
  * A custom view to display during the loading state.
3779
3812
  */
3780
- loadingView?: JSX.Element;
3813
+ loadingView?: JSX$1.Element;
3781
3814
  /**
3782
3815
  * Custom view for the error state of the component.
3783
3816
  */
3784
- errorView?: JSX.Element;
3817
+ errorView?: JSX$1.Element;
3785
3818
  /**
3786
3819
  * A custom view to display when no group members are available in the list.
3787
3820
  */
3788
- emptyView?: JSX.Element;
3821
+ emptyView?: JSX$1.Element;
3789
3822
  /**
3790
3823
  * A custom view to render for each group member in the fetched list.
3791
3824
  *
3792
3825
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3793
3826
  * @returns A JSX element to be rendered as the group member item.
3794
3827
  */
3795
- itemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3828
+ itemView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3796
3829
  /**
3797
3830
  * A function that renders a JSX element to display the leading view.
3798
3831
  *
3799
3832
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3800
3833
  * @returns A JSX element to be rendered as the leading view.
3801
3834
  */
3802
- leadingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3835
+ leadingView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3803
3836
  /**
3804
3837
  * A function that renders a JSX element to display the title view.
3805
3838
  *
3806
3839
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3807
3840
  * @returns A JSX element to be rendered as the title view.
3808
3841
  */
3809
- titleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3842
+ titleView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3810
3843
  /**
3811
3844
  * A function that renders a JSX element to display the subtitle view.
3812
3845
  *
3813
3846
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3814
3847
  * @returns A JSX element to be rendered as the subtitle view.
3815
3848
  */
3816
- subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3849
+ subtitleView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3817
3850
  /**
3818
3851
  * A function that renders a JSX element to display the trailing view.
3819
3852
  *
3820
3853
  * @param groupMember - An instance of `CometChat.GroupMember` representing the group member.
3821
3854
  * @returns A JSX element to be rendered as the trailing view.
3822
3855
  */
3823
- trailingView?: (groupMember: CometChat.GroupMember) => JSX.Element;
3856
+ trailingView?: (groupMember: CometChat.GroupMember) => JSX$1.Element;
3824
3857
  /**
3825
3858
  * Controls the visibility of the scrollbar in the list.
3826
3859
  * @defaultValue `false`
@@ -3901,54 +3934,54 @@ interface GroupsProps {
3901
3934
  /**
3902
3935
  * A custom component to render in the top-right corner of the groups list.
3903
3936
  */
3904
- headerView?: JSX.Element;
3937
+ headerView?: JSX$1.Element;
3905
3938
  /**
3906
3939
  * A custom view to display during the loading state.
3907
3940
  */
3908
- loadingView?: JSX.Element;
3941
+ loadingView?: JSX$1.Element;
3909
3942
  /**
3910
3943
  * Custom view for the empty state of the component.
3911
3944
  */
3912
- emptyView?: JSX.Element;
3945
+ emptyView?: JSX$1.Element;
3913
3946
  /**
3914
3947
  * A custom view to display when an error occurs.
3915
3948
  */
3916
- errorView?: JSX.Element;
3949
+ errorView?: JSX$1.Element;
3917
3950
  /**
3918
3951
  * A custom view to render for each group in the fetched list.
3919
3952
  *
3920
3953
  * @param group - An instance of `CometChat.Group` representing the group.
3921
3954
  * @returns A JSX element to be rendered as the group item.
3922
3955
  */
3923
- itemView?: (group: CometChat.Group) => JSX.Element;
3956
+ itemView?: (group: CometChat.Group) => JSX$1.Element;
3924
3957
  /**
3925
3958
  * A function that renders a JSX element to display the leading view.
3926
3959
  *
3927
3960
  * @param group - An instance of `CometChat.Group` representing the group.
3928
3961
  * @returns A JSX element to be rendered as the leading view.
3929
3962
  */
3930
- leadingView?: (group: CometChat.Group) => JSX.Element;
3963
+ leadingView?: (group: CometChat.Group) => JSX$1.Element;
3931
3964
  /**
3932
3965
  * A function that renders a JSX element to display the title view.
3933
3966
  *
3934
3967
  * @param group - An instance of `CometChat.Group` representing the group.
3935
3968
  * @returns A JSX element to be rendered as the title view.
3936
3969
  */
3937
- titleView?: (group: CometChat.Group) => JSX.Element;
3970
+ titleView?: (group: CometChat.Group) => JSX$1.Element;
3938
3971
  /**
3939
3972
  * Custom subtitle view to be rendered for each group in the fetched list.
3940
3973
  *
3941
3974
  * @param group - An instance of `CometChat.Group` representing the group.
3942
3975
  * @returns A JSX element to be rendered as the subtitle view.
3943
3976
  */
3944
- subtitleView?: (group: CometChat.Group) => JSX.Element;
3977
+ subtitleView?: (group: CometChat.Group) => JSX$1.Element;
3945
3978
  /**
3946
3979
  * A function that renders a JSX element to display the trailing view.
3947
3980
  *
3948
3981
  * @param group - An instance of `CometChat.Group` representing the group.
3949
3982
  * @returns A JSX element to be rendered as the trailing view.
3950
3983
  */
3951
- trailingView?: (group: CometChat.Group) => JSX.Element;
3984
+ trailingView?: (group: CometChat.Group) => JSX$1.Element;
3952
3985
  /**
3953
3986
  * Controls the visibility of the scrollbar in the list.
3954
3987
  * @defaultValue `false`
@@ -3964,14 +3997,15 @@ declare function CometChatGroups(props: GroupsProps): react_jsx_runtime.JSX.Elem
3964
3997
  interface MessageBubbleProps {
3965
3998
  id: string | number;
3966
3999
  setRef?: (ref: any) => void;
3967
- leadingView?: JSX.Element | null;
3968
- headerView?: JSX.Element | null;
3969
- replyView?: JSX.Element | null;
3970
- contentView?: JSX.Element | null;
3971
- bottomView?: JSX.Element | null;
3972
- threadView?: JSX.Element | null;
3973
- footerView?: JSX.Element | null;
3974
- statusInfoView?: JSX.Element | null;
4000
+ leadingView?: JSX$1.Element | null;
4001
+ headerView?: JSX$1.Element | null;
4002
+ replyView?: JSX$1.Element | null;
4003
+ contentView?: JSX$1.Element | null;
4004
+ bottomView?: JSX$1.Element | null;
4005
+ threadView?: JSX$1.Element | null;
4006
+ footerView?: JSX$1.Element | null;
4007
+ statusInfoView?: JSX$1.Element | null;
4008
+ includeBottomViewHeight?: boolean;
3975
4009
  options: (CometChatActionsIcon | CometChatActionsView)[];
3976
4010
  alignment: MessageBubbleAlignment;
3977
4011
  topMenuSize?: number;
@@ -4121,20 +4155,25 @@ interface MessageComposerProps {
4121
4155
  /**
4122
4156
  * A custom view for the send button to customize its appearance or behavior.
4123
4157
  */
4124
- sendButtonView?: JSX.Element;
4158
+ sendButtonView?: JSX$1.Element;
4125
4159
  /**
4126
4160
  * A custom view for an auxiliary button, which can be used alongside the send button.
4127
4161
  */
4128
- auxiliaryButtonView?: JSX.Element;
4162
+ auxiliaryButtonView?: JSX$1.Element;
4129
4163
  /**
4130
4164
  * A custom header section displayed at the top of the message composer, often used for media previews or additional information.
4131
4165
  */
4132
- headerView?: JSX.Element;
4166
+ headerView?: JSX$1.Element;
4133
4167
  /**
4134
4168
  * Controls the visibility of the scrollbar in the list.
4135
4169
  * @defaultValue `false`
4136
4170
  */
4137
4171
  showScrollbar?: boolean;
4172
+ /**
4173
+ * The placeholder text to display in the message input field when it is empty.
4174
+ * @defaultValue ""
4175
+ */
4176
+ placeholderText?: string;
4138
4177
  }
4139
4178
  /**
4140
4179
  * Renders a message composer to send messages to a user or group of a CometChat App
@@ -4220,28 +4259,28 @@ interface MessageHeaderProps {
4220
4259
  /**
4221
4260
  * A custom JSX element for rendering a menu. It can be used to add options or actions.
4222
4261
  */
4223
- auxiliaryButtonView?: JSX.Element;
4262
+ auxiliaryButtonView?: JSX$1.Element;
4224
4263
  /**
4225
4264
  * A custom JSX element for rendering a list item view, typically used to show user or group details.
4226
4265
  */
4227
- itemView?: JSX.Element;
4266
+ itemView?: JSX$1.Element;
4228
4267
  /**
4229
4268
  * A function that renders a JSX element to display the leading view.
4230
4269
  */
4231
- leadingView?: JSX.Element;
4270
+ leadingView?: JSX$1.Element;
4232
4271
  /**
4233
4272
  * A function that renders a JSX element to display the title view.
4234
4273
  */
4235
- titleView?: JSX.Element;
4274
+ titleView?: JSX$1.Element;
4236
4275
  /**
4237
4276
  * Custom subtitle view, allowing you to render a JSX element as the subtitle.
4238
4277
  * It can be used to provide additional information under the title.
4239
4278
  */
4240
- subtitleView?: JSX.Element;
4279
+ subtitleView?: JSX$1.Element;
4241
4280
  /**
4242
4281
  * A function that renders a JSX element to display the trailing view.
4243
4282
  */
4244
- trailingView?: JSX.Element;
4283
+ trailingView?: JSX$1.Element;
4245
4284
  /**
4246
4285
  * Format for displaying the "last active" timestamp in the message header.
4247
4286
  */
@@ -4279,6 +4318,11 @@ interface MessageListProps {
4279
4318
  * @default false
4280
4319
  */
4281
4320
  hideStickyDate?: boolean;
4321
+ /**
4322
+ * Hides the visibility of moderation status in the message list.
4323
+ * @default false
4324
+ */
4325
+ hideModerationView?: boolean;
4282
4326
  /**
4283
4327
  * Hides the visibility of receipts in the message list.
4284
4328
  * @default false
@@ -4392,10 +4436,10 @@ interface MessageListProps {
4392
4436
  */
4393
4437
  customSoundForMessages?: string;
4394
4438
  /**
4395
- * Specifies the keywords in incoming messages that will trigger Smart Replies.
4396
- * If set to an empty array [], Smart Replies will be generated for all messages.
4397
- * @default ['what', 'when', 'why', 'who', 'where', 'how', '?']
4398
- */
4439
+ * Specifies the keywords in incoming messages that will trigger Smart Replies.
4440
+ * If set to an empty array [], Smart Replies will be generated for all messages.
4441
+ * @default ['what', 'when', 'why', 'who', 'where', 'how', '?']
4442
+ */
4399
4443
  smartRepliesKeywords?: string[];
4400
4444
  /**
4401
4445
  * Specifies the delay in milliseconds before Smart Replies are displayed.
@@ -4433,38 +4477,38 @@ interface MessageListProps {
4433
4477
  /**
4434
4478
  * Custom empty state view to display when there are no messages.
4435
4479
  */
4436
- emptyView?: JSX.Element;
4480
+ emptyView?: JSX$1.Element;
4437
4481
  /**
4438
4482
  * A custom view displayed when there are no messages.
4439
4483
  */
4440
- errorView?: JSX.Element;
4484
+ errorView?: JSX$1.Element;
4441
4485
  /**
4442
4486
  * A custom view displayed while messages are being fetched.
4443
4487
  */
4444
- loadingView?: JSX.Element;
4488
+ loadingView?: JSX$1.Element;
4445
4489
  /**
4446
4490
  * A custom header view component for the message list.
4447
4491
  */
4448
- headerView?: JSX.Element;
4492
+ headerView?: JSX$1.Element;
4449
4493
  /**
4450
4494
  * A custom footer view component for the message list.
4451
4495
  */
4452
- footerView?: JSX.Element;
4496
+ footerView?: JSX$1.Element;
4453
4497
  /**
4454
- * Format for the date separators in the message list.
4455
- */
4498
+ * Format for the date separators in the message list.
4499
+ */
4456
4500
  separatorDateTimeFormat?: CalendarObject;
4457
4501
  /**
4458
- * Format for sticky date headers displayed in the message list.
4459
- */
4502
+ * Format for sticky date headers displayed in the message list.
4503
+ */
4460
4504
  stickyDateTimeFormat?: CalendarObject;
4461
4505
  /**
4462
- * Format for the timestamp displayed next to messages.
4463
- */
4506
+ * Format for the timestamp displayed next to messages.
4507
+ */
4464
4508
  messageSentAtDateTimeFormat?: CalendarObject;
4465
4509
  /**
4466
- * Format for timestamps displayed in message details (e.g., delivery or read time).
4467
- */
4510
+ * Format for timestamps displayed in message details (e.g., delivery or read time).
4511
+ */
4468
4512
  messageInfoDateTimeFormat?: CalendarObject;
4469
4513
  /**
4470
4514
  * ID of the message to automatically scroll to when the message list loads.
@@ -4473,10 +4517,15 @@ interface MessageListProps {
4473
4517
  */
4474
4518
  goToMessageId?: string;
4475
4519
  /**
4476
- * Controls the visibility of the scrollbar in the list.
4520
+ * Controls the visibility of the scrollbar in the list.
4521
+ * @defaultValue `false`
4522
+ */
4523
+ showScrollbar?: boolean;
4524
+ /**
4525
+ * Toggles AI Agent functionality.
4477
4526
  * @defaultValue `false`
4478
4527
  */
4479
- showScrollbar?: boolean;
4528
+ isAgentChat?: boolean;
4480
4529
  }
4481
4530
  declare const CometChatMessageList: (props: MessageListProps) => react_jsx_runtime.JSX.Element;
4482
4531
 
@@ -4585,54 +4634,54 @@ interface UsersProps {
4585
4634
  /**
4586
4635
  * A custom component to render in the top-right corner of the user list.
4587
4636
  */
4588
- headerView?: JSX.Element;
4637
+ headerView?: JSX$1.Element;
4589
4638
  /**
4590
4639
  * A custom view to display during the loading state.
4591
4640
  */
4592
- loadingView?: JSX.Element;
4641
+ loadingView?: JSX$1.Element;
4593
4642
  /**
4594
4643
  * A custom view to display when an error occurs.
4595
4644
  */
4596
- errorView?: JSX.Element;
4645
+ errorView?: JSX$1.Element;
4597
4646
  /**
4598
4647
  * A custom view to display when no users are available in the list.
4599
4648
  */
4600
- emptyView?: JSX.Element;
4649
+ emptyView?: JSX$1.Element;
4601
4650
  /**
4602
4651
  * A custom view to render for each user in the fetched list.
4603
4652
  *
4604
4653
  * @param user - An instance of `CometChat.User` representing the user.
4605
4654
  * @returns A JSX element to be rendered as the user item.
4606
4655
  */
4607
- itemView?: (user: CometChat.User) => JSX.Element;
4656
+ itemView?: (user: CometChat.User) => JSX$1.Element;
4608
4657
  /**
4609
4658
  * A function that renders a JSX element to display the leading view.
4610
4659
  *
4611
4660
  * @param user - An instance of `CometChat.User` representing the user.
4612
4661
  * @returns A JSX element to be rendered as the leading view.
4613
4662
  */
4614
- leadingView?: (user: CometChat.User) => JSX.Element;
4663
+ leadingView?: (user: CometChat.User) => JSX$1.Element;
4615
4664
  /**
4616
4665
  * A custom function to render the title view of a user.
4617
4666
  *
4618
4667
  * @param user - An instance of `CometChat.User` representing the user.
4619
4668
  * @returns A JSX element to be rendered as the title view.
4620
4669
  */
4621
- titleView?: (user: CometChat.User) => JSX.Element;
4670
+ titleView?: (user: CometChat.User) => JSX$1.Element;
4622
4671
  /**
4623
4672
  * A custom view to render the subtitle for each user.
4624
4673
  *
4625
4674
  * @param user - An instance of `CometChat.User` representing the user.
4626
4675
  * @returns A JSX element to be rendered as the subtitle view.
4627
4676
  */
4628
- subtitleView?: (user: CometChat.User) => JSX.Element;
4677
+ subtitleView?: (user: CometChat.User) => JSX$1.Element;
4629
4678
  /**
4630
4679
  * A function that renders a JSX element to display the trailing view.
4631
4680
  *
4632
4681
  * @param user - An instance of `CometChat.User` representing the user.
4633
4682
  * @returns A JSX element to be rendered as the trailing view.
4634
4683
  */
4635
- trailingView?: (user: CometChat.User) => JSX.Element;
4684
+ trailingView?: (user: CometChat.User) => JSX$1.Element;
4636
4685
  /**
4637
4686
  * Controls the visibility of the scrollbar in the list list.
4638
4687
  *
@@ -4689,6 +4738,13 @@ declare class CometChatUIKitConstants {
4689
4738
  action: string;
4690
4739
  call: string;
4691
4740
  interactive: string;
4741
+ agentic: _cometchat_chat_sdk_javascript.MessageCategory.AGENTIC;
4742
+ }>;
4743
+ static moderationStatus: Readonly<{
4744
+ pending: _cometchat_chat_sdk_javascript.ModerationStatus.PENDING;
4745
+ approved: _cometchat_chat_sdk_javascript.ModerationStatus.APPROVED;
4746
+ disapproved: _cometchat_chat_sdk_javascript.ModerationStatus.DISAPPROVED;
4747
+ unmoderated: _cometchat_chat_sdk_javascript.ModerationStatus.UNMODERATED;
4692
4748
  }>;
4693
4749
  static MessageTypes: Readonly<{
4694
4750
  text: string;
@@ -4703,6 +4759,9 @@ declare class CometChatUIKitConstants {
4703
4759
  card: "card";
4704
4760
  customInteractive: "customInteractive";
4705
4761
  scheduler: "scheduler";
4762
+ assistant: string;
4763
+ toolArguments: string;
4764
+ toolResults: string;
4706
4765
  }>;
4707
4766
  static groupMemberAction: Readonly<{
4708
4767
  ROLE: "role";
@@ -4831,6 +4890,17 @@ declare class CometChatUIKitConstants {
4831
4890
  changeScope: "changeScope";
4832
4891
  groupMembers: "groupMembers";
4833
4892
  }>;
4893
+ static streamMessageTypes: Readonly<{
4894
+ run_started: string;
4895
+ text_message_start: string;
4896
+ text_message_content: string;
4897
+ text_message_end: string;
4898
+ run_finished: string;
4899
+ tool_call_start: string;
4900
+ tool_call_end: string;
4901
+ tool_call_args: string;
4902
+ tool_call_result: string;
4903
+ }>;
4834
4904
  }
4835
4905
 
4836
4906
  declare class CometChatUtilityConstants {
@@ -5009,6 +5079,7 @@ declare class CometChatMessageEvents {
5009
5079
  * message events wrapper of SDK listeners (e.g., media message, typing indicator, read receipts, etc.)
5010
5080
  */
5011
5081
  static onTextMessageReceived: Subject<CometChat.TextMessage>;
5082
+ static onMessageModerated: Subject<CometChat.BaseMessage>;
5012
5083
  static onMediaMessageReceived: Subject<CometChat.MediaMessage>;
5013
5084
  static onCustomMessageReceived: Subject<CometChat.CustomMessage>;
5014
5085
  static onTypingStarted: Subject<CometChat.TypingIndicator>;
@@ -5025,6 +5096,9 @@ declare class CometChatMessageEvents {
5025
5096
  static onFormMessageReceived: Subject<CometChat.InteractiveMessage>;
5026
5097
  static onCardMessageReceived: Subject<CometChat.InteractiveMessage>;
5027
5098
  static onSchedulerMessageReceived: Subject<CometChat.InteractiveMessage>;
5099
+ static onAIAssistantMessageReceived: Subject<CometChat.AIAssistantMessage>;
5100
+ static onAIToolResultReceived: Subject<CometChat.AIToolResultMessage>;
5101
+ static onAIToolArgumentsReceived: Subject<CometChat.AIToolArgumentMessage>;
5028
5102
  }
5029
5103
  /**
5030
5104
  * Interface for message-related events
@@ -5316,6 +5390,14 @@ interface ListItemProps {
5316
5390
  }
5317
5391
  declare const CometChatListItem: (props: ListItemProps) => react_jsx_runtime.JSX.Element;
5318
5392
 
5393
+ interface CometChatErrorViewProps {
5394
+ /**
5395
+ * Custom error message to display
5396
+ */
5397
+ message: string;
5398
+ }
5399
+ declare const CometChatErrorView: React__default.FC<CometChatErrorViewProps>;
5400
+
5319
5401
  interface ImageBubbleProps {
5320
5402
  src: string;
5321
5403
  placeholderImage?: string;
@@ -5579,7 +5661,7 @@ declare class MessageReceiptUtils {
5579
5661
  * @param {CometChat.BaseMessage} messageObject - The message object for which to get the receipt status.
5580
5662
  * @returns {Receipts} - The receipt status icon.
5581
5663
  */
5582
- static getReceiptStatus: (messageObject: CometChat.BaseMessage) => Receipts;
5664
+ static getReceiptStatus: (message: CometChat.BaseMessage) => Receipts;
5583
5665
  }
5584
5666
 
5585
5667
  /**
@@ -5603,6 +5685,12 @@ declare class MessageUtils {
5603
5685
  * @returns {object | null} - The content view for the message, or null if not found.
5604
5686
  */
5605
5687
  getStatusInfoView(message: CometChat.BaseMessage, template: CometChatMessageTemplate, alignment?: MessageBubbleAlignment, messageSentAtDateTimeFormat?: CalendarObject, hideReceipts?: boolean): any;
5688
+ /**
5689
+ * Retrieves the bottom view for moderated messages
5690
+ *
5691
+ * @returns {JSX.Element} The default view for moderated messages.
5692
+ */
5693
+ getModeratedMessageBottomView(): JSX.Element;
5606
5694
  /**
5607
5695
  * Retrieves the bubble wrapper for a message based on the provided template.
5608
5696
  *
@@ -6022,6 +6110,7 @@ declare function sanitizeCalendarObject(calendarObject?: CalendarObject): {
6022
6110
  };
6023
6111
  declare function fireClickEvent(): void;
6024
6112
  declare const decodeHTML: (input: string) => string;
6113
+ declare const sanitizeHtmlStringToFragment: (html: string, textFormatterArray?: CometChatTextFormatter[]) => DocumentFragment;
6025
6114
  /**
6026
6115
  * Custom React hook for creating debounced callbacks with automatic cleanup.
6027
6116
  */
@@ -6029,6 +6118,13 @@ declare const useDebouncedCallback: (callback: () => void, delay: number) => {
6029
6118
  debouncedCallback: () => void;
6030
6119
  cleanup: () => void;
6031
6120
  };
6121
+ declare function createMessageCopy(msg: CometChat.AIAssistantBaseEvent, user: CometChat.User, category?: string, type?: string): CometChat.BaseMessage;
6122
+ declare function isDarkMode(): boolean;
6123
+ /**
6124
+ * Sanitizes HTML content to only allow span tags while keeping everything else as plain text
6125
+ * Also removes any script or executable content
6126
+ */
6127
+ declare const sanitizeToSpanOnly: (htmlString: string, regexPatterns: RegExp[][]) => string;
6032
6128
 
6033
6129
  /**
6034
6130
  * Utility class for managing local storage with change detection capabilities.
@@ -6097,7 +6193,7 @@ interface CometChatThreadHeaderProps {
6097
6193
  * @param messageObject - The message to be rendered.
6098
6194
  * @returns A JSX Element to be rendered as message bubble view.
6099
6195
  */
6100
- messageBubbleView?: JSX.Element;
6196
+ messageBubbleView?: JSX$1.Element;
6101
6197
  /**
6102
6198
  * Callback function triggered when an error occurs.
6103
6199
  *
@@ -6129,7 +6225,7 @@ interface CometChatThreadHeaderProps {
6129
6225
  /**
6130
6226
  * Custom subtitle view to display below the thread title.
6131
6227
  */
6132
- subtitleView?: JSX.Element;
6228
+ subtitleView?: JSX$1.Element;
6133
6229
  /**
6134
6230
  * Controls the visibility of the scrollbar in the list.
6135
6231
  * @defaultValue `false`
@@ -6366,7 +6462,7 @@ interface SearchProps {
6366
6462
  * @param conversation - The conversation object to render
6367
6463
  * @returns JSX element representing the conversation item
6368
6464
  */
6369
- conversationItemView?: (conversation: CometChat.Conversation) => JSX.Element;
6465
+ conversationItemView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6370
6466
  /**
6371
6467
  * Custom leading view for conversation items (typically avatar/icon)
6372
6468
  * Use this to customize just the leading section of conversation items
@@ -6374,7 +6470,7 @@ interface SearchProps {
6374
6470
  * @param conversation - The conversation object to render the leading view for
6375
6471
  * @returns JSX element for the leading part of the conversation item
6376
6472
  */
6377
- conversationLeadingView?: (conversation: CometChat.Conversation) => JSX.Element;
6473
+ conversationLeadingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6378
6474
  /**
6379
6475
  * Custom title view for conversation items
6380
6476
  * Use this to customize how the title of conversation items is displayed
@@ -6382,7 +6478,7 @@ interface SearchProps {
6382
6478
  * @param conversation - The conversation object to render the title for
6383
6479
  * @returns JSX element for the title of the conversation item
6384
6480
  */
6385
- conversationTitleView?: (conversation: CometChat.Conversation) => JSX.Element;
6481
+ conversationTitleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6386
6482
  /**
6387
6483
  * Custom subtitle view for conversation items
6388
6484
  * Use this to customize how the subtitle (typically last message) is displayed
@@ -6390,7 +6486,7 @@ interface SearchProps {
6390
6486
  * @param conversation - The conversation object to render the subtitle for
6391
6487
  * @returns JSX element for the subtitle of the conversation item
6392
6488
  */
6393
- conversationSubtitleView?: (conversation: CometChat.Conversation) => JSX.Element;
6489
+ conversationSubtitleView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6394
6490
  /**
6395
6491
  * Custom trailing view for conversation items (typically timestamp)
6396
6492
  * Use this to customize what appears at the end of conversation items
@@ -6398,7 +6494,7 @@ interface SearchProps {
6398
6494
  * @param conversation - The conversation object to render the trailing view for
6399
6495
  * @returns JSX element for the trailing part of the conversation item
6400
6496
  */
6401
- conversationTrailingView?: (conversation: CometChat.Conversation) => JSX.Element;
6497
+ conversationTrailingView?: (conversation: CometChat.Conversation) => JSX$1.Element;
6402
6498
  /**
6403
6499
  * Request builder for conversations search
6404
6500
  * Use this to customize the conversation search request parameters
@@ -6413,7 +6509,7 @@ interface SearchProps {
6413
6509
  * @param message - The message object to render
6414
6510
  * @returns JSX element representing the message item
6415
6511
  */
6416
- messageItemView?: (message: CometChat.BaseMessage) => JSX.Element;
6512
+ messageItemView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6417
6513
  /**
6418
6514
  * Custom leading view for message items (typically sender avatar/icon)
6419
6515
  * Use this to customize just the leading section of message items
@@ -6421,7 +6517,7 @@ interface SearchProps {
6421
6517
  * @param message - The message object to render the leading view for
6422
6518
  * @returns JSX element for the leading part of the message item
6423
6519
  */
6424
- messageLeadingView?: (message: CometChat.BaseMessage) => JSX.Element;
6520
+ messageLeadingView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6425
6521
  /**
6426
6522
  * Custom title view for message items (typically sender name)
6427
6523
  * Use this to customize how the title of message items is displayed
@@ -6429,7 +6525,7 @@ interface SearchProps {
6429
6525
  * @param message - The message object to render the title for
6430
6526
  * @returns JSX element for the title of the message item
6431
6527
  */
6432
- messageTitleView?: (message: CometChat.BaseMessage) => JSX.Element;
6528
+ messageTitleView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6433
6529
  /**
6434
6530
  * Custom subtitle view for message items (typically message content)
6435
6531
  * Use this to customize how the subtitle/content is displayed
@@ -6437,7 +6533,7 @@ interface SearchProps {
6437
6533
  * @param message - The message object to render the subtitle for
6438
6534
  * @returns JSX element for the subtitle of the message item
6439
6535
  */
6440
- messageSubtitleView?: (message: CometChat.BaseMessage) => JSX.Element;
6536
+ messageSubtitleView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6441
6537
  /**
6442
6538
  * Custom trailing view for message items (typically timestamp)
6443
6539
  * Use this to customize what appears at the end of message items
@@ -6445,7 +6541,7 @@ interface SearchProps {
6445
6541
  * @param message - The message object to render the trailing view for
6446
6542
  * @returns JSX element for the trailing part of the message item
6447
6543
  */
6448
- messageTrailingView?: (message: CometChat.BaseMessage) => JSX.Element;
6544
+ messageTrailingView?: (message: CometChat.BaseMessage) => JSX$1.Element;
6449
6545
  /**
6450
6546
  * Request builder for messages search
6451
6547
  * Use this to customize the message search request parameters
@@ -6457,24 +6553,24 @@ interface SearchProps {
6457
6553
  * Custom view for empty state when no search results are found
6458
6554
  * This will be displayed when search returns no results
6459
6555
  */
6460
- emptyView?: JSX.Element;
6556
+ emptyView?: JSX$1.Element;
6461
6557
  /**
6462
6558
  * Custom view for error state when search fails
6463
6559
  * This will be displayed when an error occurs during search
6464
6560
  */
6465
- errorView?: JSX.Element;
6561
+ errorView?: JSX$1.Element;
6466
6562
  /**
6467
6563
  * Custom view for loading state during search
6468
6564
  * This will be displayed while search is in progress
6469
6565
  */
6470
- loadingView?: JSX.Element;
6566
+ loadingView?: JSX$1.Element;
6471
6567
  /**
6472
6568
  * Custom view for initial state before user enters a search query
6473
6569
  * This will be displayed when the search component first loads
6474
6570
  *
6475
6571
  * @defaultValue Basic prompt encouraging user to search
6476
6572
  */
6477
- initialView?: JSX.Element;
6573
+ initialView?: JSX$1.Element;
6478
6574
  /**
6479
6575
  * Format for message sent date/time in the UI
6480
6576
  * Customize how timestamps are displayed in message items
@@ -6546,5 +6642,158 @@ interface CometChatFrameProviderProps {
6546
6642
  declare const useCometChatFrameContext: () => CometChatFrameContextValue;
6547
6643
  declare const CometChatFrameProvider: React__default.FC<CometChatFrameProviderProps>;
6548
6644
 
6549
- export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFrameProvider, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCommonDateFormat, getLocalizedString, getThemeMode, getThemeVariable, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6550
- export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, LocalizationSettings, PollOptions };
6645
+ /**
6646
+ * Type definition for toolkit action functions
6647
+ * Each function can return any value or a Promise for async operations
6648
+ */
6649
+ type CometChatAIAssistantToolsFunction = (args: any) => void;
6650
+ /**
6651
+ * Interface for the toolkit actions map
6652
+ * Key: string (function name)
6653
+ * Value: CometChatAIAssistantToolsFunction
6654
+ */
6655
+ interface ICometChatAIAssistantToolsMap {
6656
+ [functionName: string]: CometChatAIAssistantToolsFunction;
6657
+ }
6658
+ /**
6659
+ * CometChatAIAssistantTools class for managing action functions
6660
+ *
6661
+ * Usage:
6662
+ * ```typescript
6663
+ * const toolkit = new CometChatAIAssistantTools({
6664
+ * // Weather related functions
6665
+ * getCurrentWeather: (params: {location: string}) => {
6666
+ * // Implementation for getting current weather
6667
+ * fetch(`/api/weather?location=${params.location}`);
6668
+ * },
6669
+ * });
6670
+ *
6671
+ * ```
6672
+ */
6673
+ declare class CometChatAIAssistantTools {
6674
+ private actionsMap;
6675
+ [functionName: string]: any;
6676
+ constructor(actions: ICometChatAIAssistantToolsMap);
6677
+ /**
6678
+ * Get the implementation of a specific action
6679
+ *
6680
+ * @param functionName - Name of the function
6681
+ * @returns The function implementation or undefined if not found
6682
+ */
6683
+ getAction(functionName: string): CometChatAIAssistantToolsFunction | undefined;
6684
+ /**
6685
+ * Get a copy of all actions
6686
+ *
6687
+ * @returns A copy of the actions map
6688
+ */
6689
+ getActions(): ICometChatAIAssistantToolsMap;
6690
+ }
6691
+
6692
+ interface AIAssistantChatProps {
6693
+ hideChatHistory?: boolean;
6694
+ hideNewChat?: boolean;
6695
+ user: CometChat.User;
6696
+ onBackButtonClicked?: () => void;
6697
+ onCloseButtonClicked?: () => void;
6698
+ showBackButton?: boolean;
6699
+ showCloseButton?: boolean;
6700
+ headerItemView?: React__default.JSX.Element;
6701
+ headerTitleView?: React__default.JSX.Element;
6702
+ headerSubtitleView?: React__default.JSX.Element;
6703
+ headerLeadingView?: React__default.JSX.Element;
6704
+ headerTrailingView?: React__default.JSX.Element;
6705
+ headerAuxiliaryButtonView?: React__default.JSX.Element;
6706
+ streamingSpeed?: number;
6707
+ suggestedMessages?: Array<string>;
6708
+ hideSuggestedMessages?: boolean;
6709
+ emptyView?: React__default.JSX.Element;
6710
+ loadingView?: React__default.JSX.Element;
6711
+ errorView?: React__default.JSX.Element;
6712
+ onError?: (e: CometChat.CometChatException) => void;
6713
+ emptyChatGreetingView?: React__default.JSX.Element;
6714
+ emptyChatIntroMessageView?: React__default.JSX.Element;
6715
+ emptyChatImageView?: React__default.JSX.Element;
6716
+ aiAssistantTools?: CometChatAIAssistantTools;
6717
+ }
6718
+ declare const CometChatAIAssistantChat: React__default.MemoExoticComponent<(props: AIAssistantChatProps) => react_jsx_runtime.JSX.Element>;
6719
+
6720
+ /**
6721
+ * Interface representing streaming message data that contains both the original message event
6722
+ * and the accumulated streamed text content that has been processed so far.
6723
+ */
6724
+ interface IStreamData {
6725
+ message: CometChat.AIAssistantBaseEvent;
6726
+ streamedMessages?: string;
6727
+ }
6728
+ /**
6729
+ * Observable stream for streaming state changes
6730
+ */
6731
+ declare const streamingState$: rxjs.Observable<boolean>;
6732
+ /**
6733
+ * Observable stream for message updates
6734
+ */
6735
+ declare const messageStream: rxjs.Observable<IStreamData>;
6736
+ /**
6737
+ * Starts a new streaming message session
6738
+ * Resets accumulated content and initializes the message processor
6739
+ */
6740
+ declare const startStreamingMessage: () => void;
6741
+ /**
6742
+ * Handles incoming websocket messages by adding them to the processing queue
6743
+ * @param msg - The message update to process
6744
+ */
6745
+ declare const handleWebsocketMessage: (msg: CometChat.AIAssistantBaseEvent) => void;
6746
+ /**
6747
+ * Sets the typing speed delay for text message content chunks
6748
+ * @param delay - The delay in milliseconds between text content chunks (default: 80ms)
6749
+ */
6750
+ declare const setStreamSpeed: (delay: number) => void;
6751
+ /**
6752
+ * Gets the current typing speed delay for text message content chunks
6753
+ * @returns The current delay in milliseconds
6754
+ */
6755
+ declare const getStreamSpeed: () => number;
6756
+ declare const getAIAssistantTools: () => CometChatAIAssistantTools;
6757
+ declare const setAIAssistantTools: (actions: CometChatAIAssistantTools) => void;
6758
+ /**
6759
+ * Stops the streaming message session and cleans up resources
6760
+ * Unsubscribes from the message processor and resets accumulated content
6761
+ */
6762
+ declare const stopStreamingMessage: () => void;
6763
+
6764
+ interface CometChatStreamMessageBubbleProps {
6765
+ message?: CometChat.AIAssistantBaseEvent;
6766
+ }
6767
+ declare const CometChatStreamMessageBubble: React__default.FC<CometChatStreamMessageBubbleProps>;
6768
+
6769
+ interface CometChatAIAssistantMessageBubbleProps {
6770
+ message?: CometChat.AIAssistantMessage;
6771
+ }
6772
+ declare const CometChatAIAssistantMessageBubble: React__default.FC<CometChatAIAssistantMessageBubbleProps>;
6773
+
6774
+ interface CometChatAIAssistantChatHistoryProps {
6775
+ /**
6776
+ * A `CometChat.User` object representing the participant of the chat whose message history is displayed.
6777
+ */
6778
+ user?: CometChat.User;
6779
+ /**
6780
+ * A `CometChat.Group` object representing the group whose message history is displayed.
6781
+ */
6782
+ group?: CometChat.Group;
6783
+ /**
6784
+ * Callback function triggered when an error occurs during message fetching.
6785
+ */
6786
+ onError?: ((error: CometChat.CometChatException) => void) | null;
6787
+ /**
6788
+ * Callback function triggered when clicked on closeIcon button
6789
+ */
6790
+ onClose?: (() => void) | undefined;
6791
+ /**
6792
+ * Callback function triggered when clicked on a message
6793
+ */
6794
+ onMessageClicked?: ((message: CometChat.BaseMessage) => void) | undefined;
6795
+ }
6796
+ declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => react_jsx_runtime.JSX.Element;
6797
+
6798
+ export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatAIAssistantChat, CometChatAIAssistantChatHistory, CometChatAIAssistantMessageBubble, CometChatAIAssistantTools, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatErrorView, CometChatFileBubble, CometChatFrameProvider, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatStreamMessageBubble, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, createMessageCopy, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getAIAssistantTools, getCommonDateFormat, getLocalizedString, getStreamSpeed, getThemeMode, getThemeVariable, handleWebsocketMessage, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isDarkMode, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, messageStream, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, sanitizeHtmlStringToFragment, sanitizeToSpanOnly, setAIAssistantTools, setStreamSpeed, startStreamingMessage, stopStreamingMessage, streamingState$, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6799
+ export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IStreamData, LocalizationSettings, PollOptions };