@bcc-code/vue-bcc-chat-ui 7.0.2 → 7.0.3

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 (82) hide show
  1. package/dist/index.d.ts +1034 -11
  2. package/dist/style.css +1 -1
  3. package/dist/vue-bcc-chat-ui.js +8959 -8605
  4. package/dist/vue-bcc-chat-ui.js.map +1 -1
  5. package/package.json +7 -11
  6. package/dist/App.vue.d.ts +0 -2
  7. package/dist/FixtureApp.vue.d.ts +0 -2
  8. package/dist/auth.d.ts +0 -2
  9. package/dist/chat/accessToken.d.ts +0 -11
  10. package/dist/chat/avatar.d.ts +0 -3
  11. package/dist/chat/cacheScope.d.ts +0 -13
  12. package/dist/chat/client.d.ts +0 -7
  13. package/dist/chat/conversationState.d.ts +0 -11
  14. package/dist/chat/data.d.ts +0 -15
  15. package/dist/chat/environment.d.ts +0 -8
  16. package/dist/chat/i18n/en.d.ts +0 -118
  17. package/dist/chat/i18n/nb.d.ts +0 -118
  18. package/dist/chat/i18n/types.d.ts +0 -2
  19. package/dist/chat/index.d.ts +0 -94
  20. package/dist/chat/localization.d.ts +0 -15
  21. package/dist/chat/messageText.d.ts +0 -13
  22. package/dist/chat/mockClient.d.ts +0 -13
  23. package/dist/chat/offlineStore.d.ts +0 -53
  24. package/dist/chat/reactions.d.ts +0 -8
  25. package/dist/chat/richText.d.ts +0 -5
  26. package/dist/chat/theme.d.ts +0 -18
  27. package/dist/chat/types.d.ts +0 -301
  28. package/dist/components/chat/BccChat.vue.d.ts +0 -509
  29. package/dist/components/chat/ChatStatusOverlay.vue.d.ts +0 -33
  30. package/dist/components/chat/publicContract.d.ts +0 -43
  31. package/dist/components/conversations/ConversationList.vue.d.ts +0 -15
  32. package/dist/components/conversations/UserProfileCard.vue.d.ts +0 -8
  33. package/dist/components/messages/ActionMessageRow.vue.d.ts +0 -5
  34. package/dist/components/messages/ComposerActionsPopover.vue.d.ts +0 -19
  35. package/dist/components/messages/ComposerContextBanner.vue.d.ts +0 -13
  36. package/dist/components/messages/ComposerFormatMenu.vue.d.ts +0 -13
  37. package/dist/components/messages/ComposerPollDialog.vue.d.ts +0 -16
  38. package/dist/components/messages/ComposerScheduleDialog.vue.d.ts +0 -20
  39. package/dist/components/messages/ConversationComposer.vue.d.ts +0 -106
  40. package/dist/components/messages/LinkPreviewCard.vue.d.ts +0 -6
  41. package/dist/components/messages/LinkifiedText.vue.d.ts +0 -8
  42. package/dist/components/messages/MessageAttachmentList.vue.d.ts +0 -10
  43. package/dist/components/messages/MessageComposer.vue.d.ts +0 -69
  44. package/dist/components/messages/MessageDeliveryStatus.vue.d.ts +0 -6
  45. package/dist/components/messages/MessageItem.vue.d.ts +0 -27
  46. package/dist/components/messages/MessageItemHeader.vue.d.ts +0 -6
  47. package/dist/components/messages/MessageItemMenu.vue.d.ts +0 -26
  48. package/dist/components/messages/MessageItemMenuReactions.vue.d.ts +0 -11
  49. package/dist/components/messages/MessageItemReactions.vue.d.ts +0 -14
  50. package/dist/components/messages/MessageList.vue.d.ts +0 -115
  51. package/dist/components/messages/MessageListHeader.vue.d.ts +0 -7
  52. package/dist/components/messages/MessagePollContent.vue.d.ts +0 -12
  53. package/dist/components/messages/MessageReactionList.vue.d.ts +0 -12
  54. package/dist/components/messages/MessageReplyQuote.vue.d.ts +0 -10
  55. package/dist/components/messages/MessageTextContent.vue.d.ts +0 -6
  56. package/dist/components/overlays/FullscreenDialog.vue.d.ts +0 -34
  57. package/dist/components/overlays/MediaViewerDialog.vue.d.ts +0 -13
  58. package/dist/components/overlays/MessageInfoDialog.vue.d.ts +0 -14
  59. package/dist/components/overlays/ReceiptSection.vue.d.ts +0 -9
  60. package/dist/components/overlays/ScheduledMessagesDialog.vue.d.ts +0 -25
  61. package/dist/composables/chat/index.d.ts +0 -13
  62. package/dist/composables/chat/useComposerContext.d.ts +0 -43
  63. package/dist/composables/chat/useConversationContext.d.ts +0 -30
  64. package/dist/composables/chat/useDialogsContext.d.ts +0 -27
  65. package/dist/composables/chat/useMessagesContext.d.ts +0 -36
  66. package/dist/composables/useChatActions.d.ts +0 -21
  67. package/dist/composables/useChatEventBus.d.ts +0 -91
  68. package/dist/composables/useComposerDrafts.d.ts +0 -44
  69. package/dist/composables/useConversationComposer.d.ts +0 -15
  70. package/dist/composables/useGroupMemberTracking.d.ts +0 -28
  71. package/dist/composables/useImageZoom.d.ts +0 -26
  72. package/dist/composables/useMessageActionMenu.d.ts +0 -202
  73. package/dist/composables/useMessageInfoDialog.d.ts +0 -165
  74. package/dist/composables/useMessageListScroll.d.ts +0 -30
  75. package/dist/composables/useMessageNavigation.d.ts +0 -18
  76. package/dist/composables/useRichTextComposer.d.ts +0 -31
  77. package/dist/demo/ApiExamplesPanel.vue.d.ts +0 -6
  78. package/dist/demo/ChatShell.vue.d.ts +0 -10
  79. package/dist/demo/ThemeModeToggle.vue.d.ts +0 -12
  80. package/dist/demo/useDemoThemeMode.d.ts +0 -6
  81. package/dist/design.d.ts +0 -10
  82. package/dist/main.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -1,11 +1,1034 @@
1
- export { default as chat, default } from './chat';
2
- export * from './chat/types';
3
- export { default as BccChatMessageList } from './components/chat/BccChat.vue';
4
- /** Alias for the message-list component under its new canonical name. */
5
- export { default as BccChat } from './components/chat/BccChat.vue';
6
- /**
7
- * Create an independent ChatClient instance. Useful when you need to render
8
- * multiple `<BccChat>` components with different `chatUid` values on the same
9
- * page — pass a separate client to each via the `client` prop.
10
- */
11
- export { createChatClient } from './chat/client';
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { App } from 'vue';
3
+ import { BaseMessage } from '@cometchat/chat-sdk-javascript';
4
+ import { ComponentCustomProps } from 'vue';
5
+ import { ComponentOptionsMixin } from 'vue';
6
+ import { ComponentProvideOptions } from 'vue';
7
+ import { ComputedRef } from 'vue';
8
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
9
+ import { DefineComponent } from 'vue';
10
+ import { GlobalComponents } from 'vue';
11
+ import { GlobalDirectives } from 'vue';
12
+ import { Group } from '@cometchat/chat-sdk-javascript';
13
+ import { MessageReceipt } from '@cometchat/chat-sdk-javascript';
14
+ import { PopoverMethods } from 'primevue';
15
+ import { PopoverProps } from 'primevue';
16
+ import { PopoverSlots } from 'primevue';
17
+ import { PublicProps } from 'vue';
18
+ import { Ref } from 'vue';
19
+ import { VNodeProps } from 'vue';
20
+ import { WritableComputedRef } from 'vue';
21
+
22
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
+ groupMembersFetched: (members: ParticipantInfo[]) => any;
24
+ chatEmpty: () => any;
25
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onGroupMembersFetched?: ((members: ParticipantInfo[]) => any) | undefined;
27
+ onChatEmpty?: (() => any) | undefined;
28
+ }>, {
29
+ messages: ChatMessageItem[];
30
+ senderDisplayName: string;
31
+ client: ChatClient | null;
32
+ conversation: ChatConversationItem | null;
33
+ threadMessages: ChatMessageItem[];
34
+ loadingMessages: boolean;
35
+ loadingThreadMessages: boolean;
36
+ isReadOnly: boolean;
37
+ sendOptions: MessageSendOptions;
38
+ showDefaultEmptyState: boolean;
39
+ initialScheduledMessagesOpen: boolean;
40
+ chatUid: string;
41
+ hideDeletedMessages: boolean;
42
+ groupMessageGetter: (guid: string, query: string) => Promise<unknown>;
43
+ loadMessageId: string;
44
+ displayNoMessagesText: boolean;
45
+ language: Language;
46
+ showHeader: boolean;
47
+ showMessageHeader: boolean;
48
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
49
+ chatRootRef: HTMLDivElement;
50
+ mainComposerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
51
+ target: ChatTarget;
52
+ }> & Readonly<{}>, {
53
+ focusEditor: () => Promise<void>;
54
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
55
+ composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
56
+ modelValue: string;
57
+ disabled: boolean;
58
+ resetSignal: number;
59
+ showScheduledButton?: boolean;
60
+ replyToMessage?: ChatMessageItem | null;
61
+ editingMessage?: ChatMessageItem | null;
62
+ contextLabel?: string;
63
+ offlineMode?: boolean;
64
+ pendingQueueCount?: number;
65
+ compact?: boolean;
66
+ }> & Readonly<{
67
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
68
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
69
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
70
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
71
+ onSendText?: (() => any) | undefined;
72
+ onOpenScheduled?: (() => any) | undefined;
73
+ onCancelReply?: (() => any) | undefined;
74
+ onCancelEdit?: (() => any) | undefined;
75
+ }>, {
76
+ focusEditor: () => Promise<void>;
77
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
78
+ scheduleMessage: (input: ScheduleMessageInput) => any;
79
+ sendAttachment: (input: AttachmentUploadInput) => any;
80
+ sendPoll: (input: PollComposerInput) => any;
81
+ "update:modelValue": (value: string) => any;
82
+ sendText: () => any;
83
+ openScheduled: () => any;
84
+ cancelReply: () => any;
85
+ cancelEdit: () => any;
86
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
87
+ fileInputRef: HTMLInputElement;
88
+ composerShellRef: HTMLDivElement;
89
+ composerEditorRef: HTMLDivElement;
90
+ composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
91
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
92
+ onOpenPoll?: (() => any) | undefined;
93
+ }>, {
94
+ toggle: (event: Event) => void;
95
+ hide: () => void;
96
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
97
+ pickFile: (kind: "image" | "video" | "audio" | "file") => any;
98
+ openPoll: () => any;
99
+ }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
100
+ popoverRef: ({
101
+ $props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
102
+ $slots: PopoverSlots;
103
+ $emit: ((e: "show") => void) & ((e: "hide") => void);
104
+ } & PopoverMethods) | null;
105
+ }, any, ComponentProvideOptions, {
106
+ P: {};
107
+ B: {};
108
+ D: {};
109
+ C: {};
110
+ M: {};
111
+ Defaults: {};
112
+ }, Readonly<{}> & Readonly<{
113
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
114
+ onOpenPoll?: (() => any) | undefined;
115
+ }>, {
116
+ toggle: (event: Event) => void;
117
+ hide: () => void;
118
+ }, {}, {}, {}, {}> | null;
119
+ }, HTMLDivElement, ComponentProvideOptions, {
120
+ P: {};
121
+ B: {};
122
+ D: {};
123
+ C: {};
124
+ M: {};
125
+ Defaults: {};
126
+ }, Readonly<{
127
+ modelValue: string;
128
+ disabled: boolean;
129
+ resetSignal: number;
130
+ showScheduledButton?: boolean;
131
+ replyToMessage?: ChatMessageItem | null;
132
+ editingMessage?: ChatMessageItem | null;
133
+ contextLabel?: string;
134
+ offlineMode?: boolean;
135
+ pendingQueueCount?: number;
136
+ compact?: boolean;
137
+ }> & Readonly<{
138
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
139
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
140
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
141
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
142
+ onSendText?: (() => any) | undefined;
143
+ onOpenScheduled?: (() => any) | undefined;
144
+ onCancelReply?: (() => any) | undefined;
145
+ onCancelEdit?: (() => any) | undefined;
146
+ }>, {
147
+ focusEditor: () => Promise<void>;
148
+ }, {}, {}, {}, {}> | null;
149
+ }, any, ComponentProvideOptions, {
150
+ P: {};
151
+ B: {};
152
+ D: {};
153
+ C: {};
154
+ M: {};
155
+ Defaults: {};
156
+ }, Readonly<{
157
+ target: ChatTarget;
158
+ }> & Readonly<{}>, {
159
+ focusEditor: () => Promise<void>;
160
+ }, {}, {}, {}, {}> | null;
161
+ threadComposerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
162
+ target: ChatTarget;
163
+ }> & Readonly<{}>, {
164
+ focusEditor: () => Promise<void>;
165
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
166
+ composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
167
+ modelValue: string;
168
+ disabled: boolean;
169
+ resetSignal: number;
170
+ showScheduledButton?: boolean;
171
+ replyToMessage?: ChatMessageItem | null;
172
+ editingMessage?: ChatMessageItem | null;
173
+ contextLabel?: string;
174
+ offlineMode?: boolean;
175
+ pendingQueueCount?: number;
176
+ compact?: boolean;
177
+ }> & Readonly<{
178
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
179
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
180
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
181
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
182
+ onSendText?: (() => any) | undefined;
183
+ onOpenScheduled?: (() => any) | undefined;
184
+ onCancelReply?: (() => any) | undefined;
185
+ onCancelEdit?: (() => any) | undefined;
186
+ }>, {
187
+ focusEditor: () => Promise<void>;
188
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
189
+ scheduleMessage: (input: ScheduleMessageInput) => any;
190
+ sendAttachment: (input: AttachmentUploadInput) => any;
191
+ sendPoll: (input: PollComposerInput) => any;
192
+ "update:modelValue": (value: string) => any;
193
+ sendText: () => any;
194
+ openScheduled: () => any;
195
+ cancelReply: () => any;
196
+ cancelEdit: () => any;
197
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
198
+ fileInputRef: HTMLInputElement;
199
+ composerShellRef: HTMLDivElement;
200
+ composerEditorRef: HTMLDivElement;
201
+ composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
202
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
203
+ onOpenPoll?: (() => any) | undefined;
204
+ }>, {
205
+ toggle: (event: Event) => void;
206
+ hide: () => void;
207
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
208
+ pickFile: (kind: "image" | "video" | "audio" | "file") => any;
209
+ openPoll: () => any;
210
+ }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
211
+ popoverRef: ({
212
+ $props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
213
+ $slots: PopoverSlots;
214
+ $emit: ((e: "show") => void) & ((e: "hide") => void);
215
+ } & PopoverMethods) | null;
216
+ }, any, ComponentProvideOptions, {
217
+ P: {};
218
+ B: {};
219
+ D: {};
220
+ C: {};
221
+ M: {};
222
+ Defaults: {};
223
+ }, Readonly<{}> & Readonly<{
224
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
225
+ onOpenPoll?: (() => any) | undefined;
226
+ }>, {
227
+ toggle: (event: Event) => void;
228
+ hide: () => void;
229
+ }, {}, {}, {}, {}> | null;
230
+ }, HTMLDivElement, ComponentProvideOptions, {
231
+ P: {};
232
+ B: {};
233
+ D: {};
234
+ C: {};
235
+ M: {};
236
+ Defaults: {};
237
+ }, Readonly<{
238
+ modelValue: string;
239
+ disabled: boolean;
240
+ resetSignal: number;
241
+ showScheduledButton?: boolean;
242
+ replyToMessage?: ChatMessageItem | null;
243
+ editingMessage?: ChatMessageItem | null;
244
+ contextLabel?: string;
245
+ offlineMode?: boolean;
246
+ pendingQueueCount?: number;
247
+ compact?: boolean;
248
+ }> & Readonly<{
249
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
250
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
251
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
252
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
253
+ onSendText?: (() => any) | undefined;
254
+ onOpenScheduled?: (() => any) | undefined;
255
+ onCancelReply?: (() => any) | undefined;
256
+ onCancelEdit?: (() => any) | undefined;
257
+ }>, {
258
+ focusEditor: () => Promise<void>;
259
+ }, {}, {}, {}, {}> | null;
260
+ }, any, ComponentProvideOptions, {
261
+ P: {};
262
+ B: {};
263
+ D: {};
264
+ C: {};
265
+ M: {};
266
+ Defaults: {};
267
+ }, Readonly<{
268
+ target: ChatTarget;
269
+ }> & Readonly<{}>, {
270
+ focusEditor: () => Promise<void>;
271
+ }, {}, {}, {}, {}> | null;
272
+ }, HTMLDivElement>;
273
+
274
+ declare type __VLS_Props = {
275
+ client?: ChatClient | null;
276
+ conversation?: ChatConversationItem | null;
277
+ messages?: ChatMessageItem[];
278
+ threadMessages?: ChatMessageItem[];
279
+ loadingMessages?: boolean;
280
+ loadingThreadMessages?: boolean;
281
+ isReadOnly?: boolean;
282
+ sendOptions?: MessageSendOptions;
283
+ showDefaultEmptyState?: boolean;
284
+ initialScheduledMessagesOpen?: boolean;
285
+ chatUid?: string;
286
+ senderDisplayName?: string;
287
+ hideDeletedMessages?: boolean;
288
+ groupMessageGetter?: (guid: string, query: string) => Promise<unknown>;
289
+ loadMessageId?: string;
290
+ displayNoMessagesText?: boolean;
291
+ language?: Language;
292
+ showHeader?: boolean;
293
+ showMessageHeader?: boolean;
294
+ };
295
+
296
+ declare function __VLS_template(): {
297
+ attrs: Partial<{}>;
298
+ slots: {
299
+ 'message-header'?(_: {
300
+ conversation: ChatConversationItem | null;
301
+ parentMessage: ChatMessageItem | null;
302
+ target: ChatTarget;
303
+ title: string;
304
+ subtitle: string;
305
+ memberCount: number;
306
+ }): any;
307
+ 'no-messages'?(_: {}): any;
308
+ };
309
+ refs: {
310
+ chatRootRef: HTMLDivElement;
311
+ mainComposerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
312
+ target: ChatTarget;
313
+ }> & Readonly<{}>, {
314
+ focusEditor: () => Promise<void>;
315
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
316
+ composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
317
+ modelValue: string;
318
+ disabled: boolean;
319
+ resetSignal: number;
320
+ showScheduledButton?: boolean;
321
+ replyToMessage?: ChatMessageItem | null;
322
+ editingMessage?: ChatMessageItem | null;
323
+ contextLabel?: string;
324
+ offlineMode?: boolean;
325
+ pendingQueueCount?: number;
326
+ compact?: boolean;
327
+ }> & Readonly<{
328
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
329
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
330
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
331
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
332
+ onSendText?: (() => any) | undefined;
333
+ onOpenScheduled?: (() => any) | undefined;
334
+ onCancelReply?: (() => any) | undefined;
335
+ onCancelEdit?: (() => any) | undefined;
336
+ }>, {
337
+ focusEditor: () => Promise<void>;
338
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
339
+ scheduleMessage: (input: ScheduleMessageInput) => any;
340
+ sendAttachment: (input: AttachmentUploadInput) => any;
341
+ sendPoll: (input: PollComposerInput) => any;
342
+ "update:modelValue": (value: string) => any;
343
+ sendText: () => any;
344
+ openScheduled: () => any;
345
+ cancelReply: () => any;
346
+ cancelEdit: () => any;
347
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
348
+ fileInputRef: HTMLInputElement;
349
+ composerShellRef: HTMLDivElement;
350
+ composerEditorRef: HTMLDivElement;
351
+ composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
352
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
353
+ onOpenPoll?: (() => any) | undefined;
354
+ }>, {
355
+ toggle: (event: Event) => void;
356
+ hide: () => void;
357
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
358
+ pickFile: (kind: "image" | "video" | "audio" | "file") => any;
359
+ openPoll: () => any;
360
+ }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
361
+ popoverRef: ({
362
+ $props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
363
+ $slots: PopoverSlots;
364
+ $emit: ((e: "show") => void) & ((e: "hide") => void);
365
+ } & PopoverMethods) | null;
366
+ }, any, ComponentProvideOptions, {
367
+ P: {};
368
+ B: {};
369
+ D: {};
370
+ C: {};
371
+ M: {};
372
+ Defaults: {};
373
+ }, Readonly<{}> & Readonly<{
374
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
375
+ onOpenPoll?: (() => any) | undefined;
376
+ }>, {
377
+ toggle: (event: Event) => void;
378
+ hide: () => void;
379
+ }, {}, {}, {}, {}> | null;
380
+ }, HTMLDivElement, ComponentProvideOptions, {
381
+ P: {};
382
+ B: {};
383
+ D: {};
384
+ C: {};
385
+ M: {};
386
+ Defaults: {};
387
+ }, Readonly<{
388
+ modelValue: string;
389
+ disabled: boolean;
390
+ resetSignal: number;
391
+ showScheduledButton?: boolean;
392
+ replyToMessage?: ChatMessageItem | null;
393
+ editingMessage?: ChatMessageItem | null;
394
+ contextLabel?: string;
395
+ offlineMode?: boolean;
396
+ pendingQueueCount?: number;
397
+ compact?: boolean;
398
+ }> & Readonly<{
399
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
400
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
401
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
402
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
403
+ onSendText?: (() => any) | undefined;
404
+ onOpenScheduled?: (() => any) | undefined;
405
+ onCancelReply?: (() => any) | undefined;
406
+ onCancelEdit?: (() => any) | undefined;
407
+ }>, {
408
+ focusEditor: () => Promise<void>;
409
+ }, {}, {}, {}, {}> | null;
410
+ }, any, ComponentProvideOptions, {
411
+ P: {};
412
+ B: {};
413
+ D: {};
414
+ C: {};
415
+ M: {};
416
+ Defaults: {};
417
+ }, Readonly<{
418
+ target: ChatTarget;
419
+ }> & Readonly<{}>, {
420
+ focusEditor: () => Promise<void>;
421
+ }, {}, {}, {}, {}> | null;
422
+ threadComposerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
423
+ target: ChatTarget;
424
+ }> & Readonly<{}>, {
425
+ focusEditor: () => Promise<void>;
426
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
427
+ composerRef: CreateComponentPublicInstanceWithMixins<Readonly<{
428
+ modelValue: string;
429
+ disabled: boolean;
430
+ resetSignal: number;
431
+ showScheduledButton?: boolean;
432
+ replyToMessage?: ChatMessageItem | null;
433
+ editingMessage?: ChatMessageItem | null;
434
+ contextLabel?: string;
435
+ offlineMode?: boolean;
436
+ pendingQueueCount?: number;
437
+ compact?: boolean;
438
+ }> & Readonly<{
439
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
440
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
441
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
442
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
443
+ onSendText?: (() => any) | undefined;
444
+ onOpenScheduled?: (() => any) | undefined;
445
+ onCancelReply?: (() => any) | undefined;
446
+ onCancelEdit?: (() => any) | undefined;
447
+ }>, {
448
+ focusEditor: () => Promise<void>;
449
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
450
+ scheduleMessage: (input: ScheduleMessageInput) => any;
451
+ sendAttachment: (input: AttachmentUploadInput) => any;
452
+ sendPoll: (input: PollComposerInput) => any;
453
+ "update:modelValue": (value: string) => any;
454
+ sendText: () => any;
455
+ openScheduled: () => any;
456
+ cancelReply: () => any;
457
+ cancelEdit: () => any;
458
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
459
+ fileInputRef: HTMLInputElement;
460
+ composerShellRef: HTMLDivElement;
461
+ composerEditorRef: HTMLDivElement;
462
+ composerActionsRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
463
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
464
+ onOpenPoll?: (() => any) | undefined;
465
+ }>, {
466
+ toggle: (event: Event) => void;
467
+ hide: () => void;
468
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
469
+ pickFile: (kind: "image" | "video" | "audio" | "file") => any;
470
+ openPoll: () => any;
471
+ }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
472
+ popoverRef: ({
473
+ $props: PopoverProps & VNodeProps & AllowedComponentProps & ComponentCustomProps;
474
+ $slots: PopoverSlots;
475
+ $emit: ((e: "show") => void) & ((e: "hide") => void);
476
+ } & PopoverMethods) | null;
477
+ }, any, ComponentProvideOptions, {
478
+ P: {};
479
+ B: {};
480
+ D: {};
481
+ C: {};
482
+ M: {};
483
+ Defaults: {};
484
+ }, Readonly<{}> & Readonly<{
485
+ onPickFile?: ((kind: "image" | "video" | "audio" | "file") => any) | undefined;
486
+ onOpenPoll?: (() => any) | undefined;
487
+ }>, {
488
+ toggle: (event: Event) => void;
489
+ hide: () => void;
490
+ }, {}, {}, {}, {}> | null;
491
+ }, HTMLDivElement, ComponentProvideOptions, {
492
+ P: {};
493
+ B: {};
494
+ D: {};
495
+ C: {};
496
+ M: {};
497
+ Defaults: {};
498
+ }, Readonly<{
499
+ modelValue: string;
500
+ disabled: boolean;
501
+ resetSignal: number;
502
+ showScheduledButton?: boolean;
503
+ replyToMessage?: ChatMessageItem | null;
504
+ editingMessage?: ChatMessageItem | null;
505
+ contextLabel?: string;
506
+ offlineMode?: boolean;
507
+ pendingQueueCount?: number;
508
+ compact?: boolean;
509
+ }> & Readonly<{
510
+ onScheduleMessage?: ((input: ScheduleMessageInput) => any) | undefined;
511
+ onSendAttachment?: ((input: AttachmentUploadInput) => any) | undefined;
512
+ onSendPoll?: ((input: PollComposerInput) => any) | undefined;
513
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
514
+ onSendText?: (() => any) | undefined;
515
+ onOpenScheduled?: (() => any) | undefined;
516
+ onCancelReply?: (() => any) | undefined;
517
+ onCancelEdit?: (() => any) | undefined;
518
+ }>, {
519
+ focusEditor: () => Promise<void>;
520
+ }, {}, {}, {}, {}> | null;
521
+ }, any, ComponentProvideOptions, {
522
+ P: {};
523
+ B: {};
524
+ D: {};
525
+ C: {};
526
+ M: {};
527
+ Defaults: {};
528
+ }, Readonly<{
529
+ target: ChatTarget;
530
+ }> & Readonly<{}>, {
531
+ focusEditor: () => Promise<void>;
532
+ }, {}, {}, {}, {}> | null;
533
+ };
534
+ rootEl: HTMLDivElement;
535
+ };
536
+
537
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
538
+
539
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
540
+ new (): {
541
+ $slots: S;
542
+ };
543
+ };
544
+
545
+ export declare interface AttachmentUploadInput {
546
+ file: File;
547
+ caption?: string;
548
+ }
549
+
550
+ export declare interface CachedLastMessage {
551
+ chatUid: string;
552
+ lastMessage: null | MessageInfo;
553
+ lastUpdated: number;
554
+ }
555
+
556
+ export declare interface CachedParticipantSettings {
557
+ chatUid: string;
558
+ mutedUntil: string | null;
559
+ lastUpdated: number;
560
+ }
561
+
562
+ declare const chat: {
563
+ install: typeof install;
564
+ updateGetGroupMessages: typeof updateGetGroupMessages;
565
+ initialized: Ref<boolean, boolean>;
566
+ connected: ComputedRef<boolean>;
567
+ connecting: ComputedRef<boolean>;
568
+ loggedIn: ComputedRef<boolean>;
569
+ userChats: ComputedRef<UserChatInfo[]>;
570
+ connect: typeof connect;
571
+ disconnect: typeof disconnect;
572
+ disconnectAll: typeof disconnectAll;
573
+ setAccessToken: typeof setAccessToken;
574
+ login: typeof login;
575
+ logout: typeof logout;
576
+ setCurrentEnvironment: typeof setEnvironment;
577
+ getCurrentEnvironment: typeof getCurrentEnvironment;
578
+ setThemeMode: typeof setThemeMode;
579
+ setLanguage: typeof setLanguage;
580
+ getGroup: typeof getGroup;
581
+ getGroupMembersInfo: typeof getGroupMembersInfo;
582
+ getUserChats: typeof getUserChats;
583
+ clearGroupChatCount: typeof clearGroupChatCount;
584
+ getOnlineGroupMemberCount: typeof getOnlineGroupMemberCount;
585
+ getGroupOnlineCount: typeof getOnlineGroupMemberCount;
586
+ searchChat: (searchQuery: string, limit?: number) => SearchedItems | undefined;
587
+ getSenderDisplayName: typeof getSenderDisplayName;
588
+ getMessageTextPreview: typeof getMessageTextPreview;
589
+ proxyImage: typeof proxyImage;
590
+ getMutedUntil: typeof getMutedUntil;
591
+ muteChat: typeof muteChat;
592
+ getMyChatSettings: typeof getMyChatSettings;
593
+ updateMyChatSettings: typeof updateMyChatSettings;
594
+ setMuteAll: typeof setMuteAll;
595
+ toggleMuteAll: typeof toggleMuteAll;
596
+ toMarkdownHtml: typeof toMarkdownHtml;
597
+ retrieveCcToken: typeof retrieveCcToken;
598
+ getGroupMessages: Ref<((guid: string, query: string) => Promise<unknown>) | undefined, ((guid: string, query: string) => Promise<unknown>) | undefined>;
599
+ loadMessageId: Ref<string | undefined, string | undefined>;
600
+ scrollToMessageId: Ref<string | undefined, string | undefined>;
601
+ scrollToMessage: typeof scrollToMessage;
602
+ connectivity: {
603
+ onlineMode: WritableComputedRef<OnlineStatus, OnlineStatus>;
604
+ onlineStatus: ComputedRef<OnlineStatus>;
605
+ };
606
+ onlineMode: WritableComputedRef<OnlineStatus, OnlineStatus>;
607
+ onlineStatus: ComputedRef<OnlineStatus>;
608
+ theme: Ref< {
609
+ palette: {
610
+ mode: ThemeMode;
611
+ setMode: (mode: ThemeMode) => void;
612
+ };
613
+ }, {
614
+ palette: {
615
+ mode: ThemeMode;
616
+ setMode(mode: ThemeMode): void;
617
+ };
618
+ } | {
619
+ palette: {
620
+ mode: ThemeMode;
621
+ setMode: (mode: ThemeMode) => void;
622
+ };
623
+ }>;
624
+ themeMode: Ref<ThemeMode, ThemeMode>;
625
+ language: Ref<Language, Language>;
626
+ };
627
+ export { chat }
628
+ export default chat;
629
+
630
+ export declare interface ChatAttachmentItem {
631
+ kind: Extract<ChatMessageKind, "image" | "video" | "audio" | "file">;
632
+ name: string;
633
+ url?: string;
634
+ mimeType?: string;
635
+ extension?: string;
636
+ size?: number;
637
+ }
638
+
639
+ export declare interface ChatClient {
640
+ initialized: Ref<boolean>;
641
+ loggingIn: Ref<boolean>;
642
+ loadingConversations: Ref<boolean>;
643
+ loadingMessages: Ref<boolean>;
644
+ loadingThreadMessages: Ref<boolean>;
645
+ loadingOlderMessages: Ref<boolean>;
646
+ loadingOlderThreadMessages: Ref<boolean>;
647
+ loadingScheduledMessages: Ref<boolean>;
648
+ sendingMessage: Ref<boolean>;
649
+ schedulingMessage: Ref<boolean>;
650
+ syncingQueue: Ref<boolean>;
651
+ connected: Ref<boolean>;
652
+ offlineMode: Ref<boolean>;
653
+ loggedIn: Ref<boolean>;
654
+ error: Ref<string | null>;
655
+ currentUser: Ref<ChatUserProfile | null>;
656
+ conversations: Ref<ChatConversationItem[]>;
657
+ messages: Ref<ChatMessageItem[]>;
658
+ threadMessages: Ref<ChatMessageItem[]>;
659
+ scheduledMessages: Ref<ChatMessageItem[]>;
660
+ hasOlderMessages: Ref<boolean>;
661
+ hasOlderThreadMessages: Ref<boolean>;
662
+ pendingQueueCount: ComputedRef<number>;
663
+ activeConversationId: Ref<string | null>;
664
+ activeConversation: ComputedRef<ChatConversationItem | null>;
665
+ activeThreadParentMessage: Ref<ChatMessageItem | null>;
666
+ replyToMessage: Ref<ChatMessageItem | null>;
667
+ editingMessage: Ref<ChatMessageItem | null>;
668
+ init: () => Promise<void>;
669
+ connectRealtime: () => Promise<void>;
670
+ disconnectRealtime: () => Promise<void>;
671
+ login: (accessToken: string) => Promise<void>;
672
+ logout: () => Promise<void>;
673
+ fetchConversations: () => Promise<void>;
674
+ selectConversation: (conversationId: string) => Promise<void>;
675
+ sendTextMessage: (text: string, options?: MessageSendOptions) => Promise<void>;
676
+ sendAttachmentMessage: (input: AttachmentUploadInput, options?: MessageSendOptions) => Promise<void>;
677
+ sendPollMessage: (input: PollComposerInput, options?: MessageSendOptions) => Promise<void>;
678
+ fetchScheduledMessages: (originalChatUid?: string) => Promise<void>;
679
+ loadOlderMessages: () => Promise<boolean>;
680
+ loadOlderThreadMessages: () => Promise<boolean>;
681
+ ensureMessageLoaded: (messageId: string) => Promise<boolean>;
682
+ scheduleMessage: (input: ScheduleMessageInput, options?: MessageSendOptions) => Promise<void>;
683
+ rescheduleMessage: (input: RescheduleMessageInput) => Promise<void>;
684
+ setReplyToMessage: (message: ChatMessageItem | null) => void;
685
+ setEditingMessage: (message: ChatMessageItem | null) => void;
686
+ openThread: (message: ChatMessageItem) => Promise<void>;
687
+ closeThread: () => void;
688
+ fetchMessageReceipts: (message: ChatMessageItem) => Promise<ChatMessageReceiptItem[]>;
689
+ deleteMessage: (message: ChatMessageItem) => Promise<void>;
690
+ votePoll: (message: ChatMessageItem, optionId: string) => Promise<void>;
691
+ toggleReaction: (message: ChatMessageItem, emoji: string) => Promise<void>;
692
+ translateMessage: (message: ChatMessageItem) => Promise<void>;
693
+ }
694
+
695
+ export declare interface ChatConversationItem {
696
+ id: string;
697
+ targetId: string;
698
+ type: "group" | "user";
699
+ title: string;
700
+ subtitle: string;
701
+ avatar?: string;
702
+ unreadCount: number;
703
+ lastMessageAt?: Date;
704
+ muteSettings?: Date | null;
705
+ tags: string[];
706
+ memberCount?: number;
707
+ source: any;
708
+ }
709
+
710
+ export declare type ChatDeliveryState = "sent" | "queued" | "sending" | "failed";
711
+
712
+ declare interface ChatEnvironmentConfig {
713
+ region: string;
714
+ appId: string;
715
+ chatApiBaseUrl: string;
716
+ }
717
+
718
+ export declare interface ChatInstallOptions {
719
+ environment: Environment;
720
+ language?: Language;
721
+ themeMode: ThemeMode;
722
+ accessToken?: Ref<string | null | undefined> | null | undefined | string;
723
+ loggerCallback?: (entry: LogEntry) => void;
724
+ }
725
+
726
+ export declare interface ChatInstance {
727
+ componentId: string;
728
+ replyToMessage: BaseMessage | null;
729
+ captionedAttachment: {
730
+ fileObject?: File;
731
+ dimensions?: {
732
+ width: number;
733
+ height: number;
734
+ };
735
+ } | null;
736
+ decoyAttachment: {
737
+ fileObject?: File;
738
+ dimensions?: {
739
+ width: number;
740
+ height: number;
741
+ };
742
+ } | null;
743
+ scheduledMessageChat?: Group;
744
+ showScheduledMessagesChat: boolean;
745
+ showAlert: boolean;
746
+ showRescheduleAlert: boolean;
747
+ userInput: string | null;
748
+ rescheduleInfo: {
749
+ rescheduleMuid: string;
750
+ messageId: number;
751
+ } | null;
752
+ }
753
+
754
+ export declare interface ChatMessageItem {
755
+ id: string;
756
+ muid?: string;
757
+ conversationId: string;
758
+ senderId: string;
759
+ senderName: string;
760
+ text: string;
761
+ kind: ChatMessageKind;
762
+ sentAt: Date;
763
+ category: string;
764
+ type: string;
765
+ senderAvatar?: string;
766
+ isOwn: boolean;
767
+ isDeleted: boolean;
768
+ isEdited: boolean;
769
+ attachments: ChatAttachmentItem[];
770
+ poll?: ChatPollData;
771
+ scheduled?: ChatScheduledInfo;
772
+ translatedText?: string;
773
+ replyTo?: ChatReplyPreview;
774
+ parentMessageId?: string;
775
+ replyCount: number;
776
+ reactions: ChatReactionItem[];
777
+ receipts: ChatMessageReceiptSummary;
778
+ deliveryState: ChatDeliveryState;
779
+ metadata?: Record<string, unknown>;
780
+ source: any;
781
+ }
782
+
783
+ export declare type ChatMessageKind = "text" | "image" | "video" | "audio" | "file" | "poll" | "action" | "unsupported";
784
+
785
+ export declare interface ChatMessageReceiptItem {
786
+ kind: ChatMessageReceiptKind;
787
+ user: ChatUserProfile;
788
+ timestamp?: Date;
789
+ }
790
+
791
+ export declare type ChatMessageReceiptKind = "delivered" | "read";
792
+
793
+ export declare interface ChatMessageReceiptSummary {
794
+ deliveredAt?: Date;
795
+ deliveredToMeAt?: Date;
796
+ readAt?: Date;
797
+ readByMeAt?: Date;
798
+ }
799
+
800
+ export declare interface ChatPollData {
801
+ id?: string;
802
+ question: string;
803
+ options: ChatPollOptionItem[];
804
+ totalVotes: number;
805
+ allowsMultipleAnswers: boolean;
806
+ }
807
+
808
+ export declare interface ChatPollOptionItem {
809
+ id: string;
810
+ text: string;
811
+ voteCount: number;
812
+ voters: string[];
813
+ }
814
+
815
+ export declare interface ChatReactionItem {
816
+ emoji: string;
817
+ count: number;
818
+ reactedByMe: boolean;
819
+ }
820
+
821
+ export declare interface ChatReplyPreview {
822
+ messageId: string;
823
+ senderName: string;
824
+ text: string;
825
+ kind: ChatMessageKind;
826
+ }
827
+
828
+ export declare interface ChatScheduledInfo {
829
+ scheduleDate?: Date;
830
+ originalChatUid?: string;
831
+ muid?: string;
832
+ messageId?: number;
833
+ }
834
+
835
+ /** Target identifier used to distinguish main-conversation from thread actions. */
836
+ declare type ChatTarget = "main" | "thread";
837
+
838
+ export declare interface ChatUserProfile {
839
+ uid: string;
840
+ name: string;
841
+ avatar?: string;
842
+ status?: string;
843
+ }
844
+
845
+ declare function clearGroupChatCount(groupUid: string): Promise<void>;
846
+
847
+ declare function connect(connectionName?: string): Promise<void>;
848
+
849
+ export declare function createChatClient({ environment, }: CreateChatClientOptions): ChatClient;
850
+
851
+ declare interface CreateChatClientOptions {
852
+ environment: Environment;
853
+ }
854
+
855
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
856
+ export { _default as BccChat }
857
+ export { _default as BccChatMessageList }
858
+
859
+ declare function disconnect(connectionName?: string): Promise<void>;
860
+
861
+ declare function disconnectAll(): Promise<void>;
862
+
863
+ export declare interface DispatchData {
864
+ muid: string;
865
+ originalChatUid: string;
866
+ scheduleDate: string;
867
+ messageId: number;
868
+ }
869
+
870
+ export declare type Environment = "prod" | "sandbox";
871
+
872
+ export declare interface FuseResultMatch {
873
+ indices: ReadonlyArray<[number, number]>;
874
+ key?: {
875
+ src: string;
876
+ } | string;
877
+ value?: string;
878
+ }
879
+
880
+ declare function getCurrentEnvironment(): ChatEnvironmentConfig;
881
+
882
+ declare function getGroup(groupUid: string): Promise<Group | null | undefined>;
883
+
884
+ declare function getGroupMembersInfo(groupUid: string): Promise<ParticipantInfo[]>;
885
+
886
+ declare function getMessageTextPreview(message?: any, showEmoji?: boolean, showAttachmentName?: boolean): string;
887
+
888
+ declare function getMutedUntil(chatUid: string): Promise<string | null>;
889
+
890
+ declare function getMyChatSettings(): Promise<PersonSettings>;
891
+
892
+ declare function getOnlineGroupMemberCount(groupUid: string): Promise<number>;
893
+
894
+ declare function getSenderDisplayName(message: any, group?: {
895
+ value?: any;
896
+ }): any;
897
+
898
+ declare function getUserChats(): Promise<UserChatInfo[]>;
899
+
900
+ declare function install(app: App, options: ChatInstallOptions): Promise<void>;
901
+
902
+ export declare type Language = "nb" | "no" | "ar" | "de" | "en" | "es" | "fr" | "hi" | "ms" | "pt" | "ru" | "zh" | "zh-tw" | "sv" | "lt";
903
+
904
+ export declare interface LogEntry {
905
+ logUid: string;
906
+ correlationUid?: string;
907
+ message: string;
908
+ severity: LogSeverity;
909
+ userMetadata?: Record<string, unknown>;
910
+ timestamp: string;
911
+ }
912
+
913
+ declare function login(accessToken?: string): Promise<void>;
914
+
915
+ declare function logout(): Promise<void>;
916
+
917
+ export declare enum LogSeverity {
918
+ DEBUG = "Debug",
919
+ INFO = "Info",
920
+ WARN = "Warn",
921
+ ERROR = "Error"
922
+ }
923
+
924
+ export declare interface MessageInfo {
925
+ text?: string;
926
+ type: string;
927
+ senderName: string;
928
+ sentAt: Date;
929
+ messageReceipts?: MessageReceipt[];
930
+ }
931
+
932
+ export declare interface MessageSendOptions {
933
+ senderDisplayName?: string;
934
+ }
935
+
936
+ declare function muteChat(chatUid: string, mutedUntil: string | null): Promise<string | null>;
937
+
938
+ export declare type OnlineStatus = "online" | "offline";
939
+
940
+ export declare interface ParticipantInfo {
941
+ uid: string;
942
+ displayName: string;
943
+ avatar: string;
944
+ role: string;
945
+ }
946
+
947
+ export declare interface ParticipantSettings {
948
+ chatUid: string;
949
+ personUid: string;
950
+ mutedUntil: string | null;
951
+ }
952
+
953
+ export declare interface PersonSettings {
954
+ mutedAll: boolean;
955
+ }
956
+
957
+ export declare interface PollComposerInput {
958
+ question: string;
959
+ options: string[];
960
+ allowsMultipleAnswers?: boolean;
961
+ }
962
+
963
+ declare function proxyImage(imageUrl: string): string;
964
+
965
+ export declare interface RescheduleMessageInput {
966
+ messageId: number;
967
+ muid: string;
968
+ originalChatUid: string;
969
+ scheduleDate: string;
970
+ }
971
+
972
+ declare function retrieveCcToken(): StoredCometChatToken | null;
973
+
974
+ export declare interface ScheduleMessageInput {
975
+ scheduleDate: string;
976
+ text?: string;
977
+ file?: File;
978
+ caption?: string;
979
+ }
980
+
981
+ declare function scrollToMessage(messageId: string): void;
982
+
983
+ export declare interface SearchedItems {
984
+ conversations: {
985
+ conversation: ChatConversationItem;
986
+ matches: FuseResultMatch[];
987
+ }[];
988
+ messages: {
989
+ message: ChatMessageItem;
990
+ matches: FuseResultMatch[];
991
+ }[];
992
+ }
993
+
994
+ declare function setAccessToken(token: string): Promise<void>;
995
+
996
+ declare function setEnvironment(environment: Environment): void;
997
+
998
+ declare function setLanguage(language: Language): void;
999
+
1000
+ declare function setMuteAll(mute: boolean): Promise<boolean>;
1001
+
1002
+ declare function setThemeMode(mode: ThemeMode): void;
1003
+
1004
+ declare interface StoredCometChatToken {
1005
+ sub: string;
1006
+ token: string;
1007
+ }
1008
+
1009
+ export declare type ThemeMode = "dark" | "light";
1010
+
1011
+ declare function toggleMuteAll(): Promise<boolean>;
1012
+
1013
+ declare function toMarkdownHtml(str: string, mentionedUsers?: any[]): string;
1014
+
1015
+ declare function updateGetGroupMessages(groupMessageGetter: ((guid: string, query: string) => Promise<unknown>) | undefined): void;
1016
+
1017
+ declare function updateMyChatSettings(settings: Partial<PersonSettings>): Promise<PersonSettings>;
1018
+
1019
+ export declare interface UserChatInfo {
1020
+ chatUid: string;
1021
+ name: string;
1022
+ unreadMessageCount: number;
1023
+ lastMessage?: MessageInfo;
1024
+ membersCount: number;
1025
+ tags: string[];
1026
+ muteSettings?: Date | null;
1027
+ }
1028
+
1029
+ export declare interface View {
1030
+ componentName: string;
1031
+ props?: Record<string, unknown>;
1032
+ }
1033
+
1034
+ export { }