@poolse/react-native 3.10.1 → 3.10.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.
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ReactElement } from 'react';
3
- import { Conversation, Uuid, Citation, Message, MeetingMoment, LiveCall, RecordingMode, ConsentDecision, CallAgent, AgentEscalation, EscalationReply, AgentApproval, Attachment, CallSummary, RoomSession, GuestLobbyStatus, MeetingCard as MeetingCard$1, RsvpResponse, RoomPresenceEntry, AnnotationState, ScreenAnnotations, LiveTranscriptSegment, CallConnectionQuality, CallNetworkIssue, CallReaction, WhiteboardItem, WhiteboardModel, AttachmentUploadInput, Membership, PresenceState, LinkPreview, Poolse, Block, BlockActionRequest, CatchUp, Poll } from '@poolse/sdk';
2
+ import { ReactNode, ReactElement, Ref } from 'react';
3
+ import { Conversation, Uuid, Citation, Message, MeetingMoment, MessageCreateRequest, AttachmentUploadInput, LiveCall, RecordingMode, ConsentDecision, CallAgent, AgentEscalation, EscalationReply, AgentApproval, Attachment, CallSummary, RoomSession, GuestLobbyStatus, MeetingCard as MeetingCard$1, RsvpResponse, RoomPresenceEntry, AnnotationState, ScreenAnnotations, LiveTranscriptSegment, CallConnectionQuality, CallNetworkIssue, CallReaction, WhiteboardItem, WhiteboardModel, Membership, PresenceState, LinkPreview, Poolse, Block, BlockActionRequest, CatchUp, Poll } from '@poolse/sdk';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { StyleProp, ViewStyle, TextStyle } from 'react-native';
6
- import { GroupPosition, UseCallAgents, UseWhisper, UseAgenda, UseBreakouts, UseLobby, UseMoments, UseQuestions, UseStage, UseBreakoutsOptions, FormatKind, SlashCommand, DlpOutcome, MentionGroup, CustomEmoji } from '@poolse/react';
6
+ import { FormatKind, SlashCommand, GroupPosition, UseCallAgents, UseWhisper, UseAgenda, UseBreakouts, UseLobby, UseMoments, UseQuestions, UseStage, UseBreakoutsOptions, DlpOutcome, MentionGroup, CustomEmoji } from '@poolse/react';
7
7
  import { ThemeInput, ColorSchemePreference, NativeThemeOptions, NativeTheme } from '@poolse/theme';
8
8
  export { BUILT_IN_THEME_IDS, BuiltInThemeId, ColorScheme, ColorSchemePreference, DEFAULT_THEME_ID, FlatThemeTokens, Theme, ThemeInput, createTheme, decodeTheme, encodeTheme, tokensFromFlat } from '@poolse/theme';
9
9
 
@@ -143,1784 +143,131 @@ declare function MessageExtrasProvider({ value, children, }: {
143
143
  /** The nearest `MessageExtrasProvider`'s handlers (empty without one). */
144
144
  declare function useMessageExtras(): MessageExtrasHandlers;
145
145
 
146
- /**
147
- * - `bubbles` — chat bubbles, own messages on the right (the default).
148
- * - `list` — Slack-style full-width rows: avatar, name and time once
149
- * per run of messages.
150
- * - `compact` — Discord/IRC-style dense lines: time, coloured name and
151
- * text on one line.
152
- */
153
- type ChatLayout = 'bubbles' | 'list' | 'compact';
154
- type ChatDensity = 'comfortable' | 'compact';
155
- /** `'12h'`, `'24h'`, or your own formatter. Omitted: the locale's default. */
156
- type TimeFormat = '12h' | '24h' | ((date: Date) => string);
157
- /** What each slot function receives. */
158
- interface MessageSlotProps {
159
- message: Message;
160
- /** The viewer sent it. */
161
- isSelf: boolean;
162
- sender: MessageUser;
163
- layout: ChatLayout;
164
- /** First message of a same-sender run (always true in `compact`). */
165
- isRunStart: boolean;
146
+ interface MessageComposerProps {
166
147
  /**
167
- * What the slot renders by default (may be `null` — e.g. no header on
168
- * a continuation message). Return it to keep the default, wrap it,
169
- * or return something else.
148
+ * Called when the user taps Send. Second arg carries
149
+ * `quoted_message_id` (when replying) and `attachment_ids`
150
+ * (resolved from the composer's upload queue). Awaited so the
151
+ * composer disables until the send round-trips. Resolve to `false` to
152
+ * keep the draft (text and files), e.g. a cancelled `beforeSend`.
170
153
  */
171
- children: ReactNode;
172
- }
173
- type MessageSlot = (props: MessageSlotProps) => ReactNode;
174
- /**
175
- * Replace or wrap one part of every message, in any layout:
176
- *
177
- * - `header` — sender name and time (the name label in `bubbles`)
178
- * - `body` — the text (or "Message deleted")
179
- * - `attachments` — images and files
180
- * - `reactions` — the reaction pills
181
- * - `thread` — the "N replies" link
182
- * - `actions` — the long-press actions sheet
183
- */
184
- interface MessageSlots {
185
- header?: MessageSlot;
186
- body?: MessageSlot;
187
- attachments?: MessageSlot;
188
- reactions?: MessageSlot;
189
- thread?: MessageSlot;
190
- actions?: MessageSlot;
191
- }
192
- type MessageSlotContext = Omit<MessageSlotProps, 'children'>;
193
- /** Third argument to `renderMessage`. */
194
- interface RenderMessageContext {
195
- layout: ChatLayout;
196
- groupPosition: GroupPosition;
197
- isRunStart: boolean;
198
- /** The row ConversationView would have rendered for this message. */
199
- renderDefault: () => ReactElement;
200
- }
201
-
202
- type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
203
- interface MessageBubbleProps {
204
- message: Message;
205
- /** Used to decide left/right alignment, color, and read-receipt visibility. */
206
- currentUserId: string | null;
207
- /** `'sent'` → single tick, `'read'` → double tick (theme.colors.accent). */
208
- readState?: 'sent' | 'read';
209
- /** Label resolver keyed by `external_id` — falls back to the externalId itself. */
154
+ onSend: (body: string, opts?: ComposerSendOptions) => Promise<unknown> | void;
155
+ /** Called on every keystroke. Hook to `useTyping().signalTyping`. */
156
+ onTyping?: () => void;
157
+ placeholder?: string;
158
+ disabled?: boolean;
159
+ /** Renders a quote chip above the input; cleared by the caller in `onSend`. */
160
+ replyingTo?: Message | null;
161
+ /** User tapped (x) on the quote chip. */
162
+ onCancelReply?: () => void;
163
+ /** Display label for the quoted sender, keyed by `external_id`. */
210
164
  labelFor?: (externalId: string) => string;
211
- /** Quoted-card tap handler. Typically used to scroll the list to the original message. */
212
- onQuotedClick?: (quotedMessageId: Uuid) => void;
213
- /** Position in a same-sender cluster — drives tail-corner rendering. */
214
- groupPosition?: BubbleGroupPosition;
215
- /** Truncate at this many chars and show a "Read more" toggle. Defaults to 0 (off). */
216
- maxBodyLength?: number;
217
- /** Show a colored sender label above other-side bubbles. Only meaningful in group chats. */
218
- showSenderName?: boolean;
219
- /** Makes the sender label (see `showSenderName`) tappable. */
220
- onSenderPress?: () => void;
221
- /** Slot for an actions trigger — typically a chevron rendered by `<MessageRow>`. */
222
- actionsTrigger?: ReactNode;
223
- /**
224
- * Long-press, forwarded into the image tiles. The tiles are
225
- * Pressables of their own and win the gesture, so a wrapper's
226
- * onLongPress never fires over an image-only message without this.
227
- */
228
- onLongPress?: () => void;
229
- /** Render in-bubble attachments (images, file cards). Defaults to true. */
230
- showAttachments?: boolean;
231
- /**
232
- * Render the body as Markdown (bold, italic, code, lists, links).
233
- * Links open via `Linking.openURL`. Requires
234
- * `react-native-markdown-display` to be installed in the host app;
235
- * without it we fall back to plain text. Defaults to true.
236
- */
237
- markdown?: boolean;
238
- /**
239
- * `'12h'` / `'24h'` for the time of day, or a formatter that returns
240
- * the whole label. Defaults to the locale's.
241
- */
242
- timeFormat?: TimeFormat;
243
- /** `'compact'` tightens the text padding. Defaults to `'comfortable'`. */
244
- density?: ChatDensity;
245
- /**
246
- * Replace or wrap the `header` (sender label), `attachments` and
247
- * `body` parts. Needs `slotContext` (MessageRow passes both).
248
- */
249
- slots?: MessageSlots;
250
- slotContext?: MessageSlotContext;
251
- /** Show `message.link_previews` as cards under the text. Defaults to true. */
252
- linkPreviews?: boolean;
253
- /** Makes the "edited" label tappable — `<MessageRow>` opens the edit history. */
254
- onEditedPress?: () => void;
255
- }
256
- /**
257
- * One message bubble, structured as stacked sections rather than one
258
- * padded box: media bleeds to a 3px frame, text carries its own
259
- * padding, and the timestamp shares the last text line when measured
260
- * room allows — which is what makes "ok" a one-line bubble instead of
261
- * a squat rectangle.
262
- */
263
- declare function MessageBubble({ message, currentUserId, readState, labelFor, onQuotedClick, groupPosition, maxBodyLength, showSenderName, onSenderPress, actionsTrigger, showAttachments, markdown, onLongPress, timeFormat, density, slots, slotContext, linkPreviews, onEditedPress, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
264
-
265
- /** Who sent a message — what `onSenderPress` / `onAvatarPress` receive. */
266
- interface MessageUser {
267
- /** poolse user id. */
268
- userId: Uuid | null;
269
- /** Your own user id (`external_id`) — what `userResolver` takes. */
270
- externalId: string | null;
271
- /** Resolved name, or the fallback shown in its place. */
272
- displayName: string;
273
- avatarUrl: string | null;
274
- }
275
- interface MessageRowProps {
276
- msg: Message;
277
- meId: string | null;
278
- reactions?: boolean;
165
+ /** Show the paperclip + queue strip. Defaults true. */
279
166
  attachments?: boolean;
280
- actions?: boolean;
281
- /** Pass false in ThreadView since nested threads aren't a thing in v1. */
282
- threads?: boolean;
283
- /** WhatsApp-style quote-reply. Defaults true on ConversationView. */
284
- quotations?: boolean;
285
- /** Forwarded to `<MessageBubble markdown>`. Defaults true. */
286
- markdown?: boolean;
287
- readState?: 'sent' | 'read';
167
+ /** Tap on the paperclip — wire to `<AttachmentPicker>` from the same package. */
168
+ onAttachPress?: () => void;
288
169
  /**
289
- * Whether this row's message is the one currently being edited.
290
- * Editing happens in the composer (see MessageComposer's
291
- * `editingMessage` prop); this flag is only used to elevate the
292
- * row above the dim backdrop ConversationView renders during
293
- * edit mode.
170
+ * Distance from the top of the screen to the top of the
171
+ * KeyboardAvoidingView — typically the height of any navigation
172
+ * header sitting above the chat. Pass this when the iOS keyboard
173
+ * suggestions strip ends up covering the composer (a sign the
174
+ * computed offset is wrong). Defaults to 0; on Android it's
175
+ * ignored.
294
176
  */
295
- isEditing?: boolean;
177
+ keyboardOffset?: number;
296
178
  /**
297
- * Long-press → "Edit". Omitted entirely (no Edit option in the
298
- * menu) when the parent has decided this message isn't editable
299
- * (someone read it, it's deleted, it isn't yours).
179
+ * When set, the composer enters edit mode: prefills the input with
180
+ * the message body and renders an "Editing message" chip above
181
+ * (mirrors `replyingTo`). Tapping Send calls `onSaveEdit(body)`
182
+ * instead of `onSend`; `onCancelEdit` clears the chip and restores
183
+ * the previous draft. Pass `null` (or omit) when not editing.
300
184
  */
301
- onStartEdit?: () => void;
302
- onDelete?: () => void;
303
- onOpenThread?: () => void;
304
- onQuote?: () => void;
305
- labelFor?: (externalId: string) => string;
306
- onQuotedClick?: (quotedMessageId: Uuid) => void;
307
- groupPosition?: BubbleGroupPosition;
308
- maxBodyLength?: number;
309
- /** Show a colored sender label above other-side bubbles. */
310
- showSenderName?: boolean;
311
- /** Render an avatar to the LEFT of other-side bubbles. */
312
- showAvatar?: boolean;
313
- /** Avatar resolver — same signature as `<MemberList avatarFor>`. */
314
- avatarFor?: (externalId: string) => string | null;
315
- /** Makes the sender label tappable (other people's messages). */
316
- onSenderPress?: (user: MessageUser) => void;
317
- /** Makes the avatar tappable (other people's messages). */
318
- onAvatarPress?: (user: MessageUser) => void;
319
- /** Call-log rows: offer "Call back" (see `<CallLogRow onCallBack>`). */
320
- onCallBack?: (media: 'audio' | 'video') => void;
185
+ editingMessage?: Message | null;
186
+ onCancelEdit?: () => void;
187
+ onSaveEdit?: (body: string) => Promise<unknown> | void;
321
188
  /**
322
- * A poolse user id → display name, for system lines that name people
323
- * by internal id (the recording notice). Unknown: the name is left out.
189
+ * Controlled text. With `value`, the composer shows it and reports
190
+ * keystrokes through `onChangeText` (ConversationView uses this for
191
+ * drafts). Edit mode keeps its own text either way.
324
192
  */
325
- nameForUserId?: (userId: string) => string | null | undefined;
326
- /** `'bubbles'` (default), `'list'` or `'compact'` — see `ChatLayout`. */
327
- layout?: ChatLayout;
328
- /** `'comfortable'` (default) or `'compact'` spacing. */
329
- density?: ChatDensity;
330
- /** `'12h'`, `'24h'` or a formatter for timestamps. Defaults to the locale's. */
331
- timeFormat?: TimeFormat;
332
- /** Replace or wrap parts of the row — see `MessageSlots`. */
333
- slots?: MessageSlots;
193
+ value?: string;
194
+ /** Every change to the (non-edit) text, typed or programmatic. */
195
+ onChangeText?: (text: string) => void;
196
+ /** The cursor / selection moved. */
197
+ onSelectionChange?: (selection: {
198
+ start: number;
199
+ end: number;
200
+ }) => void;
201
+ /** An emoji button that opens `<EmojiPicker>` and inserts at the cursor. Defaults to true. */
202
+ emojiPicker?: boolean;
203
+ /** Rendered above the input row — e.g. `<MentionInput>`'s suggestions. */
204
+ accessory?: ReactNode;
334
205
  /**
335
- * The message @-mentions the viewer: `list` and `compact` mark it
336
- * with an accent bar.
206
+ * Show the Markdown formatting toolbar (bold, italic, strike, code,
207
+ * link, quote, lists, checklist, code block, table) above the input.
208
+ * Default `false`. Pass an array to choose the buttons and their order.
337
209
  */
338
- mentionsMe?: boolean;
339
- /** Presence badge on the sender's avatar (needs `showAvatar`). */
340
- showPresence?: boolean;
341
- /** Show the message's link previews as cards under the text. Defaults to true. */
342
- linkPreviews?: boolean;
210
+ formattingToolbar?: boolean | readonly FormatKind[];
211
+ /** Slash commands to suggest when the message starts with `/` (IN3). */
212
+ commands?: readonly SlashCommand[];
343
213
  /**
344
- * Long-press → "Remove preview" on your own message (one per link).
345
- * Receives the preview's url — `chat.messages.update(id, { remove_link_previews: [url] })`.
214
+ * Shows a mic in the send button's place while there is nothing to send
215
+ * (no text, no ready files, not editing); pressing it calls this, e.g. to
216
+ * start recording a voice message.
346
217
  */
347
- onRemoveLinkPreview?: (url: string) => void;
348
- /** Long-press → "Mark unread" on other people's messages. */
349
- onMarkUnread?: () => void;
350
- /** The "edited" label opens the edit history (`chat.messages.edits`). Defaults to true. */
351
- editHistory?: boolean;
352
- /** Unsent message (queued or failed in the outbox): the Retry under it. */
353
- onRetrySend?: () => void;
354
- /** Unsent message: the Delete under it. */
355
- onDiscardSend?: () => void;
356
- }
357
- declare function MessageRow(props: MessageRowProps): react_jsx_runtime.JSX.Element | null;
358
-
359
- /** What the composer held for a conversation. */
360
- interface ConversationDraft {
361
- text: string;
362
- /** The message being quote-replied to, if any. */
363
- quote: Message | null;
218
+ onMic?: () => void;
219
+ /** Drawn instead of the input row while set, e.g. a voice recording's bar. */
220
+ recordingBar?: ReactNode;
364
221
  }
365
222
  /**
366
- * Where `persistDrafts` keeps drafts between launches — MMKV,
367
- * AsyncStorage or anything with the same three calls. Values are JSON
368
- * strings; each call may return a promise.
223
+ * `ConversationView` / `ThreadView`'s `beforeSend`: sees the message about
224
+ * to go out and returns it (changed or not), or `false` to cancel — the
225
+ * text and files then stay in the composer.
369
226
  */
370
- interface DraftStorage {
371
- get: (key: string) => string | null | undefined | Promise<string | null | undefined>;
372
- set: (key: string, value: string) => void | Promise<void>;
373
- remove: (key: string) => void | Promise<void>;
374
- }
375
-
376
- interface ConversationViewProps {
377
- conversationId: Uuid;
378
- emptyState?: ReactElement | string;
379
- /**
380
- * Custom row renderer. Return `null` / `undefined` to fall back to
381
- * the default row for that message (so you can override just the
382
- * message kinds you care about). The third argument carries the
383
- * layout and `renderDefault()`, the row this view would have drawn.
384
- */
385
- renderMessage?: (msg: Message, currentUserId: string | null, context: RenderMessageContext) => ReactElement | null | undefined;
386
- /**
387
- * How messages are drawn:
388
- * * `'bubbles'` (default) — chat bubbles, yours on the right.
389
- * * `'list'` — Slack-style full-width rows; avatar, name and time
390
- * once per run, later messages' time dimmed in the gutter,
391
- * "N replies" under threads. Long-press for actions.
392
- * * `'compact'` — Discord/IRC-style dense lines: time, the name in
393
- * the sender's colour, the text; an accent bar on messages that
394
- * mention you.
395
- */
396
- layout?: ChatLayout;
397
- /** `'comfortable'` (default) or `'compact'` spacing, in any layout. */
398
- density?: ChatDensity;
399
- /**
400
- * Show avatars. Defaults: `list` on, `compact` off, `bubbles` per
401
- * `avatars` (others' messages in group chats). Overrides `avatars`.
402
- */
403
- showAvatars?: boolean;
404
- /** `'12h'`, `'24h'` or a formatter. Defaults to the locale's. */
405
- timeFormat?: TimeFormat;
406
- /**
407
- * Same-sender messages less than this many minutes apart form one
408
- * run (one bubble cluster, one `list` header). Default 5.
409
- */
410
- groupWindowMinutes?: number;
411
- /** Day dividers between messages on different days. Defaults to `true`. */
412
- daySeparators?: boolean;
413
- /**
414
- * Replace or wrap one part of every message — `header`, `body`,
415
- * `attachments`, `reactions`, `thread`, `actions` — in any layout.
416
- * Each receives the message, sender, layout and its default
417
- * rendering as `children`.
418
- */
419
- slots?: MessageSlots;
420
- labelFor?: (externalId: string) => string;
421
- avatarFor?: (externalId: string) => string | null;
422
- /**
423
- * Renders the default `<ChatHeader>` at the top of the chat surface.
424
- * * `true` (default) — auto chat header (other user / group name).
425
- * * `false` — no header (you supply your own above).
426
- * * `ReactElement` — custom header node, rendered as-is.
427
- */
428
- header?: boolean | ReactElement;
429
- /** Tap on the header's members icon — typically opens a sheet. */
430
- onHeaderMembersPress?: () => void;
431
- /** Tap on the header itself — typically opens a conversation profile. */
432
- onHeaderPress?: () => void;
433
- reactions?: boolean;
434
- mentions?: boolean;
435
- attachments?: boolean;
436
- actions?: boolean;
437
- threads?: boolean;
438
- quotations?: boolean;
439
- /**
440
- * Show read ticks on your own messages. Only the ticks: the view
441
- * marks messages read either way, so unread counts stay right.
442
- */
443
- readReceipts?: boolean;
444
- /** Render message bodies as Markdown (links, bold, code). Defaults true. */
445
- markdown?: boolean;
446
- maxBodyLength?: number;
447
- /** Show sender labels in group chats. `auto` (default), `always`, `never`. */
448
- senderLabels?: 'auto' | 'always' | 'never';
449
- /** Show avatars to the left of other-side bubbles in group chats. Same semantics. */
450
- avatars?: 'auto' | 'always' | 'never';
451
- /**
452
- * Fires once the server accepts a new read position (the view marks
453
- * the newest message read as it arrives). Receives the conversation
454
- * id + the message id marked as last-read. Every
455
- * `useConversations()` under the same provider has already cleared
456
- * the conversation's badge by then.
457
- */
458
- onMarkedRead?: (conversationId: string, messageId: string) => void;
459
- /**
460
- * Fires after every successful message send — e.g. to refetch
461
- * conversations from a list that isn't `useConversations()` (which
462
- * gets the new preview over realtime already).
463
- */
464
- onSent?: (conversationId: string) => void;
465
- /**
466
- * Jump to this message: older pages load until it's there, then it
467
- * scrolls into view and is highlighted briefly. Set it again (or to
468
- * another id) to jump again. When it can't be found — deleted, a
469
- * thread reply, or not in this conversation — a short notice shows
470
- * and `onFocusMessageNotFound` fires.
471
- */
472
- focusMessageId?: Uuid | null;
473
- /** `focusMessageId` couldn't be found in this conversation. */
474
- onFocusMessageNotFound?: (messageId: Uuid) => void;
475
- /** Makes the sender label on other people's messages tappable. */
476
- onSenderPress?: (user: MessageUser) => void;
477
- /** Makes the avatar next to other people's messages tappable. */
478
- onAvatarPress?: (user: MessageUser) => void;
479
- /**
480
- * `false` hides the composer (and with it quote-reply and the
481
- * attachment picker) — for an archived conversation or a viewer who
482
- * can't post. Defaults to `true`.
483
- */
484
- composer?: boolean;
485
- /** Same as `composer={false}`. */
486
- readOnly?: boolean;
487
- /**
488
- * keyboardVerticalOffset passed to the internal KeyboardAvoidingView.
489
- * On iOS this MUST equal the distance from the screen top to the
490
- * KAV's top (status bar + safe-area-top + any nav header above
491
- * the chat). `<PoolseInbox>` computes this for you. Standalone
492
- * consumers pass it manually.
493
- */
494
- keyboardOffset?: number;
495
- /**
496
- * Offer "Call back" on call-log rows the viewer missed or declined,
497
- * or placed with no answer. Receives the call's media; place the call
498
- * on this conversation.
499
- */
500
- onCallBack?: (media: 'audio' | 'video') => void;
501
- /**
502
- * Show a "Call in progress · Join" banner while a call runs on this
503
- * conversation that the viewer is not on. Called with the live call
504
- * when they tap Join.
505
- */
506
- onJoinCall?: (call: LiveCall) => void;
507
- /**
508
- * The call this device is already on, if any — its banner is hidden
509
- * (the viewer is in the room, or ringing out as its caller).
510
- */
511
- currentCallId?: string | null;
512
- /**
513
- * A source under an assistant's answer was pressed (AG5). Without it,
514
- * message sources in this conversation are focused here.
515
- */
516
- onOpenCitation?: (citation: Citation, message: Message) => void;
517
- /**
518
- * A point in a call was pressed — a line or moment of a summary (RT6):
519
- * open its recording at `moment.recordingMs` or transcript at `moment.startMs`.
520
- */
521
- onOpenMoment?: (moment: MeetingMoment) => void;
522
- /**
523
- * Plays clips in chat (RT9): your media adapter (expo-video,
524
- * expo-audio…) — see `RenderMedia` and the README. Without it a clip
525
- * shows its time range only.
526
- */
527
- renderMedia?: RenderMedia;
528
- /** Presence badges on message avatars (where avatars show). Defaults to `false`. */
529
- showPresence?: boolean;
530
- /**
531
- * Link previews (`message.link_previews`) as cards under the text,
532
- * with "Remove preview" in the sender's long-press sheet. Defaults to `true`.
533
- */
534
- linkPreviews?: boolean;
535
- /**
536
- * A "New messages" line above the first message that was unread when
537
- * the conversation opened, and a pill that jumps to it (loading older
538
- * pages as needed) while it's off screen. Defaults to `true`.
539
- */
540
- newMessagesDivider?: boolean;
541
- /**
542
- * Unsent text and the quote target are kept per conversation in
543
- * memory, across conversation switches, always. With a `draftStorage`
544
- * they are also written there, so they survive a restart; set
545
- * `persistDrafts={false}` to keep them in memory only. Defaults to
546
- * `true` when `draftStorage` is given.
547
- */
548
- persistDrafts?: boolean;
549
- /**
550
- * Where drafts persist — `{ get, set, remove }` over string values
551
- * (MMKV, AsyncStorage, …); each may return a promise. Keys are
552
- * `poolse:draft:<conversationId>`.
553
- */
554
- draftStorage?: DraftStorage;
555
- /** An emoji button in the composer. Defaults to `true`. */
556
- emojiPicker?: boolean;
557
- /** Largest attachment accepted, in bytes; larger picks show an error. */
558
- maxFileSize?: number;
559
- /** Accepted attachment types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
560
- acceptedFileTypes?: string[];
561
- /**
562
- * Long-press → "Mark unread" on other people's messages. Defaults to
563
- * `true`. The view then stops marking messages read until you send
564
- * one or reopen the conversation.
565
- */
566
- markUnread?: boolean;
567
- /** Fires after "Mark unread" succeeded (the unread counts follow over realtime). */
568
- onMarkedUnread?: (conversationId: string, messageId: string) => void;
569
- }
570
- declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, avatarFor, header, onHeaderMembersPress, onHeaderPress, reactions, mentions, attachments, actions, threads, quotations, readReceipts, markdown, maxBodyLength, senderLabels, avatars, onMarkedRead, onSent, focusMessageId, onFocusMessageNotFound, onSenderPress, onAvatarPress, composer, readOnly, keyboardOffset, onCallBack, onJoinCall, currentCallId, onOpenCitation, onOpenMoment, renderMedia, layout, density, showAvatars: showAvatarsProp, timeFormat, groupWindowMinutes, daySeparators, slots, showPresence, linkPreviews, newMessagesDivider, persistDrafts, draftStorage, emojiPicker, maxFileSize, acceptedFileTypes, markUnread, onMarkedUnread, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
571
-
572
- interface ChatHeaderProps {
573
- conversationId: Uuid;
574
- /**
575
- * Override the title resolver — useful when you want to derive the
576
- * direct-chat name from your own user directory instead of going
577
- * through the SDK's `userResolver`. When omitted, falls back to:
578
- * * direct → the other member's display name (via `useUser`)
579
- * * group → `conversation.name`
580
- */
581
- labelFor?: (externalId: string) => string;
582
- /** Optional avatar URL resolver for the other party (direct only). */
583
- avatarFor?: (externalId: string) => string | null;
584
- /** Right-side icon button — typically opens a member-list sheet. */
585
- onMembersPress?: () => void;
586
- /**
587
- * Tap handler for the whole header. Behavior:
588
- * * Direct chat → calls this if provided, otherwise no-op.
589
- * * Group chat → calls this if provided. If omitted, the header
590
- * opens a built-in group-details sheet showing the member
591
- * roster with live presence.
592
- */
593
- onPress?: () => void;
594
- /**
595
- * When provided, renders a back arrow on the LEFT of the header
596
- * that calls this handler on tap. Used by `<PoolseInbox>` to
597
- * navigate back to the conversation list; safe to wire from your
598
- * own navigator too.
599
- */
600
- onBack?: () => void;
227
+ type BeforeSend = (draft: MessageCreateRequest) => MessageCreateRequest | false | Promise<MessageCreateRequest | false>;
228
+ /**
229
+ * `ConversationView` / `ThreadView`'s `composerProps`: passed through to the
230
+ * composer. The view keeps the text, sending, quoting and editing to
231
+ * itself; `onTyping` runs alongside its own.
232
+ */
233
+ type ComposerPassThroughProps = Partial<Omit<MessageComposerProps, 'onSend' | 'value' | 'onChangeText' | 'replyingTo' | 'onCancelReply' | 'editingMessage' | 'onCancelEdit' | 'onSaveEdit'>>;
234
+ /** The second argument of `onSend`. */
235
+ interface ComposerSendOptions {
236
+ quoted_message_id?: Uuid;
237
+ attachment_ids?: Uuid[];
238
+ /** Set when the sender chose "Send anyway" on a data-loss-prevention warning (AD6). */
239
+ dlp_acknowledged?: true;
601
240
  }
602
241
  /**
603
- * Top-of-chat header bar.
604
- * * 1:1 direct → other user's display name + avatar + presence badge,
605
- * and "Online" / "Away" / "In a call" / "Last seen …" under the name.
606
- * * Group → conversation name + "N members" + group-tile avatar.
607
- *
608
- * Sits above `<MessageList>` inside `<ConversationView>` by default;
609
- * pass `header={false}` to `<ConversationView>` if you mount your own.
242
+ * Imperative handle for parents that want to add files to the
243
+ * composer's upload queue externally (drag/drop on a wrapper,
244
+ * deep-link, attachment shortcut).
610
245
  */
611
- declare function ChatHeader({ conversationId, labelFor, avatarFor, onMembersPress, onPress, onBack, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
612
-
613
- interface GroupDetailsSheetProps {
614
- visible: boolean;
615
- onClose: () => void;
616
- conversationId: Uuid;
617
- /** Resolve external_id → display name. Same shape as MemberList. */
618
- labelFor?: (externalId: string) => string;
619
- /** Resolve external_id → avatar URL. Same shape as MemberList. */
620
- avatarFor?: (externalId: string) => string | null;
621
- /**
622
- * Predicate for the per-row remove button. Defaults to "never show"
623
- * — wire it on the parent for owners/admins. Receives the
624
- * Membership row so you can scope to roles or exclude self.
625
- */
626
- canRemoveMember?: (m: {
627
- user_id: string;
628
- external_id: string;
629
- role: string;
630
- }) => boolean;
246
+ interface MessageComposerHandle {
247
+ /** Enqueue ready-to-upload inputs. The picker component is the usual caller; this is the escape hatch. */
248
+ addFiles: (inputs: AttachmentUploadInput[]) => void;
249
+ focus: () => void;
250
+ /** Empty the input. Queued files stay. */
251
+ clear: () => void;
252
+ /** The text in the input right now. */
253
+ getText: () => string;
254
+ /** Replace the text. */
255
+ setText: (text: string) => void;
256
+ /** Insert text at the cursor (replacing a selection). */
257
+ insertText: (text: string) => void;
258
+ /** Move the cursor (`start === end`) or select a range. */
259
+ setSelection: (start: number, end: number) => void;
631
260
  }
632
- /**
633
- * Bottom-sheet (85% of screen) that opens when the user taps the
634
- * group chat header. Shows group name + member count at the top,
635
- * then a scrollable roster with avatars, display names (resolved
636
- * through `labelFor` / `userResolver`), role badges, and live
637
- * presence dots (driven by `MemberList` internally).
638
- */
639
- declare function GroupDetailsSheet({ visible, onClose, conversationId, labelFor, avatarFor, canRemoveMember, }: GroupDetailsSheetProps): react_jsx_runtime.JSX.Element;
261
+ declare const MessageComposer: react.ForwardRefExoticComponent<MessageComposerProps & react.RefAttributes<MessageComposerHandle>>;
640
262
 
641
- interface CallLogRowProps {
642
- /** The call-log message. Rows that aren't call logs render nothing. */
643
- msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
644
- deleted_at?: string | null;
263
+ declare const ICONS: {
264
+ readonly attachment: {
265
+ readonly vb: "0 0 24 24";
266
+ readonly d: "<path d=\"M20 11.6 11.4 20.2a5 5 0 0 1-7.1-7.1l8.7-8.7a3.3 3.3 0 0 1 4.7 4.7l-8.6 8.6a1.65 1.65 0 0 1-2.36-2.32l7.86-7.86\"/>";
645
267
  };
646
- /** Current user's id — decides how the call is worded for them. */
647
- meId: string | null;
648
- /**
649
- * Offer "Call back" on calls the viewer missed or declined, or placed
650
- * with no answer. Receives the call's media. Omit to show no action.
651
- */
652
- onCallBack?: (media: 'audio' | 'video') => void;
653
- }
654
- /**
655
- * Centered, compact timeline line for call-log system messages
656
- * ("Voice call · 3:12", "Missed call"). Same visual family as
657
- * `<DaySeparator>` — surface chip, hairline border, small semibold
658
- * label — so it reads as a separator between bubble clusters rather
659
- * than a message. No reactions, thread pill, swipe or long-press.
660
- *
661
- * `<MessageRow>` renders this automatically for call-log messages.
662
- */
663
- declare function CallLogRow({ msg, meId, onCallBack }: CallLogRowProps): react_jsx_runtime.JSX.Element | null;
664
-
665
- interface LiveCallBannerProps {
666
- call: LiveCall;
667
- /** How many people are in the room right now. */
668
- inCall: number;
669
- onJoin: (call: LiveCall) => void;
670
- }
671
- /**
672
- * "Voice call in progress · 2 on the call [Join]" — a strip across the
673
- * top of a conversation while a call runs that the viewer is not on.
674
- * `<ConversationView onJoinCall>` renders it for you; use it directly
675
- * to place it elsewhere (with `useLiveCall`).
676
- */
677
- declare function LiveCallBanner({ call, inCall, onJoin }: LiveCallBannerProps): react_jsx_runtime.JSX.Element;
678
-
679
- interface RecordingBannerProps {
680
- /** A recording is running. */
681
- recording: boolean;
682
- /** A live transcript is running. */
683
- transcribing?: boolean;
684
- mode?: RecordingMode | null;
685
- /** Capture needs consent here (`useRecording().consentRequired`). */
686
- consentRequired?: boolean;
687
- /** Your answer (`useRecording().myConsent`). `declined` shows "listen-only" and a way to change it. */
688
- myConsent?: ConsentDecision | null;
689
- /** Shows a Stop button (for whoever may stop it). */
690
- onStop?: () => void;
691
- /** After declining: reopen the prompt. */
692
- onChangeConsent?: () => void;
693
- /** Disable the buttons (a request is in flight). */
694
- pending?: boolean;
695
- style?: StyleProp<ViewStyle>;
696
- }
697
- /**
698
- * "● Recording · Everyone in the call is told [Stop]" — a strip across
699
- * a captured call, for everyone in it (late joiners too). Renders nothing
700
- * while nothing is captured.
701
- */
702
- declare function RecordingBanner({ recording, transcribing, mode, consentRequired, myConsent, onStop, onChangeConsent, pending, style, }: RecordingBannerProps): react_jsx_runtime.JSX.Element | null;
703
- interface RecordingIndicatorProps {
704
- recording: boolean;
705
- transcribing?: boolean;
706
- mode?: RecordingMode | null;
707
- /** Text colour, e.g. white over video. Defaults to the theme's danger colour. */
708
- color?: string;
709
- style?: StyleProp<ViewStyle>;
710
- }
711
- /** A small "● REC" pill for a call header or tile. Nothing while nothing is captured. */
712
- declare function RecordingIndicator({ recording, transcribing, mode, color, style, }: RecordingIndicatorProps): react_jsx_runtime.JSX.Element | null;
713
- interface ConsentPromptProps {
714
- /** A recording is running. */
715
- recording: boolean;
716
- /** A live transcript is running. */
717
- transcribing?: boolean;
718
- mode?: RecordingMode | null;
719
- /** Who started it, if known. Never pass a raw id. */
720
- startedByName?: string | null;
721
- /** Answer (e.g. `useRecording().consent`). A `false` result keeps the prompt open with an error. */
722
- onAnswer: (decision: ConsentDecision) => Promise<boolean | void> | boolean | void;
723
- /**
724
- * Called once an accept went through: publishing is allowed again.
725
- * With the native call core, re-enable the microphone and camera here;
726
- * the SDK's `CallRoom` does it by itself.
727
- */
728
- onAccepted?: () => void;
729
- /** Called after a decline went through (e.g. close the prompt). */
730
- onDeclined?: () => void;
731
- pending?: boolean;
732
- error?: string | null;
733
- /** Cover the parent with a scrim (absolute fill). Defaults to true; false renders the card only. */
734
- overlay?: boolean;
735
- style?: StyleProp<ViewStyle>;
736
- }
737
- /**
738
- * Asks someone in a captured call for consent — shown to anyone who
739
- * hasn't accepted, late joiners included, when the room requires it.
740
- * Until they agree their microphone and camera stay off; they still hear
741
- * and see everyone. Declining keeps them listen-only.
742
- */
743
- declare function ConsentPrompt({ recording, transcribing, mode, startedByName, onAnswer, onAccepted, onDeclined, pending, error, overlay, style, }: ConsentPromptProps): react_jsx_runtime.JSX.Element;
744
- interface RecordingNoticeRowProps {
745
- /** The recording notice message. Rows that aren't one render nothing. */
746
- msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
747
- deleted_at?: string | null;
748
- };
749
- /** Current user's id — "by you". */
750
- meId: string | null;
751
- /** A poolse user id → display name. Unknown: the name is left out. */
752
- nameFor?: (userId: Uuid) => string | null | undefined;
753
- }
754
- /**
755
- * "● Recording started · by Elena · 10:04" — the chat line the server
756
- * posts when a recording starts or stops. `<MessageRow>` renders it.
757
- */
758
- declare function RecordingNoticeRow({ msg, meId, nameFor }: RecordingNoticeRowProps): react_jsx_runtime.JSX.Element | null;
759
-
760
- interface LiveTranscriptPanelProps {
761
- /** The call. Null renders an empty panel. */
762
- callId: string | null;
763
- /** Keep the transcript topic open. Defaults to true; false while the panel is hidden. */
764
- enabled?: boolean;
765
- /** Start / Stop transcription buttons (someone in the call). Defaults to true. */
766
- showControls?: boolean;
767
- /** Shows a close button. */
768
- onClose?: () => void;
769
- title?: string;
770
- style?: StyleProp<ViewStyle>;
771
- }
772
- /**
773
- * The call's live transcript as it is spoken: speaker, time and text,
774
- * the current speaker's words in grey until they are final. Opens the
775
- * transcript topic while mounted (the last 200 lines arrive at once)
776
- * and sticks to the bottom unless you scroll up.
777
- */
778
- declare function LiveTranscriptPanel({ callId, enabled, showControls, onClose, title, style, }: LiveTranscriptPanelProps): react_jsx_runtime.JSX.Element;
779
- interface TranscriptViewerProps {
780
- /** The call whose stored transcript to show. */
781
- callId: string | null;
782
- /**
783
- * Offer speaker renames. Defaults to true; the server allows it for
784
- * people who took part in the call and the conversation's owners and
785
- * admins, and anyone else gets an explanation instead.
786
- */
787
- canRename?: boolean;
788
- /** Makes timestamps pressable, e.g. to seek a recording (ms since the transcript started). */
789
- onSeek?: (ms: number) => void;
790
- title?: string;
791
- style?: StyleProp<ViewStyle>;
792
- }
793
- /**
794
- * A call's stored transcript: who spoke, when, and what they said;
795
- * search within it; and correct a speaker's name (everyone viewing sees
796
- * the change at once).
797
- */
798
- declare function TranscriptViewer({ callId, canRename, onSeek, title, style, }: TranscriptViewerProps): react_jsx_runtime.JSX.Element | null;
799
-
800
- interface AgentBadgeProps {
801
- /** `sm` (default) beside names in lists; `xs` in dense rows. */
802
- size?: 'xs' | 'sm';
803
- /** Defaults to "Agent". */
804
- label?: string;
805
- style?: StyleProp<ViewStyle>;
806
- }
807
- declare function AgentBadge({ size, label, style }: AgentBadgeProps): react_jsx_runtime.JSX.Element;
808
- /**
809
- * The badge as nested text, for inside a `<Text>` (a sender label that
810
- * is itself pressable text). Same wording and color as `<AgentBadge>`.
811
- */
812
- declare function AgentBadgeInline({ label }: {
813
- label?: string;
814
- }): react_jsx_runtime.JSX.Element;
815
-
816
- interface CallAgentTagProps {
817
- agent: Pick<CallAgent, 'mode' | 'status' | 'speaking'>;
818
- /** Show what it's doing ("Taking notes"). Defaults to true. */
819
- showState?: boolean;
820
- /** The participant's live speaking flag; overrides the agent's. */
821
- speaking?: boolean;
822
- /** Over video: light text. */
823
- onMedia?: boolean;
824
- style?: StyleProp<ViewStyle>;
825
- }
826
- /** The Agent badge with the agent's state — beside its name wherever it's listed in a call. */
827
- declare function CallAgentTag({ agent, showState, speaking, onMedia, style, }: CallAgentTagProps): react_jsx_runtime.JSX.Element;
828
- interface InviteAgentMenuProps {
829
- /** `useCallAgents(conversationId, callId)`. */
830
- callAgents: UseCallAgents;
831
- onDone?: () => void;
832
- style?: StyleProp<ViewStyle>;
833
- }
834
- /**
835
- * Bring a note-taker (silent: transcript, summary and tasks) or an
836
- * assistant (answers when addressed by name) into the call, switch
837
- * one's mode, or send one out.
838
- */
839
- declare function InviteAgentMenu({ callAgents, onDone, style }: InviteAgentMenuProps): react_jsx_runtime.JSX.Element;
840
- interface WhisperPanelProps {
841
- /** `useWhisper(callId)`. */
842
- whisper: UseWhisper;
843
- /** Height of the hint list before it scrolls. Defaults to 320. */
844
- maxHeight?: number;
845
- style?: StyleProp<ViewStyle>;
846
- }
847
- /**
848
- * Private hints during a call — facts, what you promised last time,
849
- * questions to raise. Only you see them; the panel says so.
850
- */
851
- declare function WhisperPanel({ whisper, maxHeight, style }: WhisperPanelProps): react_jsx_runtime.JSX.Element;
852
- interface EscalationCardProps {
853
- escalation: AgentEscalation;
854
- /** The agent's name; defaults to the directory's, else "Your agent". */
855
- agentName?: string | null;
856
- meetingTitle?: string | null;
857
- /** Defaults to `poolse.escalations.reply`. */
858
- reply?: (id: string, reply: EscalationReply) => Promise<unknown>;
859
- onReplied?: (escalation: AgentEscalation) => void;
860
- style?: StyleProp<ViewStyle>;
861
- }
862
- /**
863
- * Your agent, in a meeting for you, asking something its brief doesn't
864
- * cover: Approve, Decline, or write an answer.
865
- */
866
- declare function EscalationCard({ escalation: e, agentName, meetingTitle, reply, onReplied, style, }: EscalationCardProps): react_jsx_runtime.JSX.Element;
867
- interface EscalationListProps {
868
- /** Only this call's. */
869
- callId?: string | null;
870
- /** Shown when nothing waits. Defaults to nothing. */
871
- empty?: string | null;
872
- style?: StyleProp<ViewStyle>;
873
- }
874
- /** Everything your agents wait for you to answer, live. */
875
- declare function EscalationList({ callId, empty, style }: EscalationListProps): react_jsx_runtime.JSX.Element | null;
876
-
877
- interface ApprovalCardProps {
878
- /** The request — from `useApprovals()` or `useApproval(id)`. */
879
- approval: AgentApproval;
880
- /** The agent's name when the request leaves it out (e.g. the message's sender). */
881
- agentName?: string | null;
882
- /** After an answer went through. */
883
- onDecided?: (approval: AgentApproval) => void;
884
- /** How many detail lines show before "Show all". Defaults to 4. */
885
- maxDetails?: number;
886
- style?: StyleProp<ViewStyle>;
887
- }
888
- /**
889
- * An agent asking before it calls a tool with an effect outside the chat. One tap
890
- * approves or denies; a reason is optional. Follows the shared
891
- * approvals store, so an answer given anywhere shows here at once.
892
- */
893
- declare function ApprovalCard({ approval: initial, agentName, onDecided, maxDetails, style, }: ApprovalCardProps): react_jsx_runtime.JSX.Element;
894
- interface MessageApprovalProps {
895
- /** `approvalIdOf(message)`. */
896
- approvalId: string;
897
- /** The asking agent's name (the message's sender) when the directory doesn't know it. */
898
- agentName?: string | null;
899
- style?: StyleProp<ViewStyle>;
900
- }
901
- /**
902
- * The approval an agent's message waits for (`agent_meta.approval_id`),
903
- * loaded and kept live. Nothing shows for someone else's approval.
904
- */
905
- declare function MessageApproval({ approvalId, agentName, style }: MessageApprovalProps): react_jsx_runtime.JSX.Element | null;
906
- interface ApprovalListProps {
907
- emptyState?: ReactNode;
908
- /** Re-list every so often as a fallback to live events (ms; 0 = never). Defaults to 60 s. */
909
- pollMs?: number;
910
- style?: StyleProp<ViewStyle>;
911
- }
912
- /** Everything waiting for your approval, newest first, live. */
913
- declare function ApprovalList({ emptyState, pollMs, style }: ApprovalListProps): react_jsx_runtime.JSX.Element;
914
- interface MessageCitationsProps {
915
- message: Message;
916
- /** Defaults to `citationsOf(message)`. */
917
- citations?: Citation[];
918
- /** Defaults to the `MessageExtrasProvider`'s `onOpenCitation`. */
919
- onOpenCitation?: (citation: Citation, message: Message) => void;
920
- /** `onBrand` inside your own (coloured) bubble. */
921
- tone?: 'default' | 'onBrand';
922
- style?: StyleProp<ViewStyle>;
923
- }
924
- /** The sources of an assistant's answer as links. Plain text when nothing handles a press. */
925
- declare function MessageCitations({ message, citations, onOpenCitation, tone, style, }: MessageCitationsProps): react_jsx_runtime.JSX.Element | null;
926
-
927
- interface SummaryCardProps {
928
- summary: CallSummary;
929
- /** A timed line or moment was pressed. Defaults to the provider's; without one, times are plain text. */
930
- onOpenMoment?: (moment: MeetingMoment) => void;
931
- /** A poolse user id → name, for assignees. Defaults to the provider's, then the conversation's members. */
932
- nameForUserId?: (userId: string) => string | null | undefined;
933
- /** Fetch the full copy when shortened and follow `summary:ready`. Defaults to true. */
934
- live?: boolean;
935
- style?: StyleProp<ViewStyle>;
936
- }
937
- /** A call's summary: overview, decisions, action items, open questions, sections and moments. */
938
- declare function SummaryCard({ summary: initial, onOpenMoment, nameForUserId, live, style, }: SummaryCardProps): react_jsx_runtime.JSX.Element;
939
- interface SummaryMessageRowProps {
940
- msg: Message;
941
- meId: string | null;
942
- nameForUserId?: (userId: string) => string | null | undefined;
943
- }
944
- /** A `kind: "call_summary"` message in a list: who posted it, then the card. */
945
- declare function SummaryMessageRow({ msg, nameForUserId }: SummaryMessageRowProps): react_jsx_runtime.JSX.Element | null;
946
- interface AskMeetingsProps {
947
- callId?: string | null;
948
- conversationId?: string | null;
949
- onOpenMoment?: (moment: MeetingMoment) => void;
950
- placeholder?: string;
951
- style?: StyleProp<ViewStyle>;
952
- }
953
- /** A question box over your meetings, answered with links to the moments. */
954
- declare function AskMeetings({ callId, conversationId, onOpenMoment, placeholder, style, }: AskMeetingsProps): react_jsx_runtime.JSX.Element;
955
- interface ClipPlayerProps {
956
- /** A clip shared in chat (an attachment) — plays its own file. */
957
- attachment?: Attachment | null;
958
- /** A clip by id — shows "Cutting…" until `clip:ready`. */
959
- clipId?: string | null;
960
- /** Or a range of a recording: plays from `startMs` and stops at `endMs`. */
961
- clip?: {
962
- recordingId: string;
963
- startMs: number;
964
- endMs: number;
965
- } | null;
966
- onOpenRecording?: (recordingId: string, startMs: number) => void;
967
- /** The media adapter. Defaults to the provider's `renderMedia`. */
968
- renderMedia?: RenderMedia;
969
- compact?: boolean;
970
- style?: StyleProp<ViewStyle>;
971
- }
972
- /** A short piece of a call's recording. */
973
- declare function ClipPlayer({ attachment, clipId, clip: rangeClip, onOpenRecording, renderMedia, compact, style, }: ClipPlayerProps): react_jsx_runtime.JSX.Element;
974
- interface RecordingPlayerProps {
975
- recordingId: string;
976
- showTranscript?: boolean;
977
- /** Start here (recording ms — a moment's `recordingMs`); a new value seeks. */
978
- startMs?: number | null;
979
- defaultSkipSilence?: boolean;
980
- /** The media adapter. Defaults to the provider's `renderMedia`. */
981
- renderMedia?: RenderMedia;
982
- style?: StyleProp<ViewStyle>;
983
- }
984
- interface RecordingPlayerHandle {
985
- /** Seek to recording time `ms` and play. */
986
- seek: (ms: number) => void;
987
- /** Seek to transcript time `ms` (a summary item's `startMs`) and play. */
988
- seekTranscript: (ms: number) => void;
989
- play: () => void;
990
- pause: () => void;
991
- }
992
- /**
993
- * A finished recording (`GET /v1/recordings/:id/playback`): 1×–2× speed,
994
- * skip silence, chapters, and the transcript scrolling along — tap a line
995
- * to play from there.
996
- */
997
- declare const RecordingPlayer: react.ForwardRefExoticComponent<RecordingPlayerProps & react.RefAttributes<RecordingPlayerHandle>>;
998
-
999
- /** Someone in the call, as the panels name them. */
1000
- interface MeetingParticipant {
1001
- userId: string;
1002
- name?: string | null;
1003
- /** Joined from a guest link: shown with a Guest mark. */
1004
- guest?: boolean;
1005
- avatarUrl?: string | null;
1006
- /**
1007
- * An agent in the call (AG13): named by its `label` and shown with the
1008
- * Agent badge and what it's doing. `useCallAgents().agentFor(userId)`,
1009
- * or pass the call's `agents` to the panel.
1010
- */
1011
- agent?: CallAgent | null;
1012
- /** Speaking now (the roster's flag) — an agent shows "Speaking". */
1013
- speaking?: boolean;
1014
- }
1015
- type NameFor = (userId: string) => string | null | undefined;
1016
- interface StagePanelProps {
1017
- stage: UseStage;
1018
- /** Everyone in the call (from the call roster). */
1019
- participants: readonly MeetingParticipant[];
1020
- selfUserId?: string | null;
1021
- nameForUserId?: NameFor;
1022
- /** The call's agents (`useCallAgents().agents`), listed with the Agent badge. */
1023
- agents?: readonly CallAgent[];
1024
- style?: StyleProp<ViewStyle>;
1025
- }
1026
- /**
1027
- * Speakers and audience, your raise-hand button, and — for moderators —
1028
- * raised hands with Bring up / Lower, and Move to audience on speakers.
1029
- */
1030
- declare function StagePanel({ stage, participants, selfUserId, nameForUserId, agents, style, }: StagePanelProps): react_jsx_runtime.JSX.Element;
1031
- interface QuestionsPanelProps {
1032
- questions: UseQuestions;
1033
- /** Show Answered / Dismiss on open questions. */
1034
- canModerate?: boolean;
1035
- /** Offer "Ask anonymously". Defaults to true. */
1036
- allowAnonymous?: boolean;
1037
- nameForUserId?: NameFor;
1038
- style?: StyleProp<ViewStyle>;
1039
- }
1040
- /** Ask a question, upvote others', and (moderators) mark them answered. */
1041
- declare function QuestionsPanel({ questions, canModerate, allowAnonymous, nameForUserId, style, }: QuestionsPanelProps): react_jsx_runtime.JSX.Element;
1042
- interface BreakoutBannerProps {
1043
- /** `useBreakouts(…)`, or `useNativeBreakouts(…)` on @poolse/native (which moves the call itself). */
1044
- breakouts: UseBreakouts | UseNativeBreakouts;
1045
- /** You are in your breakout room now (not the main call). Default: `useNativeBreakouts`' own. */
1046
- inBreakout?: boolean;
1047
- /** Connect to the room's session (switch the call's media to it). */
1048
- onJoined?: (session: RoomSession) => void;
1049
- /** Connect back to the main call. */
1050
- onReturned?: (session: RoomSession) => void;
1051
- style?: StyleProp<ViewStyle>;
1052
- }
1053
- /**
1054
- * "Breakout · Room 2 · 12:30 left · Join room", then "Return to main";
1055
- * while closing, "Returning to the main call in 0:45". Nothing without a
1056
- * session or a room for you.
1057
- */
1058
- declare function BreakoutBanner({ breakouts, inBreakout: inBreakoutProp, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
1059
- interface UseNativeBreakoutsOptions extends Omit<UseBreakoutsOptions, 'auto'> {
1060
- /**
1061
- * @poolse/native's `moveToRoom`: switches the live call's media to the
1062
- * session's room and keeps the system call (CallKit / Android's call
1063
- * service). Injected so this package doesn't depend on the native module.
1064
- */
1065
- moveToRoom: (session: RoomSession) => Promise<boolean>;
1066
- /** Follow the split by yourself (default true): join your room as it opens, come back as it closes. */
1067
- auto?: boolean;
1068
- }
1069
- interface UseNativeBreakouts extends UseBreakouts {
1070
- /** The call's media is in a breakout room now (not the main room). */
1071
- inBreakout: boolean;
1072
- /** Join a room and move the call into it. False when the server or the core refused. */
1073
- joinRoom: (roomId: string) => Promise<boolean>;
1074
- /** Back to the main room. */
1075
- returnToMainRoom: () => Promise<boolean>;
1076
- }
1077
- /**
1078
- * Breakout rooms on phones (CL5): `useBreakouts` with the native call
1079
- * core doing the moving. With `auto` (the default) it joins your room
1080
- * when the split gives you one and returns you when it closes; the
1081
- * phone's call never ends, only its media changes rooms.
1082
- *
1083
- * import { moveToRoom } from '@poolse/native';
1084
- * const breakouts = useNativeBreakouts(conversationId, callId, { moveToRoom });
1085
- * <BreakoutBanner breakouts={breakouts} />
1086
- */
1087
- declare function useNativeBreakouts(conversationId: string | null, callId: string | null, opts: UseNativeBreakoutsOptions): UseNativeBreakouts;
1088
- interface LobbyWaitingProps {
1089
- /** The name the guest gave. */
1090
- name: string;
1091
- /** Where the guest stands (`waitInLobby`'s status). */
1092
- status: GuestLobbyStatus['status'];
1093
- /** The meeting's title, when known. */
1094
- title?: string | null;
1095
- onLeave: () => void;
1096
- style?: StyleProp<ViewStyle>;
1097
- }
1098
- /** A guest's waiting screen: "Waiting for the host to let you in", then denied or ended. */
1099
- declare function LobbyWaiting({ name, status, title, onLeave, style }: LobbyWaitingProps): react_jsx_runtime.JSX.Element;
1100
- interface LobbyAdmitListProps {
1101
- lobby: UseLobby;
1102
- style?: StyleProp<ViewStyle>;
1103
- }
1104
- /** For members: who is waiting, with Admit / Deny and Admit all. Nothing when nobody waits. */
1105
- declare function LobbyAdmitList({ lobby, style }: LobbyAdmitListProps): react_jsx_runtime.JSX.Element | null;
1106
- interface MarkMomentButtonProps {
1107
- moments: UseMoments;
1108
- /** Icon only (a call control); the label is still read out. */
1109
- compact?: boolean;
1110
- style?: StyleProp<ViewStyle>;
1111
- }
1112
- /** "Mark moment": highlights this point in the recording and the summary; says "Marked" for 2 s. */
1113
- declare function MarkMomentButton({ moments, compact, style }: MarkMomentButtonProps): react_jsx_runtime.JSX.Element;
1114
- interface AgendaPanelProps {
1115
- agenda: UseAgenda;
1116
- /** Show Start / Done / Reopen. */
1117
- canEdit?: boolean;
1118
- nameForUserId?: NameFor;
1119
- style?: StyleProp<ViewStyle>;
1120
- }
1121
- /** The meeting's agenda: owner and minutes per item, the current one highlighted, an over-time nudge. */
1122
- declare function AgendaPanel({ agenda, canEdit, nameForUserId, style }: AgendaPanelProps): react_jsx_runtime.JSX.Element | null;
1123
- interface RoomPresenceProps {
1124
- /**
1125
- * Who's in (`useRoomPresence().presence[id]`), or a live call
1126
- * (`useLiveCall(id).call`); nothing renders when empty.
1127
- */
1128
- call: RoomPresenceEntry | LiveCall | null | undefined;
1129
- /** Most avatars to show; the rest become "+N". Defaults to 3. */
1130
- max?: number;
1131
- nameForUserId?: NameFor;
1132
- style?: StyleProp<ViewStyle>;
1133
- }
1134
- /** Who is in a room, for a sidebar row: overlapping avatars and "+N". */
1135
- declare function RoomPresence({ call, max, nameForUserId, style }: RoomPresenceProps): react_jsx_runtime.JSX.Element | null;
1136
- interface MeetingCardProps {
1137
- card: MeetingCard$1;
1138
- /** Your user id, to find your answer in the lists. */
1139
- meId?: string | null;
1140
- /**
1141
- * Record your answer yourself. Default: `PUT /meetings/:id/rsvp`
1142
- * through the provider's client; `false` hides the buttons. The card
1143
- * updates when the server restates the message.
1144
- */
1145
- onRsvp?: ((response: RsvpResponse) => void | Promise<void>) | false;
1146
- /** Join the meeting's room. */
1147
- onJoin?: (card: MeetingCard$1) => void;
1148
- nameForUserId?: NameFor;
1149
- style?: StyleProp<ViewStyle>;
1150
- }
1151
- /** An invite in chat: title, time, who's coming, Accept / Maybe / Decline and Join. */
1152
- declare function MeetingCard({ card, meId, onRsvp, onJoin, nameForUserId, style, }: MeetingCardProps): react_jsx_runtime.JSX.Element;
1153
- interface MeetingCardMessageRowProps extends Omit<MeetingCardProps, 'card'> {
1154
- msg: Message;
1155
- }
1156
- /** A meeting-card message in a list; nothing for any other message. */
1157
- declare function MeetingCardMessageRow({ msg, ...rest }: MeetingCardMessageRowProps): react_jsx_runtime.JSX.Element | null;
1158
-
1159
- interface CaptionsOverlayProps {
1160
- /** `useLiveTranscript(callId).segments`. */
1161
- segments: readonly LiveTranscriptSegment[];
1162
- /** How many lines to show. Defaults to 2. */
1163
- lines?: number;
1164
- style?: StyleProp<ViewStyle>;
1165
- }
1166
- /** The last lines of the live transcript, with speaker names; words still being spoken are dimmed. */
1167
- declare function CaptionsOverlay({ segments, lines, style }: CaptionsOverlayProps): react_jsx_runtime.JSX.Element | null;
1168
- interface ReactionsOverlayProps {
1169
- /** `useCallReactions(room).reactions`. */
1170
- reactions: readonly CallReaction[];
1171
- style?: StyleProp<ViewStyle>;
1172
- }
1173
- /** Reactions rising over the call (still, with Reduce Motion). Never takes touches. */
1174
- declare function ReactionsOverlay({ reactions, style }: ReactionsOverlayProps): react_jsx_runtime.JSX.Element;
1175
- interface ReactionPickerBarProps {
1176
- onReact: (emoji: string) => void;
1177
- emojis?: readonly string[];
1178
- style?: StyleProp<ViewStyle>;
1179
- }
1180
- /** A row of reaction buttons (`DEFAULT_CALL_REACTIONS`). */
1181
- declare function ReactionPickerBar({ onReact, emojis, style, }: ReactionPickerBarProps): react_jsx_runtime.JSX.Element;
1182
- interface ConnectionIndicatorProps {
1183
- /** A web `CallConnectionQuality` or the native core's `'good' | 'poor' | 'lost' | 'unknown'`. */
1184
- quality: CallConnectionQuality | 'good' | 'poor' | 'lost' | 'unknown' | null | undefined;
1185
- /** Bar height in px. Defaults to 12. */
1186
- size?: number;
1187
- style?: StyleProp<ViewStyle>;
1188
- }
1189
- /** Three signal bars; a weak link turns amber, a lost one red. Labelled for screen readers. */
1190
- declare function ConnectionIndicator({ quality, size, style }: ConnectionIndicatorProps): react_jsx_runtime.JSX.Element | null;
1191
- interface NetworkBannerProps {
1192
- /** `useCallQuality(room)?.issues`, or `diagnoseCallNetwork(…)` from a native snapshot. */
1193
- issues: readonly CallNetworkIssue[];
1194
- onDismiss?: () => void;
1195
- style?: StyleProp<ViewStyle>;
1196
- }
1197
- /** The worst network problem in plain words ("Your network is dropping packets…"). */
1198
- declare function NetworkBanner({ issues, onDismiss, style }: NetworkBannerProps): react_jsx_runtime.JSX.Element | null;
1199
- interface WhiteboardViewProps {
1200
- /** `useWhiteboard(callId, Y).items`. */
1201
- items: readonly WhiteboardItem[];
1202
- /** With a model and not `readOnly`, a finger draws pen strokes. */
1203
- model?: WhiteboardModel | null;
1204
- readOnly?: boolean;
1205
- /** Pen colour and width (board units). */
1206
- color?: string;
1207
- width?: number;
1208
- style?: StyleProp<ViewStyle>;
1209
- }
1210
- /**
1211
- * The call's whiteboard, fit to the view (1600 × 900 board units). View
1212
- * only by default; pass the model to draw simple pen strokes.
1213
- */
1214
- declare function WhiteboardView({ items, model, readOnly, color, width, style, }: WhiteboardViewProps): react_jsx_runtime.JSX.Element;
1215
- interface AnnotationOverlayProps {
1216
- /** `useScreenAnnotations(room, sharerUserId).state` (room: `callData` on @poolse/native). */
1217
- state: AnnotationState | null;
1218
- /**
1219
- * `useScreenAnnotations(…).annotations`: with it and `drawing`, a
1220
- * finger draws lines everyone in the call sees.
1221
- */
1222
- annotations?: ScreenAnnotations | null;
1223
- /** Draw instead of passing touches through (a pen toggle). Default false. */
1224
- drawing?: boolean;
1225
- /** Pen colour. Default red. */
1226
- color?: string;
1227
- style?: StyleProp<ViewStyle>;
1228
- }
1229
- /**
1230
- * Lines and pointers drawn on a shared screen, laid over the screen's
1231
- * video (same box as the picture: size it to the `fit="contain"` area).
1232
- * View only unless given `annotations` and `drawing`.
1233
- */
1234
- declare function AnnotationOverlay({ state, annotations, drawing, color, style, }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
1235
-
1236
- /** 45 → "0:45", 3725 → "1:02:05". */
1237
- declare function formatCountdown(seconds: number | null | undefined): string;
1238
- /** Show at most `max` avatars; the rest become "+N". */
1239
- declare function avatarOverflow<T>(list: readonly T[], max: number): {
1240
- shown: T[];
1241
- more: number;
1242
- };
1243
- /** One caption line: a speaker's run of text, interim when still talking. */
1244
- interface CaptionLine {
1245
- key: string;
1246
- speaker: string;
1247
- text: string;
1248
- interim: boolean;
1249
- }
1250
- /**
1251
- * The last `lines` caption lines: consecutive segments of one speaker are
1252
- * joined, an interim segment after them shown as still being spoken.
1253
- * Each line keeps only its last `maxChars` characters.
1254
- */
1255
- declare function captionLines(segments: readonly LiveTranscriptSegment[], lines?: number, maxChars?: number): CaptionLine[];
1256
- /** "Budget review is 3 min over" — null when not over by a whole minute. */
1257
- declare function overrunText(title: string, overrunMs: number): string | null;
1258
- /** "Tue 21 Nov · 10:00–10:30" in the device's locale. */
1259
- declare function meetingTimeText(card: Pick<MeetingCard$1, 'startsAt' | 'endsAt'>): string | null;
1260
- /** "4 accepted · 1 maybe · 2 declined" (empty parts left out), or null. */
1261
- declare function rsvpSummary(card: Pick<MeetingCard$1, 'rsvps'> & Partial<Pick<MeetingCard$1, 'counts'>>): string | null;
1262
-
1263
- interface MessageComposerProps {
1264
- /**
1265
- * Called when the user taps Send. Second arg carries
1266
- * `quoted_message_id` (when replying) and `attachment_ids`
1267
- * (resolved from the composer's upload queue). Awaited so the
1268
- * composer disables until the send round-trips.
1269
- */
1270
- onSend: (body: string, opts?: ComposerSendOptions) => Promise<unknown> | void;
1271
- /** Called on every keystroke. Hook to `useTyping().signalTyping`. */
1272
- onTyping?: () => void;
1273
- placeholder?: string;
1274
- disabled?: boolean;
1275
- /** Renders a quote chip above the input; cleared by the caller in `onSend`. */
1276
- replyingTo?: Message | null;
1277
- /** User tapped (x) on the quote chip. */
1278
- onCancelReply?: () => void;
1279
- /** Display label for the quoted sender, keyed by `external_id`. */
1280
- labelFor?: (externalId: string) => string;
1281
- /** Show the paperclip + queue strip. Defaults true. */
1282
- attachments?: boolean;
1283
- /** Tap on the paperclip — wire to `<AttachmentPicker>` from the same package. */
1284
- onAttachPress?: () => void;
1285
- /**
1286
- * Distance from the top of the screen to the top of the
1287
- * KeyboardAvoidingView — typically the height of any navigation
1288
- * header sitting above the chat. Pass this when the iOS keyboard
1289
- * suggestions strip ends up covering the composer (a sign the
1290
- * computed offset is wrong). Defaults to 0; on Android it's
1291
- * ignored.
1292
- */
1293
- keyboardOffset?: number;
1294
- /**
1295
- * When set, the composer enters edit mode: prefills the input with
1296
- * the message body and renders an "Editing message" chip above
1297
- * (mirrors `replyingTo`). Tapping Send calls `onSaveEdit(body)`
1298
- * instead of `onSend`; `onCancelEdit` clears the chip and restores
1299
- * the previous draft. Pass `null` (or omit) when not editing.
1300
- */
1301
- editingMessage?: Message | null;
1302
- onCancelEdit?: () => void;
1303
- onSaveEdit?: (body: string) => Promise<unknown> | void;
1304
- /**
1305
- * Controlled text. With `value`, the composer shows it and reports
1306
- * keystrokes through `onChangeText` (ConversationView uses this for
1307
- * drafts). Edit mode keeps its own text either way.
1308
- */
1309
- value?: string;
1310
- /** Every change to the (non-edit) text, typed or programmatic. */
1311
- onChangeText?: (text: string) => void;
1312
- /** The cursor / selection moved. */
1313
- onSelectionChange?: (selection: {
1314
- start: number;
1315
- end: number;
1316
- }) => void;
1317
- /** An emoji button that opens `<EmojiPicker>` and inserts at the cursor. Defaults to true. */
1318
- emojiPicker?: boolean;
1319
- /** Rendered above the input row — e.g. `<MentionInput>`'s suggestions. */
1320
- accessory?: ReactNode;
1321
- /**
1322
- * Show the Markdown formatting toolbar (bold, italic, strike, code,
1323
- * link, quote, lists, checklist, code block, table) above the input.
1324
- * Default `false`. Pass an array to choose the buttons and their order.
1325
- */
1326
- formattingToolbar?: boolean | readonly FormatKind[];
1327
- /** Slash commands to suggest when the message starts with `/` (IN3). */
1328
- commands?: readonly SlashCommand[];
1329
- }
1330
- /** The second argument of `onSend`. */
1331
- interface ComposerSendOptions {
1332
- quoted_message_id?: Uuid;
1333
- attachment_ids?: Uuid[];
1334
- /** Set when the sender chose "Send anyway" on a data-loss-prevention warning (AD6). */
1335
- dlp_acknowledged?: true;
1336
- }
1337
- /**
1338
- * Imperative handle for parents that want to add files to the
1339
- * composer's upload queue externally (drag/drop on a wrapper,
1340
- * deep-link, attachment shortcut).
1341
- */
1342
- interface MessageComposerHandle {
1343
- /** Enqueue ready-to-upload inputs. The picker component is the usual caller; this is the escape hatch. */
1344
- addFiles: (inputs: AttachmentUploadInput[]) => void;
1345
- focus: () => void;
1346
- clear: () => void;
1347
- /** Move the cursor (`start === end`) or select a range. */
1348
- setSelection: (start: number, end: number) => void;
1349
- }
1350
- declare const MessageComposer: react.ForwardRefExoticComponent<MessageComposerProps & react.RefAttributes<MessageComposerHandle>>;
1351
-
1352
- interface FormattingToolbarProps {
1353
- onFormat: (kind: FormatKind) => void;
1354
- disabled?: boolean;
1355
- /** Which buttons, in order. Defaults to all of `FORMAT_ACTIONS`. */
1356
- actions?: readonly FormatKind[];
1357
- }
1358
- /** A horizontally scrolling row of formatting buttons. */
1359
- declare function FormattingToolbar({ onFormat, disabled, actions, }: FormattingToolbarProps): react_jsx_runtime.JSX.Element;
1360
- /** `/command` suggestions for the text and cursor, or `null` when none match. */
1361
- declare function CommandSuggestions({ commands, text, cursor, onPick, }: {
1362
- commands: readonly SlashCommand[];
1363
- text: string;
1364
- cursor: number;
1365
- onPick: (command: SlashCommand) => void;
1366
- }): react_jsx_runtime.JSX.Element | null;
1367
- interface DlpWarningSheetProps {
1368
- outcome: DlpOutcome;
1369
- /** "Send anyway" (only offered for a warning, never for a block). */
1370
- onSendAnyway?: () => void;
1371
- /** "Edit message": back to the composer with the text kept. */
1372
- onEdit: () => void;
1373
- }
1374
- /** The data-loss-prevention warning as a centred modal. */
1375
- declare function DlpWarningSheet({ outcome, onSendAnyway, onEdit }: DlpWarningSheetProps): react_jsx_runtime.JSX.Element;
1376
-
1377
- interface MessageActionsProps {
1378
- visible: boolean;
1379
- onClose: () => void;
1380
- isSelf: boolean;
1381
- /**
1382
- * Quick-reaction emoji row rendered at the top of the sheet. Tap
1383
- * one to fire `onPickReaction(emoji)` and immediately close. When
1384
- * omitted (or `onPickReaction` is omitted) the row is hidden.
1385
- */
1386
- emojis?: string[];
1387
- onPickReaction?: (emoji: string) => void;
1388
- onReply?: () => void;
1389
- onReplyInThread?: () => void;
1390
- onQuote?: () => void;
1391
- onEdit?: () => void;
1392
- onDelete?: () => void;
1393
- onCopy?: () => void;
1394
- /** "Mark unread" — offered on other people's messages. */
1395
- onMarkUnread?: () => void;
1396
- /**
1397
- * "Remove preview" (one per link when there are several) — offered to
1398
- * the sender. Receives the preview's `url`.
1399
- */
1400
- onRemovePreview?: (url: string) => void;
1401
- /** The message's link-preview urls, for `onRemovePreview`. */
1402
- previewUrls?: string[];
1403
- /**
1404
- * A "+" after the quick reactions that opens the full emoji picker.
1405
- * Called after the sheet closes.
1406
- */
1407
- onMoreReactions?: () => void;
1408
- /** Pin or unpin (MS13); `pinned` picks the label. */
1409
- onTogglePin?: () => void;
1410
- pinned?: boolean;
1411
- /** Forward to other conversations (MS13): open your target picker (`<ForwardSheet>`). */
1412
- onForward?: () => void;
1413
- /** Translate (MS21), or back to the original when `translated`. */
1414
- onTranslate?: () => void;
1415
- translated?: boolean;
1416
- }
1417
- /**
1418
- * Long-press action menu — modal bottom sheet. Renders a row of
1419
- * quick-react emojis at the top (one tap reacts + closes) plus the
1420
- * action items below. Matches WhatsApp / iMessage's "long-press
1421
- * shows everything inline" pattern.
1422
- */
1423
- declare function MessageActions({ visible, onClose, isSelf, emojis, onPickReaction, onReply, onReplyInThread, onQuote, onEdit, onDelete, onCopy, onMarkUnread, onRemovePreview, previewUrls, onMoreReactions, onTogglePin, pinned, onForward, onTranslate, translated, }: MessageActionsProps): react_jsx_runtime.JSX.Element;
1424
-
1425
- /**
1426
- * Either a real message or a day-separator row. ConversationView
1427
- * builds the list of items (interleaving separators where the day
1428
- * changes) and hands it to MessageList; MessageList just renders.
1429
- */
1430
- type MessageListItem = {
1431
- kind: 'msg';
1432
- msg: Message;
1433
- } | {
1434
- kind: 'separator';
1435
- id: string;
1436
- node: ReactElement;
1437
- };
1438
- interface MessageListProps {
1439
- messages: Message[];
1440
- /**
1441
- * Optional pre-built item list (with day separators interleaved).
1442
- * When omitted, a list with `{ kind: 'msg' }` items is derived
1443
- * from `messages` and rendered without separators.
1444
- */
1445
- items?: MessageListItem[];
1446
- loading?: boolean;
1447
- hasMore?: boolean;
1448
- onLoadMore?: () => void;
1449
- renderItem: (msg: Message, index: number) => ReactElement;
1450
- /** Slot rendered above the latest message (typically the typing indicator). */
1451
- ListHeader?: ReactElement | null;
1452
- /** Slot rendered below the oldest message (rare — typically nothing). */
1453
- ListFooter?: ReactElement | null;
1454
- /** Custom empty state when there are no messages. */
1455
- emptyState?: ReactElement | string;
1456
- /**
1457
- * The current user's id. When provided, MessageList will show a
1458
- * "↓ N new messages" jump button at the bottom of the chat
1459
- * whenever new messages from OTHER users arrive while the user is
1460
- * scrolled away from the bottom. Tapping scrolls to the latest.
1461
- */
1462
- meId?: string | null;
1463
- /**
1464
- * Scroll this message to the middle of the list (it must already be
1465
- * in `messages`). Changing `scrollRequest` — e.g. a counter — scrolls
1466
- * again to the same message.
1467
- */
1468
- scrollToMessageId?: string | null;
1469
- scrollRequest?: number;
1470
- /**
1471
- * The rows on screen changed: message ids and separator ids. Lets a
1472
- * parent tell whether a row (e.g. the "New messages" line) was seen.
1473
- */
1474
- onVisibleItemsChange?: (keys: string[]) => void;
1475
- }
1476
- /**
1477
- * Inverted FlatList wrapper for chat history. Newest message at the
1478
- * bottom (visually), oldest at the top. Calls `onLoadMore` when the
1479
- * user scrolls near the top edge and `hasMore` is true.
1480
- *
1481
- * Pagination is owned by `useMessages` (hand it `messages` +
1482
- * `hasMore` + `loadMore`); this component just renders + scrolls.
1483
- */
1484
- declare function MessageList({ messages, items, loading, hasMore, onLoadMore, renderItem, ListHeader, ListFooter, emptyState, meId, scrollToMessageId, scrollRequest, onVisibleItemsChange, }: MessageListProps): react_jsx_runtime.JSX.Element;
1485
-
1486
- interface DaySeparatorProps {
1487
- label: string;
1488
- /**
1489
- * `'pill'` (default) — a centred chip, for bubbles. `'rule'` — a
1490
- * hairline across the row with the chip on it, for the `list` and
1491
- * `compact` layouts.
1492
- */
1493
- variant?: 'pill' | 'rule';
1494
- }
1495
- /**
1496
- * Centered date pill rendered between messages whose `inserted_at`
1497
- * falls on a different calendar day from the previous message. Pair
1498
- * with `formatDayLabel` from `@poolse/react` to compute the label
1499
- * ("Today" / "Yesterday" / weekday / "26 May 2024").
1500
- */
1501
- declare function DaySeparator({ label, variant }: DaySeparatorProps): react_jsx_runtime.JSX.Element;
1502
-
1503
- interface TypingIndicatorProps {
1504
- /** Set of `external_id`s currently typing — what `useTyping` returns. */
1505
- typing: Set<string>;
1506
- /**
1507
- * Resolves an `external_id` to a display label. Defaults to the
1508
- * SDK's `userResolver` (and falls back to the external_id itself
1509
- * when the resolver isn't configured).
1510
- */
1511
- labelFor?: (externalId: string) => string;
1512
- }
1513
- /**
1514
- * Three animated dots + an inline "X is typing" label. Renders a
1515
- * zero-height row when nobody is typing so the list doesn't jump.
1516
- */
1517
- declare function TypingIndicator({ typing, labelFor }: TypingIndicatorProps): react_jsx_runtime.JSX.Element;
1518
-
1519
- interface ThreadViewProps {
1520
- visible: boolean;
1521
- onClose: () => void;
1522
- conversationId: Uuid;
1523
- rootMessage: Message;
1524
- labelFor?: (externalId: string) => string;
1525
- avatarFor?: (externalId: string) => string | null;
1526
- /** Row layout for the root and replies — see `ChatLayout`. Defaults to `'bubbles'`. */
1527
- layout?: ChatLayout;
1528
- timeFormat?: TimeFormat;
1529
- /** Row spacing for the root and replies, as on `ConversationView`. */
1530
- density?: ChatDensity;
1531
- /** Presence badges on reply avatars. Defaults to `false`. */
1532
- showPresence?: boolean;
1533
- /** Link previews under replies. Defaults to `true`. */
1534
- linkPreviews?: boolean;
1535
- /** A Follow / Following button in the header (MS19). Default `true`. */
1536
- follow?: boolean;
1537
- /** An "Also send to channel" switch above the composer (MS19). Default `true`; off in DMs. */
1538
- alsoSendToChannel?: boolean;
1539
- }
1540
- /**
1541
- * Bottom-sheet modal for thread replies. Pull the drag handle / header
1542
- * down to dismiss; tap the backdrop or close button too. The composer
1543
- * inside the sheet supports attachments (paperclip → picker, shared
1544
- * upload queue) and the reply rows support reactions, swipe-to-reply,
1545
- * long-press actions, edit, delete — same surface as ConversationView.
1546
- *
1547
- * Keyboard handling: the modal is translucent (edge-to-edge) on both
1548
- * platforms, so nothing resizes it for the keyboard — Android's
1549
- * `adjustResize` doesn't reach an edge-to-edge window. The composer
1550
- * needs its own `padding` KeyboardAvoidingView with
1551
- * `keyboardVerticalOffset` = the distance from the screen top to the
1552
- * sheet top (the gutter), since KAV measures its frame relative to
1553
- * its parent (the sheet), not the screen.
1554
- */
1555
- declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, layout, timeFormat, density, showPresence, linkPreviews, follow, alsoSendToChannel, }: ThreadViewProps): react_jsx_runtime.JSX.Element;
1556
-
1557
- interface ThreadSummaryProps {
1558
- /** The thread's root: `reply_count`, `last_reply_at`, `thread_participants`. */
1559
- message: Pick<Message, 'reply_count' | 'last_reply_at' | 'thread_participants'>;
1560
- onPress: () => void;
1561
- labelFor?: (externalId: string) => string;
1562
- avatarFor?: (externalId: string) => string | null;
1563
- /** Align to the right (under your own bubble). */
1564
- alignEnd?: boolean;
1565
- }
1566
- /**
1567
- * "3 replies · last reply 5m ago" with the last few repliers' avatars
1568
- * stacked in front. Tap opens the thread. Draws nothing without replies.
1569
- */
1570
- declare function ThreadSummary({ message, onPress, labelFor, avatarFor, alignEnd, }: ThreadSummaryProps): react_jsx_runtime.JSX.Element | null;
1571
-
1572
- interface NewMessagesDividerProps {
1573
- /** Defaults to "New messages". */
1574
- label?: string;
1575
- }
1576
- /**
1577
- * The line `<ConversationView>` draws above the first message you
1578
- * hadn't read when the conversation opened. Full width, so it reads the
1579
- * same in every layout.
1580
- */
1581
- declare function NewMessagesDivider({ label }: NewMessagesDividerProps): react_jsx_runtime.JSX.Element;
1582
-
1583
- interface EditHistorySheetProps {
1584
- visible: boolean;
1585
- onClose: () => void;
1586
- messageId: Uuid;
1587
- /** The text the message has now, shown on top as "Current". */
1588
- currentBody?: string | null;
1589
- /**
1590
- * The server refused the history (403 — the workspace keeps it to
1591
- * admins or the sender). The sheet closes itself.
1592
- */
1593
- onForbidden?: () => void;
1594
- }
1595
- /**
1596
- * Bottom sheet listing a message's earlier versions, newest first
1597
- * (`chat.messages.edits(id)`). Opened from the "edited" label.
1598
- */
1599
- declare function EditHistorySheet({ visible, onClose, messageId, currentBody, onForbidden, }: EditHistorySheetProps): react_jsx_runtime.JSX.Element;
1600
-
1601
- interface UserNameProps {
1602
- /** The user's external_id. Pass null to render the fallback. */
1603
- externalId: string | null | undefined;
1604
- /** Optional fallback when the resolver returns nothing. Defaults to the externalId itself. */
1605
- fallback?: string;
1606
- /** Caller-supplied label override; if it returns a string, it wins. */
1607
- labelFor?: (externalId: string) => string;
1608
- /** The Agent badge after an agent's name (AG1). Defaults to `true`. */
1609
- agentBadge?: boolean;
1610
- }
1611
- /**
1612
- * Display name for a user, looked up via the SDK's `userResolver`
1613
- * with caller-overridable + fallback fallbacks. Renders a `<Text>`.
1614
- */
1615
- declare function UserName({ externalId, fallback, labelFor, agentBadge }: UserNameProps): react_jsx_runtime.JSX.Element;
1616
- /**
1617
- * Resolves a user's display name via the 3-tier chain:
1618
- * 1. `labelFor(externalId)` — caller-supplied override
1619
- * 2. SDK `userResolver` (memoized via `useUser`)
1620
- * 3. The externalId itself (so something always renders)
1621
- */
1622
- declare function useDisplayName(externalId: string | null | undefined, labelFor?: (externalId: string) => string): string;
1623
-
1624
- /** One section of `<ConversationList sections>`. */
1625
- interface ConversationSection {
1626
- title: string;
1627
- /** Conversations this section holds. Each conversation goes to the first section that takes it. */
1628
- filter: (conversation: Conversation) => boolean;
1629
- }
1630
- /** `<ConversationList groupBy>`: `'type'` → "Channels" (groups), then "Direct messages". */
1631
- type ConversationGroupBy = 'type';
1632
-
1633
- interface ConversationListProps {
1634
- selectedId?: string | null;
1635
- onSelect?: (conv: Conversation) => void;
1636
- /** Optional override for each row's rendering. */
1637
- renderItem?: (conv: Conversation, selected: boolean) => ReactNode;
1638
- /**
1639
- * What an empty list shows. Defaults to "No conversations yet" with a
1640
- * hint at the next step.
1641
- */
1642
- emptyState?: ReactNode | string;
1643
- /** Show only conversations matching this text (a search field in `header`). */
1644
- query?: string;
1645
- /** What shows when `query` matches nothing. Receives the query. */
1646
- noResultsState?: ReactNode | ((query: string) => ReactNode);
1647
- /** Controlled-mode: skip `useConversations()` and render from these. */
1648
- conversations?: Conversation[];
1649
- loading?: boolean;
1650
- error?: Error | null;
1651
- /**
1652
- * Controlled mode paging: more conversations exist. Uncontrolled, the
1653
- * list pages through `useConversations()` itself.
1654
- */
1655
- hasMore?: boolean;
1656
- /** Controlled mode paging: a page is loading (a spinner shows at the end). */
1657
- loadingMore?: boolean;
1658
- /** Controlled mode paging: called near the end of the list while `hasMore`. */
1659
- onLoadMore?: () => void;
1660
- /** Per-conversation unread counts rendered as a Pulse Coral pill. */
1661
- unreadCounts?: Record<Uuid, number>;
1662
- /**
1663
- * Explicit overrides for direct-chat names + avatars, keyed by the
1664
- * OTHER member's external_id. When omitted, the row falls back to
1665
- * `PoolseConfig.userResolver` and finally to the external_id.
1666
- */
1667
- labelFor?: (externalId: string) => string;
1668
- avatarFor?: (externalId: string) => string | null;
1669
- /** Scrolls with the list, above the first row (a search field, a title). */
1670
- header?: ReactElement | null;
1671
- /**
1672
- * Split the list into titled sections; each conversation goes to the
1673
- * first section whose `filter` takes it, empty sections are hidden.
1674
- * Overrides `groupBy`.
1675
- */
1676
- sections?: ConversationSection[];
1677
- /** `'type'` → "Channels" (groups), then "Direct messages". */
1678
- groupBy?: ConversationGroupBy;
1679
- /** `'comfortable'` (default) or `'compact'` rows (smaller avatar, one line). */
1680
- density?: ChatDensity;
1681
- /** Presence badges on direct chats' avatars. Defaults to `true`. */
1682
- showPresence?: boolean;
1683
- }
1684
- declare function ConversationList({ selectedId, onSelect, renderItem, emptyState, query, noResultsState, conversations: controlled, loading: controlledLoading, error: controlledError, hasMore: controlledHasMore, loadingMore: controlledLoadingMore, onLoadMore, unreadCounts, labelFor, avatarFor, header, sections, groupBy, density, showPresence, }: ConversationListProps): react_jsx_runtime.JSX.Element;
1685
-
1686
- interface MemberListProps {
1687
- conversationId: Uuid;
1688
- labelFor?: (externalId: string) => string;
1689
- avatarFor?: (externalId: string) => string | null;
1690
- onlineExternalIds?: Set<string>;
1691
- canRemove?: (m: Membership) => boolean;
1692
- renderItem?: (m: Membership) => ReactNode;
1693
- emptyState?: ReactNode | string;
1694
- /**
1695
- * Presence badges on the avatars (online / away / in a call / do not
1696
- * disturb, via `useUserPresence`). Defaults to `true`. With
1697
- * `onlineExternalIds` given, those drive a plain online dot instead.
1698
- */
1699
- showPresence?: boolean;
1700
- }
1701
- declare function MemberList({ conversationId, labelFor, avatarFor, onlineExternalIds, canRemove, renderItem, emptyState, showPresence, }: MemberListProps): react_jsx_runtime.JSX.Element;
1702
-
1703
- interface PresenceBadgeProps {
1704
- /** `online`, `away`, `in_call` or `offline` (draws nothing), as `useUserPresence` gives it. */
1705
- state: PresenceState | null | undefined;
1706
- /** Do not disturb: a moon instead of the online / away dot. */
1707
- doNotDisturb?: boolean;
1708
- /** Diameter in px. Defaults to 12. */
1709
- size?: number;
1710
- /** The ring around the badge — the colour it sits on. Defaults to `colors.surface`. */
1711
- ringColor?: string;
1712
- style?: StyleProp<ViewStyle>;
1713
- }
1714
- /**
1715
- * A presence dot: online = `success`, away = `warning`, in a call =
1716
- * `accent` with a phone, do not disturb = a moon. Offline (or unknown)
1717
- * draws nothing.
1718
- */
1719
- declare function PresenceBadge({ state, doNotDisturb, size, ringColor, style, }: PresenceBadgeProps): react_jsx_runtime.JSX.Element | null;
1720
-
1721
- interface AttachmentPreviewProps {
1722
- attachment: Attachment;
1723
- /** Optional tap handler. For images defaults to opening the source URL. */
1724
- onPress?: () => void;
1725
- /** Render at this max width. Defaults to 280. */
1726
- maxWidth?: number;
1727
- /**
1728
- * `'onBrand'` restyles the file card for a brand-colored self
1729
- * bubble — translucent white instead of surface grey, so the card
1730
- * reads as part of the bubble rather than a patch cut out of it.
1731
- */
1732
- tone?: 'default' | 'onBrand';
1733
- }
1734
- declare function AttachmentPreview({ attachment, onPress, maxWidth, tone, }: AttachmentPreviewProps): react_jsx_runtime.JSX.Element;
1735
-
1736
- interface LinkPreviewCardProps {
1737
- preview: LinkPreview;
1738
- /** Shows a × on the card; the long-press sheet's "Remove preview" is the usual way. */
1739
- onRemove?: () => void;
1740
- /** Card width cap in px. Defaults to 320. */
1741
- maxWidth?: number;
1742
- /** `'onBrand'` for a card inside your own (accent-filled) bubble. */
1743
- tone?: 'default' | 'onBrand';
1744
- /** Long-press on the card — rows pass their actions sheet. */
1745
- onLongPress?: () => void;
1746
- }
1747
- /**
1748
- * A link's preview under the message text. `website`: the page's image,
1749
- * site name with favicon, title and description. `image`: the picture
1750
- * itself, inline. Tapping opens the link.
1751
- */
1752
- declare function LinkPreviewCard({ preview, onRemove, maxWidth, tone, onLongPress, }: LinkPreviewCardProps): react_jsx_runtime.JSX.Element | null;
1753
-
1754
- interface EmojiPickerProps {
1755
- visible: boolean;
1756
- onClose: () => void;
1757
- /** An emoji was tapped. The picker closes unless `keepOpen`. */
1758
- onPick: (emoji: string) => void;
1759
- /** Stay open after a pick (the composer's picker, to type several). */
1760
- keepOpen?: boolean;
1761
- /** Heading. Defaults to "Pick an emoji". */
1762
- title?: string;
1763
- }
1764
- /**
1765
- * Bottom-sheet emoji picker with search, recently used and categories.
1766
- * Built in and dependency-free: a compact set of common emoji, parsed
1767
- * the first time a picker opens.
1768
- */
1769
- declare function EmojiPicker({ visible, onClose, onPick, keepOpen, title, }: EmojiPickerProps): react_jsx_runtime.JSX.Element;
1770
-
1771
- /**
1772
- * Horizontal scrolling preview row of pending / in-flight / ready
1773
- * uploads. Image attachments render as 64×64 thumbnails sourced from
1774
- * the original local file URI; file attachments render as a row card
1775
- * with icon + name + size. A small × overlay on each tile lets the
1776
- * user drop the upload before send.
1777
- *
1778
- * Reads queue state from the shared `<UploadProvider>` (mounted by
1779
- * `<ConversationView>`), so the composer's "ready attachment ids"
1780
- * pickup and the strip's display always agree.
1781
- */
1782
- declare function UploadQueueStrip(): react_jsx_runtime.JSX.Element | null;
1783
-
1784
- interface ReactionStripProps {
1785
- messageId: Uuid;
1786
- conversationId: Uuid;
1787
- meId: string | null;
1788
- /** Seed map from a known message (e.g. `useMessages`). */
1789
- initialReactions?: Record<string, Uuid[]>;
1790
- /** A "+" chip after the reactions — open an emoji picker (see `<EmojiPicker>`). */
1791
- onMorePress?: () => void;
1792
- }
1793
- declare function ReactionStrip({ messageId, conversationId, meId, initialReactions, onMorePress, }: ReactionStripProps): react_jsx_runtime.JSX.Element | null;
1794
- interface ReactionPickerProps {
1795
- visible: boolean;
1796
- onClose: () => void;
1797
- onPick: (emoji: string) => void;
1798
- /** Override the default 6-emoji set. */
1799
- emojis?: string[];
1800
- }
1801
- declare function ReactionPicker({ visible, onClose, onPick, emojis, }: ReactionPickerProps): react_jsx_runtime.JSX.Element;
1802
-
1803
- interface MentionInputProps extends Omit<MessageComposerProps, 'onSend'> {
1804
- conversationId: Uuid;
1805
- /** Same callback as MessageComposer.onSend, plus the mentioned user_ids. */
1806
- onSend: (body: string, opts?: ComposerSendOptions & {
1807
- mentions?: Uuid[];
1808
- }) => Promise<unknown> | void;
1809
- /** Most suggestions shown at once. Defaults to 6. */
1810
- maxSuggestions?: number;
1811
- /**
1812
- * User groups to offer after matching members (MS9): `@design`,
1813
- * `@oncall`. Picking one inserts `@handle`; the Workspace expands it
1814
- * when the message arrives, so nothing extra is sent.
1815
- */
1816
- groups?: readonly MentionGroup[];
1817
- }
1818
- /**
1819
- * Composer with @-mentions: typing `@` (at the start or after a space)
1820
- * shows matching conversation members above the input, filtered by
1821
- * name or id as you type. Picking one inserts `@Name ` and the send
1822
- * carries their user id in `mentions` — for as long as `@Name` is
1823
- * still in the text.
1824
- */
1825
- declare function MentionInput({ conversationId, onSend, maxSuggestions, labelFor, value: valueProp, onChangeText, onSelectionChange, groups, ...composerProps }: MentionInputProps): react_jsx_runtime.JSX.Element;
1826
-
1827
- interface AttachmentPickerProps {
1828
- visible: boolean;
1829
- onClose: () => void;
1830
- /**
1831
- * Optional adapter that produces upload inputs from a picked file.
1832
- * Override to plug in custom storage / transcoding. Default reads
1833
- * from `expo-image-picker` / `expo-document-picker`.
1834
- */
1835
- onPickInputs?: (kind: 'image' | 'document' | 'camera') => Promise<{
1836
- body: {
1837
- uri: string;
1838
- name: string;
1839
- type: string;
1840
- } | Blob | unknown;
1841
- contentType: string;
1842
- byteSize: number;
1843
- filename?: string;
1844
- }[]>;
1845
- /**
1846
- * Show the Camera item alongside Photo and File. Defaults true.
1847
- * Disable if your app explicitly doesn't want camera access (some
1848
- * App Store reviewers require an explicit usage description even
1849
- * for the picker entry). Add `NSCameraUsageDescription` to your
1850
- * iOS Info.plist when leaving this on.
1851
- */
1852
- camera?: boolean;
1853
- /** Largest file accepted, in bytes (checked after image compression). */
1854
- maxFileSize?: number;
1855
- /** Accepted types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
1856
- acceptedTypes?: string[];
1857
- /**
1858
- * A picked file was refused (too large, a type not accepted) or the
1859
- * picker failed (e.g. camera permission denied). Receives a sentence
1860
- * to show; `<ConversationView>` shows it above the composer.
1861
- */
1862
- onError?: (message: string) => void;
1863
- /** Pick several photos at once from the library. Defaults to true. */
1864
- multiple?: boolean;
1865
- }
1866
- /**
1867
- * Picker sheet wrapping `expo-image-picker` and `expo-document-picker`.
1868
- * Both must be installed (`npx expo install expo-image-picker
1869
- * expo-document-picker`) when this component is mounted — they're
1870
- * declared as optional peers because consumers who pass
1871
- * `attachments={false}` to ConversationView never render this file.
1872
- */
1873
- declare function AttachmentPicker({ visible, onClose, onPickInputs, camera, maxFileSize, acceptedTypes, onError, multiple, }: AttachmentPickerProps): react_jsx_runtime.JSX.Element;
1874
-
1875
- interface ImageMosaicProps {
1876
- images: Attachment[];
1877
- /**
1878
- * Pixel ceiling on the mosaic's width. The mosaic itself fills its
1879
- * parent (`width: '100%'`) and caps at this value, so it always
1880
- * fits inside whatever the bubble's actual content area is at
1881
- * render time — no more hardcoded 280px overflowing on small
1882
- * screens or inside narrow bubbles.
1883
- */
1884
- maxWidth?: number;
1885
- radius?: number;
1886
- /**
1887
- * Square off the bottom corners (a small 5px instead of `radius`).
1888
- * Pass when a caption or file cards follow the mosaic, so the media
1889
- * flows into the text block instead of leaving "ears" of bubble
1890
- * color between the image and the caption.
1891
- */
1892
- squareBottom?: boolean;
1893
- /**
1894
- * Long-press on any tile. The tiles are Pressables (tap opens the
1895
- * viewer), and a nested Pressable wins the gesture — so without
1896
- * this, holding an image-only message never reached the row's
1897
- * actions sheet. MessageRow threads its long-press down through
1898
- * here.
1899
- */
1900
- onLongPress?: () => void;
1901
- }
1902
- /**
1903
- * WhatsApp-style multi-image grid for inside the message bubble.
1904
- * Uses flex-based widths (with `%` and `aspectRatio`) so the layout
1905
- * scales to whatever the bubble's content area is — no fixed pixel
1906
- * positioning that can overflow when the bubble is narrower than
1907
- * the configured max.
1908
- *
1909
- * * n = 1 → single tile, 16:10 aspect.
1910
- * * n = 2 → row of 2 squares.
1911
- * * n = 3 → 16:9 hero on top + row of 2 squares below.
1912
- * * n ≥ 4 → 2×2 grid with "+N more" overlay on the 4th tile.
1913
- */
1914
- declare function ImageMosaic({ images, maxWidth, radius, squareBottom, onLongPress, }: ImageMosaicProps): react_jsx_runtime.JSX.Element | null;
1915
-
1916
- declare const ICONS: {
1917
- readonly attachment: {
1918
- readonly vb: "0 0 24 24";
1919
- readonly d: "<path d=\"M20 11.6 11.4 20.2a5 5 0 0 1-7.1-7.1l8.7-8.7a3.3 3.3 0 0 1 4.7 4.7l-8.6 8.6a1.65 1.65 0 0 1-2.36-2.32l7.86-7.86\"/>";
1920
- };
1921
- readonly bell: {
1922
- readonly vb: "0 0 24 24";
1923
- readonly d: "<path d=\"M6 9.2a6 6 0 0 1 12 0c0 4.8 1.4 6.3 1.9 6.8H4.1C4.6 15.5 6 14 6 9.2Z\"/><path d=\"M9.6 19.8a2.5 2.5 0 0 0 4.8 0\"/>";
268
+ readonly bell: {
269
+ readonly vb: "0 0 24 24";
270
+ readonly d: "<path d=\"M6 9.2a6 6 0 0 1 12 0c0 4.8 1.4 6.3 1.9 6.8H4.1C4.6 15.5 6 14 6 9.2Z\"/><path d=\"M9.6 19.8a2.5 2.5 0 0 0 4.8 0\"/>";
1924
271
  };
1925
272
  readonly bluetooth: {
1926
273
  readonly vb: "0 0 24 24";
@@ -2170,24 +517,1761 @@ declare const ICONS: {
2170
517
  readonly vb: "0 0 24 24";
2171
518
  readonly d: "<defs><mask id=\"poolse-cut-video\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"24\" height=\"24\"><rect width=\"24\" height=\"24\" fill=\"#fff\" stroke=\"none\"/><path d=\"M3.5 3.5 20.5 20.5\" stroke=\"#000\" stroke-width=\"5\"/></mask></defs><g mask=\"url(#poolse-cut-video)\"><rect x=\"2\" y=\"6\" width=\"13.6\" height=\"12\" rx=\"3\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M17.1 10.3 21 7.8a.7.7 0 0 1 1.1.6v7.2a.7.7 0 0 1-1.1.6l-3.9-2.5Z\" fill=\"currentColor\" stroke=\"none\"/></g><path d=\"M3.5 3.5 20.5 20.5\"/>";
2172
519
  };
2173
- readonly webhook: {
2174
- readonly vb: "0 0 24 24";
2175
- readonly d: "<circle cx=\"6\" cy=\"6\" r=\"2.6\"/><circle cx=\"18\" cy=\"9\" r=\"2.6\"/><circle cx=\"9.5\" cy=\"18\" r=\"2.6\"/><path d=\"M7.9 7.9 12 12l3.7-1.5\"/><path d=\"M11.6 12.7 9.8 16\"/>";
520
+ readonly webhook: {
521
+ readonly vb: "0 0 24 24";
522
+ readonly d: "<circle cx=\"6\" cy=\"6\" r=\"2.6\"/><circle cx=\"18\" cy=\"9\" r=\"2.6\"/><circle cx=\"9.5\" cy=\"18\" r=\"2.6\"/><path d=\"M7.9 7.9 12 12l3.7-1.5\"/><path d=\"M11.6 12.7 9.8 16\"/>";
523
+ };
524
+ };
525
+ type IconName = keyof typeof ICONS;
526
+
527
+ interface PoolseIconProps {
528
+ /** Icon name — see {@link IconName} for the full list. */
529
+ name: IconName;
530
+ /** Width + height in pixels. Defaults to `20` (matches a body-line). */
531
+ size?: number;
532
+ /** Stroke color. Defaults to the theme's `ink` color. */
533
+ color?: string;
534
+ /** Accessibility label. Defaults to the icon name. */
535
+ label?: string | null;
536
+ }
537
+ declare function PoolseIcon({ name, size, color, label }: PoolseIconProps): react_jsx_runtime.JSX.Element | null;
538
+
539
+ /** An app's own entry in the long-press menu (`extraActions`). */
540
+ interface MessageExtraAction {
541
+ label: string;
542
+ /** Defaults to `more-h`. */
543
+ icon?: IconName;
544
+ /** Called after the menu closes. */
545
+ onPress: () => void;
546
+ /** Red, like Delete. */
547
+ danger?: boolean;
548
+ }
549
+ interface MessageActionsProps {
550
+ visible: boolean;
551
+ onClose: () => void;
552
+ isSelf: boolean;
553
+ /**
554
+ * Quick-reaction emoji row rendered at the top of the sheet. Tap
555
+ * one to fire `onPickReaction(emoji)` and immediately close. When
556
+ * omitted (or `onPickReaction` is omitted) the row is hidden.
557
+ */
558
+ emojis?: string[];
559
+ onPickReaction?: (emoji: string) => void;
560
+ onReply?: () => void;
561
+ onReplyInThread?: () => void;
562
+ onQuote?: () => void;
563
+ onEdit?: () => void;
564
+ onDelete?: () => void;
565
+ onCopy?: () => void;
566
+ /** "Mark unread" — offered on other people's messages. */
567
+ onMarkUnread?: () => void;
568
+ /**
569
+ * "Remove preview" (one per link when there are several) — offered to
570
+ * the sender. Receives the preview's `url`.
571
+ */
572
+ onRemovePreview?: (url: string) => void;
573
+ /** The message's link-preview urls, for `onRemovePreview`. */
574
+ previewUrls?: string[];
575
+ /**
576
+ * A "+" after the quick reactions that opens the full emoji picker.
577
+ * Called after the sheet closes.
578
+ */
579
+ onMoreReactions?: () => void;
580
+ /** Pin or unpin (MS13); `pinned` picks the label. */
581
+ onTogglePin?: () => void;
582
+ pinned?: boolean;
583
+ /** Forward to other conversations (MS13): open your target picker (`<ForwardSheet>`). */
584
+ onForward?: () => void;
585
+ /** Translate (MS21), or back to the original when `translated`. */
586
+ onTranslate?: () => void;
587
+ translated?: boolean;
588
+ /** The app's own actions, listed before Edit / Delete. */
589
+ extraActions?: readonly MessageExtraAction[];
590
+ }
591
+ /**
592
+ * Long-press action menu — modal bottom sheet. Renders a row of
593
+ * quick-react emojis at the top (one tap reacts + closes) plus the
594
+ * action items below. Matches WhatsApp / iMessage's "long-press
595
+ * shows everything inline" pattern.
596
+ */
597
+ declare function MessageActions({ visible, onClose, isSelf, emojis, onPickReaction, onReply, onReplyInThread, onQuote, onEdit, onDelete, onCopy, onMarkUnread, onRemovePreview, previewUrls, onMoreReactions, onTogglePin, pinned, onForward, onTranslate, translated, extraActions, }: MessageActionsProps): react_jsx_runtime.JSX.Element;
598
+
599
+ /** `confirmDelete`: true deletes. May ask asynchronously (your own sheet). */
600
+ type ConfirmDelete = (msg: Message) => boolean | Promise<boolean>;
601
+
602
+ /**
603
+ * - `bubbles` — chat bubbles, own messages on the right (the default).
604
+ * - `list` — Slack-style full-width rows: avatar, name and time once
605
+ * per run of messages.
606
+ * - `compact` — Discord/IRC-style dense lines: time, coloured name and
607
+ * text on one line.
608
+ */
609
+ type ChatLayout = 'bubbles' | 'list' | 'compact';
610
+ type ChatDensity = 'comfortable' | 'compact';
611
+ /** `'12h'`, `'24h'`, or your own formatter. Omitted: the locale's default. */
612
+ type TimeFormat = '12h' | '24h' | ((date: Date) => string);
613
+ /** What each slot function receives. */
614
+ interface MessageSlotProps {
615
+ message: Message;
616
+ /** The viewer sent it. */
617
+ isSelf: boolean;
618
+ sender: MessageUser;
619
+ layout: ChatLayout;
620
+ /** First message of a same-sender run (always true in `compact`). */
621
+ isRunStart: boolean;
622
+ /**
623
+ * What the slot renders by default (may be `null` — e.g. no header on
624
+ * a continuation message). Return it to keep the default, wrap it,
625
+ * or return something else.
626
+ */
627
+ children: ReactNode;
628
+ }
629
+ type MessageSlot = (props: MessageSlotProps) => ReactNode;
630
+ /**
631
+ * Replace or wrap one part of every message, in any layout:
632
+ *
633
+ * - `header` — sender name and time (the name label in `bubbles`)
634
+ * - `body` — the text (or "Message deleted")
635
+ * - `attachments` — images and files
636
+ * - `reactions` — the reaction pills
637
+ * - `thread` — the "N replies" link
638
+ * - `actions` — the long-press actions sheet
639
+ */
640
+ interface MessageSlots {
641
+ header?: MessageSlot;
642
+ body?: MessageSlot;
643
+ attachments?: MessageSlot;
644
+ reactions?: MessageSlot;
645
+ thread?: MessageSlot;
646
+ actions?: MessageSlot;
647
+ }
648
+ type MessageSlotContext = Omit<MessageSlotProps, 'children'>;
649
+ /** Third argument to `renderMessage`. */
650
+ interface RenderMessageContext {
651
+ layout: ChatLayout;
652
+ groupPosition: GroupPosition;
653
+ isRunStart: boolean;
654
+ /** The row ConversationView would have rendered for this message. */
655
+ renderDefault: () => ReactElement;
656
+ }
657
+
658
+ type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
659
+ interface MessageBubbleProps {
660
+ message: Message;
661
+ /** Used to decide left/right alignment, color, and read-receipt visibility. */
662
+ currentUserId: string | null;
663
+ /** `'sent'` → single tick, `'read'` → double tick (theme.colors.accent). */
664
+ readState?: 'sent' | 'read';
665
+ /** Label resolver keyed by `external_id` — falls back to the externalId itself. */
666
+ labelFor?: (externalId: string) => string;
667
+ /** Quoted-card tap handler. Typically used to scroll the list to the original message. */
668
+ onQuotedClick?: (quotedMessageId: Uuid) => void;
669
+ /** Position in a same-sender cluster — drives tail-corner rendering. */
670
+ groupPosition?: BubbleGroupPosition;
671
+ /** Truncate at this many chars and show a "Read more" toggle. Defaults to 0 (off). */
672
+ maxBodyLength?: number;
673
+ /** Show a colored sender label above other-side bubbles. Only meaningful in group chats. */
674
+ showSenderName?: boolean;
675
+ /** Makes the sender label (see `showSenderName`) tappable. */
676
+ onSenderPress?: () => void;
677
+ /** Slot for an actions trigger — typically a chevron rendered by `<MessageRow>`. */
678
+ actionsTrigger?: ReactNode;
679
+ /**
680
+ * Long-press, forwarded into the image tiles. The tiles are
681
+ * Pressables of their own and win the gesture, so a wrapper's
682
+ * onLongPress never fires over an image-only message without this.
683
+ */
684
+ onLongPress?: () => void;
685
+ /** Render in-bubble attachments (images, file cards). Defaults to true. */
686
+ showAttachments?: boolean;
687
+ /**
688
+ * Render the body as Markdown (bold, italic, code, lists, links).
689
+ * Links open via `Linking.openURL`. Requires
690
+ * `react-native-markdown-display` to be installed in the host app;
691
+ * without it we fall back to plain text. Defaults to true.
692
+ */
693
+ markdown?: boolean;
694
+ /**
695
+ * `'12h'` / `'24h'` for the time of day, or a formatter that returns
696
+ * the whole label. Defaults to the locale's.
697
+ */
698
+ timeFormat?: TimeFormat;
699
+ /** `'compact'` tightens the text padding. Defaults to `'comfortable'`. */
700
+ density?: ChatDensity;
701
+ /**
702
+ * Replace or wrap the `header` (sender label), `attachments` and
703
+ * `body` parts. Needs `slotContext` (MessageRow passes both).
704
+ */
705
+ slots?: MessageSlots;
706
+ slotContext?: MessageSlotContext;
707
+ /** Show `message.link_previews` as cards under the text. Defaults to true. */
708
+ linkPreviews?: boolean;
709
+ /** Makes the "edited" label tappable — `<MessageRow>` opens the edit history. */
710
+ onEditedPress?: () => void;
711
+ }
712
+ /**
713
+ * One message bubble, structured as stacked sections rather than one
714
+ * padded box: media bleeds to a 3px frame, text carries its own
715
+ * padding, and the timestamp shares the last text line when measured
716
+ * room allows — which is what makes "ok" a one-line bubble instead of
717
+ * a squat rectangle.
718
+ */
719
+ declare function MessageBubble({ message, currentUserId, readState, labelFor, onQuotedClick, groupPosition, maxBodyLength, showSenderName, onSenderPress, actionsTrigger, showAttachments, markdown, onLongPress, timeFormat, density, slots, slotContext, linkPreviews, onEditedPress, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
720
+
721
+ /** Who sent a message — what `onSenderPress` / `onAvatarPress` receive. */
722
+ interface MessageUser {
723
+ /** poolse user id. */
724
+ userId: Uuid | null;
725
+ /** Your own user id (`external_id`) — what `userResolver` takes. */
726
+ externalId: string | null;
727
+ /** Resolved name, or the fallback shown in its place. */
728
+ displayName: string;
729
+ avatarUrl: string | null;
730
+ }
731
+ interface MessageRowProps {
732
+ msg: Message;
733
+ meId: string | null;
734
+ reactions?: boolean;
735
+ attachments?: boolean;
736
+ actions?: boolean;
737
+ /** Pass false in ThreadView since nested threads aren't a thing in v1. */
738
+ threads?: boolean;
739
+ /** WhatsApp-style quote-reply. Defaults true on ConversationView. */
740
+ quotations?: boolean;
741
+ /** Forwarded to `<MessageBubble markdown>`. Defaults true. */
742
+ markdown?: boolean;
743
+ readState?: 'sent' | 'read';
744
+ /**
745
+ * Whether this row's message is the one currently being edited.
746
+ * Editing happens in the composer (see MessageComposer's
747
+ * `editingMessage` prop); this flag is only used to elevate the
748
+ * row above the dim backdrop ConversationView renders during
749
+ * edit mode.
750
+ */
751
+ isEditing?: boolean;
752
+ /**
753
+ * Long-press → "Edit". Omitted entirely (no Edit option in the
754
+ * menu) when the parent has decided this message isn't editable
755
+ * (someone read it, it's deleted, it isn't yours).
756
+ */
757
+ onStartEdit?: () => void;
758
+ onDelete?: () => void;
759
+ /** The app's own long-press menu entries for this message (before Edit / Delete). */
760
+ extraActions?: readonly MessageExtraAction[];
761
+ onOpenThread?: () => void;
762
+ onQuote?: () => void;
763
+ labelFor?: (externalId: string) => string;
764
+ onQuotedClick?: (quotedMessageId: Uuid) => void;
765
+ groupPosition?: BubbleGroupPosition;
766
+ maxBodyLength?: number;
767
+ /** Show a colored sender label above other-side bubbles. */
768
+ showSenderName?: boolean;
769
+ /** Render an avatar to the LEFT of other-side bubbles. */
770
+ showAvatar?: boolean;
771
+ /** Avatar resolver — same signature as `<MemberList avatarFor>`. */
772
+ avatarFor?: (externalId: string) => string | null;
773
+ /** Makes the sender label tappable (other people's messages). */
774
+ onSenderPress?: (user: MessageUser) => void;
775
+ /** Makes the avatar tappable (other people's messages). */
776
+ onAvatarPress?: (user: MessageUser) => void;
777
+ /** Call-log rows: offer "Call back" (see `<CallLogRow onCallBack>`). */
778
+ onCallBack?: (media: 'audio' | 'video') => void;
779
+ /**
780
+ * A poolse user id → display name, for system lines that name people
781
+ * by internal id (the recording notice). Unknown: the name is left out.
782
+ */
783
+ nameForUserId?: (userId: string) => string | null | undefined;
784
+ /** `'bubbles'` (default), `'list'` or `'compact'` — see `ChatLayout`. */
785
+ layout?: ChatLayout;
786
+ /** `'comfortable'` (default) or `'compact'` spacing. */
787
+ density?: ChatDensity;
788
+ /** `'12h'`, `'24h'` or a formatter for timestamps. Defaults to the locale's. */
789
+ timeFormat?: TimeFormat;
790
+ /** Replace or wrap parts of the row — see `MessageSlots`. */
791
+ slots?: MessageSlots;
792
+ /**
793
+ * The message @-mentions the viewer: `list` and `compact` mark it
794
+ * with an accent bar.
795
+ */
796
+ mentionsMe?: boolean;
797
+ /** Presence badge on the sender's avatar (needs `showAvatar`). */
798
+ showPresence?: boolean;
799
+ /** Show the message's link previews as cards under the text. Defaults to true. */
800
+ linkPreviews?: boolean;
801
+ /**
802
+ * Long-press → "Remove preview" on your own message (one per link).
803
+ * Receives the preview's url — `chat.messages.update(id, { remove_link_previews: [url] })`.
804
+ */
805
+ onRemoveLinkPreview?: (url: string) => void;
806
+ /** Long-press → "Mark unread" on other people's messages. */
807
+ onMarkUnread?: () => void;
808
+ /** The "edited" label opens the edit history (`chat.messages.edits`). Defaults to true. */
809
+ editHistory?: boolean;
810
+ /** Unsent message (queued or failed in the outbox): the Retry under it. */
811
+ onRetrySend?: () => void;
812
+ /** Unsent message: the Delete under it. */
813
+ onDiscardSend?: () => void;
814
+ }
815
+ declare function MessageRow(props: MessageRowProps): react_jsx_runtime.JSX.Element | null;
816
+
817
+ /** What the composer held for a conversation. */
818
+ interface ConversationDraft {
819
+ text: string;
820
+ /** The message being quote-replied to, if any. */
821
+ quote: Message | null;
822
+ }
823
+ /**
824
+ * Where `persistDrafts` keeps drafts between launches — MMKV,
825
+ * AsyncStorage or anything with the same three calls. Values are JSON
826
+ * strings; each call may return a promise.
827
+ */
828
+ interface DraftStorage {
829
+ get: (key: string) => string | null | undefined | Promise<string | null | undefined>;
830
+ set: (key: string, value: string) => void | Promise<void>;
831
+ remove: (key: string) => void | Promise<void>;
832
+ }
833
+
834
+ interface ConversationViewProps {
835
+ conversationId: Uuid;
836
+ emptyState?: ReactElement | string;
837
+ /**
838
+ * Custom row renderer. Return `null` / `undefined` to fall back to
839
+ * the default row for that message (so you can override just the
840
+ * message kinds you care about). The third argument carries the
841
+ * layout and `renderDefault()`, the row this view would have drawn.
842
+ */
843
+ renderMessage?: (msg: Message, currentUserId: string | null, context: RenderMessageContext) => ReactElement | null | undefined;
844
+ /**
845
+ * How messages are drawn:
846
+ * * `'bubbles'` (default) — chat bubbles, yours on the right.
847
+ * * `'list'` — Slack-style full-width rows; avatar, name and time
848
+ * once per run, later messages' time dimmed in the gutter,
849
+ * "N replies" under threads. Long-press for actions.
850
+ * * `'compact'` — Discord/IRC-style dense lines: time, the name in
851
+ * the sender's colour, the text; an accent bar on messages that
852
+ * mention you.
853
+ */
854
+ layout?: ChatLayout;
855
+ /** `'comfortable'` (default) or `'compact'` spacing, in any layout. */
856
+ density?: ChatDensity;
857
+ /**
858
+ * Show avatars. Defaults: `list` on, `compact` off, `bubbles` per
859
+ * `avatars` (others' messages in group chats). Overrides `avatars`.
860
+ */
861
+ showAvatars?: boolean;
862
+ /** `'12h'`, `'24h'` or a formatter. Defaults to the locale's. */
863
+ timeFormat?: TimeFormat;
864
+ /**
865
+ * Same-sender messages less than this many minutes apart form one
866
+ * run (one bubble cluster, one `list` header). Default 5.
867
+ */
868
+ groupWindowMinutes?: number;
869
+ /** Day dividers between messages on different days. Defaults to `true`. */
870
+ daySeparators?: boolean;
871
+ /**
872
+ * Replace or wrap one part of every message — `header`, `body`,
873
+ * `attachments`, `reactions`, `thread`, `actions` — in any layout.
874
+ * Each receives the message, sender, layout and its default
875
+ * rendering as `children`.
876
+ */
877
+ slots?: MessageSlots;
878
+ labelFor?: (externalId: string) => string;
879
+ avatarFor?: (externalId: string) => string | null;
880
+ /**
881
+ * Renders the default `<ChatHeader>` at the top of the chat surface.
882
+ * * `true` (default) — auto chat header (other user / group name).
883
+ * * `false` — no header (you supply your own above).
884
+ * * `ReactElement` — custom header node, rendered as-is.
885
+ */
886
+ header?: boolean | ReactElement;
887
+ /** Tap on the header's members icon — typically opens a sheet. */
888
+ onHeaderMembersPress?: () => void;
889
+ /** Tap on the header itself — typically opens a conversation profile. */
890
+ onHeaderPress?: () => void;
891
+ reactions?: boolean;
892
+ mentions?: boolean;
893
+ attachments?: boolean;
894
+ actions?: boolean;
895
+ threads?: boolean;
896
+ quotations?: boolean;
897
+ /**
898
+ * Show read ticks on your own messages. Only the ticks: the view
899
+ * marks messages read either way, so unread counts stay right.
900
+ */
901
+ readReceipts?: boolean;
902
+ /** Render message bodies as Markdown (links, bold, code). Defaults true. */
903
+ markdown?: boolean;
904
+ maxBodyLength?: number;
905
+ /** Show sender labels in group chats. `auto` (default), `always`, `never`. */
906
+ senderLabels?: 'auto' | 'always' | 'never';
907
+ /** Show avatars to the left of other-side bubbles in group chats. Same semantics. */
908
+ avatars?: 'auto' | 'always' | 'never';
909
+ /**
910
+ * Fires once the server accepts a new read position (the view marks
911
+ * the newest message read as it arrives). Receives the conversation
912
+ * id + the message id marked as last-read. Every
913
+ * `useConversations()` under the same provider has already cleared
914
+ * the conversation's badge by then.
915
+ */
916
+ onMarkedRead?: (conversationId: string, messageId: string) => void;
917
+ /**
918
+ * Fires after every successful message send — e.g. to refetch
919
+ * conversations from a list that isn't `useConversations()` (which
920
+ * gets the new preview over realtime already).
921
+ */
922
+ onSent?: (conversationId: string) => void;
923
+ /**
924
+ * Jump to this message: older pages load until it's there, then it
925
+ * scrolls into view and is highlighted briefly. Set it again (or to
926
+ * another id) to jump again. When it can't be found — deleted, a
927
+ * thread reply, or not in this conversation — a short notice shows
928
+ * and `onFocusMessageNotFound` fires.
929
+ */
930
+ focusMessageId?: Uuid | null;
931
+ /** `focusMessageId` couldn't be found in this conversation. */
932
+ onFocusMessageNotFound?: (messageId: Uuid) => void;
933
+ /** Makes the sender label on other people's messages tappable. */
934
+ onSenderPress?: (user: MessageUser) => void;
935
+ /** Makes the avatar next to other people's messages tappable. */
936
+ onAvatarPress?: (user: MessageUser) => void;
937
+ /**
938
+ * `false` hides the composer (and with it quote-reply and the
939
+ * attachment picker) — for an archived conversation or a viewer who
940
+ * can't post. Defaults to `true`.
941
+ */
942
+ composer?: boolean;
943
+ /** Same as `composer={false}`. */
944
+ readOnly?: boolean;
945
+ /**
946
+ * keyboardVerticalOffset passed to the internal KeyboardAvoidingView.
947
+ * On iOS this MUST equal the distance from the screen top to the
948
+ * KAV's top (status bar + safe-area-top + any nav header above
949
+ * the chat). `<PoolseInbox>` computes this for you. Standalone
950
+ * consumers pass it manually.
951
+ */
952
+ keyboardOffset?: number;
953
+ /**
954
+ * Offer "Call back" on call-log rows the viewer missed or declined,
955
+ * or placed with no answer. Receives the call's media; place the call
956
+ * on this conversation.
957
+ */
958
+ onCallBack?: (media: 'audio' | 'video') => void;
959
+ /**
960
+ * Show a "Call in progress · Join" banner while a call runs on this
961
+ * conversation that the viewer is not on. Called with the live call
962
+ * when they tap Join.
963
+ */
964
+ onJoinCall?: (call: LiveCall) => void;
965
+ /**
966
+ * The call this device is already on, if any — its banner is hidden
967
+ * (the viewer is in the room, or ringing out as its caller).
968
+ */
969
+ currentCallId?: string | null;
970
+ /**
971
+ * A source under an assistant's answer was pressed (AG5). Without it,
972
+ * message sources in this conversation are focused here.
973
+ */
974
+ onOpenCitation?: (citation: Citation, message: Message) => void;
975
+ /**
976
+ * A point in a call was pressed — a line or moment of a summary (RT6):
977
+ * open its recording at `moment.recordingMs` or transcript at `moment.startMs`.
978
+ */
979
+ onOpenMoment?: (moment: MeetingMoment) => void;
980
+ /**
981
+ * Plays clips in chat (RT9): your media adapter (expo-video,
982
+ * expo-audio…) — see `RenderMedia` and the README. Without it a clip
983
+ * shows its time range only.
984
+ */
985
+ renderMedia?: RenderMedia;
986
+ /** Presence badges on message avatars (where avatars show). Defaults to `false`. */
987
+ showPresence?: boolean;
988
+ /**
989
+ * Link previews (`message.link_previews`) as cards under the text,
990
+ * with "Remove preview" in the sender's long-press sheet. Defaults to `true`.
991
+ */
992
+ linkPreviews?: boolean;
993
+ /**
994
+ * A "New messages" line above the first message that was unread when
995
+ * the conversation opened, and a pill that jumps to it (loading older
996
+ * pages as needed) while it's off screen. Defaults to `true`.
997
+ */
998
+ newMessagesDivider?: boolean;
999
+ /**
1000
+ * Unsent text and the quote target are kept per conversation in
1001
+ * memory, across conversation switches, always. With a `draftStorage`
1002
+ * they are also written there, so they survive a restart; set
1003
+ * `persistDrafts={false}` to keep them in memory only. Defaults to
1004
+ * `true` when `draftStorage` is given.
1005
+ */
1006
+ persistDrafts?: boolean;
1007
+ /**
1008
+ * Where drafts persist — `{ get, set, remove }` over string values
1009
+ * (MMKV, AsyncStorage, …); each may return a promise. Keys are
1010
+ * `poolse:draft:<conversationId>`.
1011
+ */
1012
+ draftStorage?: DraftStorage;
1013
+ /** An emoji button in the composer. Defaults to `true`. */
1014
+ emojiPicker?: boolean;
1015
+ /** Largest attachment accepted, in bytes; larger picks show an error. */
1016
+ maxFileSize?: number;
1017
+ /** Accepted attachment types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
1018
+ acceptedFileTypes?: string[];
1019
+ /**
1020
+ * Long-press → "Mark unread" on other people's messages. Defaults to
1021
+ * `true`. The view then stops marking messages read until you send
1022
+ * one or reopen the conversation.
1023
+ */
1024
+ markUnread?: boolean;
1025
+ /** Fires after "Mark unread" succeeded (the unread counts follow over realtime). */
1026
+ onMarkedUnread?: (conversationId: string, messageId: string) => void;
1027
+ /**
1028
+ * Passed through to the composer (`placeholder`, `disabled`,
1029
+ * `formattingToolbar`, `commands`…). The text, sending, quoting and
1030
+ * editing stay the view's; `onTyping` runs alongside its own. Also used
1031
+ * by the thread sheet's composer.
1032
+ */
1033
+ composerProps?: ComposerPassThroughProps;
1034
+ /** Rendered above the composer (a toolbar, a "scheduled" chip…). */
1035
+ composerAccessory?: ReactNode;
1036
+ /**
1037
+ * The composer's handle: `focus`, `insertText` (at the cursor),
1038
+ * `setText`, `getText`, `clear`, `setSelection`, `addFiles`.
1039
+ */
1040
+ composerHandle?: Ref<MessageComposerHandle>;
1041
+ /**
1042
+ * Runs before every send here and in the thread sheet: return the
1043
+ * message (changed or not), or `false` to cancel — the text and files
1044
+ * stay in the composer.
1045
+ */
1046
+ beforeSend?: BeforeSend;
1047
+ /** The app's own entries in a message's long-press menu, listed before Edit / Delete. */
1048
+ extraActions?: (msg: Message) => readonly MessageExtraAction[];
1049
+ /**
1050
+ * Asked before a message is deleted; resolve `true` to delete. Defaults
1051
+ * to a native "Delete message?" alert. Also used in the thread sheet.
1052
+ */
1053
+ confirmDelete?: ConfirmDelete;
1054
+ }
1055
+ declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, avatarFor, header, onHeaderMembersPress, onHeaderPress, reactions, mentions, attachments, actions, threads, quotations, readReceipts, markdown, maxBodyLength, senderLabels, avatars, onMarkedRead, onSent, focusMessageId, onFocusMessageNotFound, onSenderPress, onAvatarPress, composer, readOnly, keyboardOffset, onCallBack, onJoinCall, currentCallId, onOpenCitation, onOpenMoment, renderMedia, layout, density, showAvatars: showAvatarsProp, timeFormat, groupWindowMinutes, daySeparators, slots, showPresence, linkPreviews, newMessagesDivider, persistDrafts, draftStorage, emojiPicker, maxFileSize, acceptedFileTypes, markUnread, onMarkedUnread, composerProps: appComposerProps, composerAccessory, composerHandle, beforeSend, extraActions, confirmDelete, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
1056
+
1057
+ interface ChatHeaderProps {
1058
+ conversationId: Uuid;
1059
+ /**
1060
+ * Override the title resolver — useful when you want to derive the
1061
+ * direct-chat name from your own user directory instead of going
1062
+ * through the SDK's `userResolver`. When omitted, falls back to:
1063
+ * * direct → the other member's display name (via `useUser`)
1064
+ * * group → `conversation.name`
1065
+ */
1066
+ labelFor?: (externalId: string) => string;
1067
+ /** Optional avatar URL resolver for the other party (direct only). */
1068
+ avatarFor?: (externalId: string) => string | null;
1069
+ /** Right-side icon button — typically opens a member-list sheet. */
1070
+ onMembersPress?: () => void;
1071
+ /**
1072
+ * Tap handler for the whole header. Behavior:
1073
+ * * Direct chat → calls this if provided, otherwise no-op.
1074
+ * * Group chat → calls this if provided. If omitted, the header
1075
+ * opens a built-in group-details sheet showing the member
1076
+ * roster with live presence.
1077
+ */
1078
+ onPress?: () => void;
1079
+ /**
1080
+ * When provided, renders a back arrow on the LEFT of the header
1081
+ * that calls this handler on tap. Used by `<PoolseInbox>` to
1082
+ * navigate back to the conversation list; safe to wire from your
1083
+ * own navigator too.
1084
+ */
1085
+ onBack?: () => void;
1086
+ }
1087
+ /**
1088
+ * Top-of-chat header bar.
1089
+ * * 1:1 direct → other user's display name + avatar + presence badge,
1090
+ * and "Online" / "Away" / "In a call" / "Last seen …" under the name.
1091
+ * * Group → conversation name + "N members" + group-tile avatar.
1092
+ *
1093
+ * Sits above `<MessageList>` inside `<ConversationView>` by default;
1094
+ * pass `header={false}` to `<ConversationView>` if you mount your own.
1095
+ */
1096
+ declare function ChatHeader({ conversationId, labelFor, avatarFor, onMembersPress, onPress, onBack, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
1097
+
1098
+ interface GroupDetailsSheetProps {
1099
+ visible: boolean;
1100
+ onClose: () => void;
1101
+ conversationId: Uuid;
1102
+ /** Resolve external_id → display name. Same shape as MemberList. */
1103
+ labelFor?: (externalId: string) => string;
1104
+ /** Resolve external_id → avatar URL. Same shape as MemberList. */
1105
+ avatarFor?: (externalId: string) => string | null;
1106
+ /**
1107
+ * Predicate for the per-row remove button. Defaults to "never show"
1108
+ * — wire it on the parent for owners/admins. Receives the
1109
+ * Membership row so you can scope to roles or exclude self.
1110
+ */
1111
+ canRemoveMember?: (m: {
1112
+ user_id: string;
1113
+ external_id: string;
1114
+ role: string;
1115
+ }) => boolean;
1116
+ }
1117
+ /**
1118
+ * Bottom-sheet (85% of screen) that opens when the user taps the
1119
+ * group chat header. Shows group name + member count at the top,
1120
+ * then a scrollable roster with avatars, display names (resolved
1121
+ * through `labelFor` / `userResolver`), role badges, and live
1122
+ * presence dots (driven by `MemberList` internally).
1123
+ */
1124
+ declare function GroupDetailsSheet({ visible, onClose, conversationId, labelFor, avatarFor, canRemoveMember, }: GroupDetailsSheetProps): react_jsx_runtime.JSX.Element;
1125
+
1126
+ interface CallLogRowProps {
1127
+ /** The call-log message. Rows that aren't call logs render nothing. */
1128
+ msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
1129
+ deleted_at?: string | null;
1130
+ };
1131
+ /** Current user's id — decides how the call is worded for them. */
1132
+ meId: string | null;
1133
+ /**
1134
+ * Offer "Call back" on calls the viewer missed or declined, or placed
1135
+ * with no answer. Receives the call's media. Omit to show no action.
1136
+ */
1137
+ onCallBack?: (media: 'audio' | 'video') => void;
1138
+ }
1139
+ /**
1140
+ * Centered, compact timeline line for call-log system messages
1141
+ * ("Voice call · 3:12", "Missed call"). Same visual family as
1142
+ * `<DaySeparator>` — surface chip, hairline border, small semibold
1143
+ * label — so it reads as a separator between bubble clusters rather
1144
+ * than a message. No reactions, thread pill, swipe or long-press.
1145
+ *
1146
+ * `<MessageRow>` renders this automatically for call-log messages.
1147
+ */
1148
+ declare function CallLogRow({ msg, meId, onCallBack }: CallLogRowProps): react_jsx_runtime.JSX.Element | null;
1149
+
1150
+ interface LiveCallBannerProps {
1151
+ call: LiveCall;
1152
+ /** How many people are in the room right now. */
1153
+ inCall: number;
1154
+ onJoin: (call: LiveCall) => void;
1155
+ }
1156
+ /**
1157
+ * "Voice call in progress · 2 on the call [Join]" — a strip across the
1158
+ * top of a conversation while a call runs that the viewer is not on.
1159
+ * `<ConversationView onJoinCall>` renders it for you; use it directly
1160
+ * to place it elsewhere (with `useLiveCall`).
1161
+ */
1162
+ declare function LiveCallBanner({ call, inCall, onJoin }: LiveCallBannerProps): react_jsx_runtime.JSX.Element;
1163
+
1164
+ interface RecordingBannerProps {
1165
+ /** A recording is running. */
1166
+ recording: boolean;
1167
+ /** A live transcript is running. */
1168
+ transcribing?: boolean;
1169
+ mode?: RecordingMode | null;
1170
+ /** Capture needs consent here (`useRecording().consentRequired`). */
1171
+ consentRequired?: boolean;
1172
+ /** Your answer (`useRecording().myConsent`). `declined` shows "listen-only" and a way to change it. */
1173
+ myConsent?: ConsentDecision | null;
1174
+ /** Shows a Stop button (for whoever may stop it). */
1175
+ onStop?: () => void;
1176
+ /** After declining: reopen the prompt. */
1177
+ onChangeConsent?: () => void;
1178
+ /** Disable the buttons (a request is in flight). */
1179
+ pending?: boolean;
1180
+ style?: StyleProp<ViewStyle>;
1181
+ }
1182
+ /**
1183
+ * "● Recording · Everyone in the call is told [Stop]" — a strip across
1184
+ * a captured call, for everyone in it (late joiners too). Renders nothing
1185
+ * while nothing is captured.
1186
+ */
1187
+ declare function RecordingBanner({ recording, transcribing, mode, consentRequired, myConsent, onStop, onChangeConsent, pending, style, }: RecordingBannerProps): react_jsx_runtime.JSX.Element | null;
1188
+ interface RecordingIndicatorProps {
1189
+ recording: boolean;
1190
+ transcribing?: boolean;
1191
+ mode?: RecordingMode | null;
1192
+ /** Text colour, e.g. white over video. Defaults to the theme's danger colour. */
1193
+ color?: string;
1194
+ style?: StyleProp<ViewStyle>;
1195
+ }
1196
+ /** A small "● REC" pill for a call header or tile. Nothing while nothing is captured. */
1197
+ declare function RecordingIndicator({ recording, transcribing, mode, color, style, }: RecordingIndicatorProps): react_jsx_runtime.JSX.Element | null;
1198
+ interface ConsentPromptProps {
1199
+ /** A recording is running. */
1200
+ recording: boolean;
1201
+ /** A live transcript is running. */
1202
+ transcribing?: boolean;
1203
+ mode?: RecordingMode | null;
1204
+ /** Who started it, if known. Never pass a raw id. */
1205
+ startedByName?: string | null;
1206
+ /** Answer (e.g. `useRecording().consent`). A `false` result keeps the prompt open with an error. */
1207
+ onAnswer: (decision: ConsentDecision) => Promise<boolean | void> | boolean | void;
1208
+ /**
1209
+ * Called once an accept went through: publishing is allowed again.
1210
+ * With the native call core, re-enable the microphone and camera here;
1211
+ * the SDK's `CallRoom` does it by itself.
1212
+ */
1213
+ onAccepted?: () => void;
1214
+ /** Called after a decline went through (e.g. close the prompt). */
1215
+ onDeclined?: () => void;
1216
+ pending?: boolean;
1217
+ error?: string | null;
1218
+ /** Cover the parent with a scrim (absolute fill). Defaults to true; false renders the card only. */
1219
+ overlay?: boolean;
1220
+ style?: StyleProp<ViewStyle>;
1221
+ }
1222
+ /**
1223
+ * Asks someone in a captured call for consent — shown to anyone who
1224
+ * hasn't accepted, late joiners included, when the room requires it.
1225
+ * Until they agree their microphone and camera stay off; they still hear
1226
+ * and see everyone. Declining keeps them listen-only.
1227
+ */
1228
+ declare function ConsentPrompt({ recording, transcribing, mode, startedByName, onAnswer, onAccepted, onDeclined, pending, error, overlay, style, }: ConsentPromptProps): react_jsx_runtime.JSX.Element;
1229
+ interface RecordingNoticeRowProps {
1230
+ /** The recording notice message. Rows that aren't one render nothing. */
1231
+ msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
1232
+ deleted_at?: string | null;
2176
1233
  };
1234
+ /** Current user's id — "by you". */
1235
+ meId: string | null;
1236
+ /** A poolse user id → display name. Unknown: the name is left out. */
1237
+ nameFor?: (userId: Uuid) => string | null | undefined;
1238
+ }
1239
+ /**
1240
+ * "● Recording started · by Elena · 10:04" — the chat line the server
1241
+ * posts when a recording starts or stops. `<MessageRow>` renders it.
1242
+ */
1243
+ declare function RecordingNoticeRow({ msg, meId, nameFor }: RecordingNoticeRowProps): react_jsx_runtime.JSX.Element | null;
1244
+
1245
+ interface LiveTranscriptPanelProps {
1246
+ /** The call. Null renders an empty panel. */
1247
+ callId: string | null;
1248
+ /** Keep the transcript topic open. Defaults to true; false while the panel is hidden. */
1249
+ enabled?: boolean;
1250
+ /** Start / Stop transcription buttons (someone in the call). Defaults to true. */
1251
+ showControls?: boolean;
1252
+ /** Shows a close button. */
1253
+ onClose?: () => void;
1254
+ title?: string;
1255
+ style?: StyleProp<ViewStyle>;
1256
+ }
1257
+ /**
1258
+ * The call's live transcript as it is spoken: speaker, time and text,
1259
+ * the current speaker's words in grey until they are final. Opens the
1260
+ * transcript topic while mounted (the last 200 lines arrive at once)
1261
+ * and sticks to the bottom unless you scroll up.
1262
+ */
1263
+ declare function LiveTranscriptPanel({ callId, enabled, showControls, onClose, title, style, }: LiveTranscriptPanelProps): react_jsx_runtime.JSX.Element;
1264
+ interface TranscriptViewerProps {
1265
+ /** The call whose stored transcript to show. */
1266
+ callId: string | null;
1267
+ /**
1268
+ * Offer speaker renames. Defaults to true; the server allows it for
1269
+ * people who took part in the call and the conversation's owners and
1270
+ * admins, and anyone else gets an explanation instead.
1271
+ */
1272
+ canRename?: boolean;
1273
+ /** Makes timestamps pressable, e.g. to seek a recording (ms since the transcript started). */
1274
+ onSeek?: (ms: number) => void;
1275
+ title?: string;
1276
+ style?: StyleProp<ViewStyle>;
1277
+ }
1278
+ /**
1279
+ * A call's stored transcript: who spoke, when, and what they said;
1280
+ * search within it; and correct a speaker's name (everyone viewing sees
1281
+ * the change at once).
1282
+ */
1283
+ declare function TranscriptViewer({ callId, canRename, onSeek, title, style, }: TranscriptViewerProps): react_jsx_runtime.JSX.Element | null;
1284
+
1285
+ interface AgentBadgeProps {
1286
+ /** `sm` (default) beside names in lists; `xs` in dense rows. */
1287
+ size?: 'xs' | 'sm';
1288
+ /** Defaults to "Agent". */
1289
+ label?: string;
1290
+ style?: StyleProp<ViewStyle>;
1291
+ }
1292
+ declare function AgentBadge({ size, label, style }: AgentBadgeProps): react_jsx_runtime.JSX.Element;
1293
+ /**
1294
+ * The badge as nested text, for inside a `<Text>` (a sender label that
1295
+ * is itself pressable text). Same wording and color as `<AgentBadge>`.
1296
+ */
1297
+ declare function AgentBadgeInline({ label }: {
1298
+ label?: string;
1299
+ }): react_jsx_runtime.JSX.Element;
1300
+
1301
+ interface CallAgentTagProps {
1302
+ agent: Pick<CallAgent, 'mode' | 'status' | 'speaking'>;
1303
+ /** Show what it's doing ("Taking notes"). Defaults to true. */
1304
+ showState?: boolean;
1305
+ /** The participant's live speaking flag; overrides the agent's. */
1306
+ speaking?: boolean;
1307
+ /** Over video: light text. */
1308
+ onMedia?: boolean;
1309
+ style?: StyleProp<ViewStyle>;
1310
+ }
1311
+ /** The Agent badge with the agent's state — beside its name wherever it's listed in a call. */
1312
+ declare function CallAgentTag({ agent, showState, speaking, onMedia, style, }: CallAgentTagProps): react_jsx_runtime.JSX.Element;
1313
+ interface InviteAgentMenuProps {
1314
+ /** `useCallAgents(conversationId, callId)`. */
1315
+ callAgents: UseCallAgents;
1316
+ onDone?: () => void;
1317
+ style?: StyleProp<ViewStyle>;
1318
+ }
1319
+ /**
1320
+ * Bring a note-taker (silent: transcript, summary and tasks) or an
1321
+ * assistant (answers when addressed by name) into the call, switch
1322
+ * one's mode, or send one out.
1323
+ */
1324
+ declare function InviteAgentMenu({ callAgents, onDone, style }: InviteAgentMenuProps): react_jsx_runtime.JSX.Element;
1325
+ interface WhisperPanelProps {
1326
+ /** `useWhisper(callId)`. */
1327
+ whisper: UseWhisper;
1328
+ /** Height of the hint list before it scrolls. Defaults to 320. */
1329
+ maxHeight?: number;
1330
+ style?: StyleProp<ViewStyle>;
1331
+ }
1332
+ /**
1333
+ * Private hints during a call — facts, what you promised last time,
1334
+ * questions to raise. Only you see them; the panel says so.
1335
+ */
1336
+ declare function WhisperPanel({ whisper, maxHeight, style }: WhisperPanelProps): react_jsx_runtime.JSX.Element;
1337
+ interface EscalationCardProps {
1338
+ escalation: AgentEscalation;
1339
+ /** The agent's name; defaults to the directory's, else "Your agent". */
1340
+ agentName?: string | null;
1341
+ meetingTitle?: string | null;
1342
+ /** Defaults to `poolse.escalations.reply`. */
1343
+ reply?: (id: string, reply: EscalationReply) => Promise<unknown>;
1344
+ onReplied?: (escalation: AgentEscalation) => void;
1345
+ style?: StyleProp<ViewStyle>;
1346
+ }
1347
+ /**
1348
+ * Your agent, in a meeting for you, asking something its brief doesn't
1349
+ * cover: Approve, Decline, or write an answer.
1350
+ */
1351
+ declare function EscalationCard({ escalation: e, agentName, meetingTitle, reply, onReplied, style, }: EscalationCardProps): react_jsx_runtime.JSX.Element;
1352
+ interface EscalationListProps {
1353
+ /** Only this call's. */
1354
+ callId?: string | null;
1355
+ /** Shown when nothing waits. Defaults to nothing. */
1356
+ empty?: string | null;
1357
+ style?: StyleProp<ViewStyle>;
1358
+ }
1359
+ /** Everything your agents wait for you to answer, live. */
1360
+ declare function EscalationList({ callId, empty, style }: EscalationListProps): react_jsx_runtime.JSX.Element | null;
1361
+
1362
+ interface ApprovalCardProps {
1363
+ /** The request — from `useApprovals()` or `useApproval(id)`. */
1364
+ approval: AgentApproval;
1365
+ /** The agent's name when the request leaves it out (e.g. the message's sender). */
1366
+ agentName?: string | null;
1367
+ /** After an answer went through. */
1368
+ onDecided?: (approval: AgentApproval) => void;
1369
+ /** How many detail lines show before "Show all". Defaults to 4. */
1370
+ maxDetails?: number;
1371
+ style?: StyleProp<ViewStyle>;
1372
+ }
1373
+ /**
1374
+ * An agent asking before it calls a tool with an effect outside the chat. One tap
1375
+ * approves or denies; a reason is optional. Follows the shared
1376
+ * approvals store, so an answer given anywhere shows here at once.
1377
+ */
1378
+ declare function ApprovalCard({ approval: initial, agentName, onDecided, maxDetails, style, }: ApprovalCardProps): react_jsx_runtime.JSX.Element;
1379
+ interface MessageApprovalProps {
1380
+ /** `approvalIdOf(message)`. */
1381
+ approvalId: string;
1382
+ /** The asking agent's name (the message's sender) when the directory doesn't know it. */
1383
+ agentName?: string | null;
1384
+ style?: StyleProp<ViewStyle>;
1385
+ }
1386
+ /**
1387
+ * The approval an agent's message waits for (`agent_meta.approval_id`),
1388
+ * loaded and kept live. Nothing shows for someone else's approval.
1389
+ */
1390
+ declare function MessageApproval({ approvalId, agentName, style }: MessageApprovalProps): react_jsx_runtime.JSX.Element | null;
1391
+ interface ApprovalListProps {
1392
+ emptyState?: ReactNode;
1393
+ /** Re-list every so often as a fallback to live events (ms; 0 = never). Defaults to 60 s. */
1394
+ pollMs?: number;
1395
+ style?: StyleProp<ViewStyle>;
1396
+ }
1397
+ /** Everything waiting for your approval, newest first, live. */
1398
+ declare function ApprovalList({ emptyState, pollMs, style }: ApprovalListProps): react_jsx_runtime.JSX.Element;
1399
+ interface MessageCitationsProps {
1400
+ message: Message;
1401
+ /** Defaults to `citationsOf(message)`. */
1402
+ citations?: Citation[];
1403
+ /** Defaults to the `MessageExtrasProvider`'s `onOpenCitation`. */
1404
+ onOpenCitation?: (citation: Citation, message: Message) => void;
1405
+ /** `onBrand` inside your own (coloured) bubble. */
1406
+ tone?: 'default' | 'onBrand';
1407
+ style?: StyleProp<ViewStyle>;
1408
+ }
1409
+ /** The sources of an assistant's answer as links. Plain text when nothing handles a press. */
1410
+ declare function MessageCitations({ message, citations, onOpenCitation, tone, style, }: MessageCitationsProps): react_jsx_runtime.JSX.Element | null;
1411
+
1412
+ interface SummaryCardProps {
1413
+ summary: CallSummary;
1414
+ /** A timed line or moment was pressed. Defaults to the provider's; without one, times are plain text. */
1415
+ onOpenMoment?: (moment: MeetingMoment) => void;
1416
+ /** A poolse user id → name, for assignees. Defaults to the provider's, then the conversation's members. */
1417
+ nameForUserId?: (userId: string) => string | null | undefined;
1418
+ /** Fetch the full copy when shortened and follow `summary:ready`. Defaults to true. */
1419
+ live?: boolean;
1420
+ style?: StyleProp<ViewStyle>;
1421
+ }
1422
+ /** A call's summary: overview, decisions, action items, open questions, sections and moments. */
1423
+ declare function SummaryCard({ summary: initial, onOpenMoment, nameForUserId, live, style, }: SummaryCardProps): react_jsx_runtime.JSX.Element;
1424
+ interface SummaryMessageRowProps {
1425
+ msg: Message;
1426
+ meId: string | null;
1427
+ nameForUserId?: (userId: string) => string | null | undefined;
1428
+ }
1429
+ /** A `kind: "call_summary"` message in a list: who posted it, then the card. */
1430
+ declare function SummaryMessageRow({ msg, nameForUserId }: SummaryMessageRowProps): react_jsx_runtime.JSX.Element | null;
1431
+ interface AskMeetingsProps {
1432
+ callId?: string | null;
1433
+ conversationId?: string | null;
1434
+ onOpenMoment?: (moment: MeetingMoment) => void;
1435
+ placeholder?: string;
1436
+ style?: StyleProp<ViewStyle>;
1437
+ }
1438
+ /** A question box over your meetings, answered with links to the moments. */
1439
+ declare function AskMeetings({ callId, conversationId, onOpenMoment, placeholder, style, }: AskMeetingsProps): react_jsx_runtime.JSX.Element;
1440
+ interface ClipPlayerProps {
1441
+ /** A clip shared in chat (an attachment) — plays its own file. */
1442
+ attachment?: Attachment | null;
1443
+ /** A clip by id — shows "Cutting…" until `clip:ready`. */
1444
+ clipId?: string | null;
1445
+ /** Or a range of a recording: plays from `startMs` and stops at `endMs`. */
1446
+ clip?: {
1447
+ recordingId: string;
1448
+ startMs: number;
1449
+ endMs: number;
1450
+ } | null;
1451
+ onOpenRecording?: (recordingId: string, startMs: number) => void;
1452
+ /** The media adapter. Defaults to the provider's `renderMedia`. */
1453
+ renderMedia?: RenderMedia;
1454
+ compact?: boolean;
1455
+ style?: StyleProp<ViewStyle>;
1456
+ }
1457
+ /** A short piece of a call's recording. */
1458
+ declare function ClipPlayer({ attachment, clipId, clip: rangeClip, onOpenRecording, renderMedia, compact, style, }: ClipPlayerProps): react_jsx_runtime.JSX.Element;
1459
+ interface RecordingPlayerProps {
1460
+ recordingId: string;
1461
+ showTranscript?: boolean;
1462
+ /** Start here (recording ms — a moment's `recordingMs`); a new value seeks. */
1463
+ startMs?: number | null;
1464
+ defaultSkipSilence?: boolean;
1465
+ /** The media adapter. Defaults to the provider's `renderMedia`. */
1466
+ renderMedia?: RenderMedia;
1467
+ style?: StyleProp<ViewStyle>;
1468
+ }
1469
+ interface RecordingPlayerHandle {
1470
+ /** Seek to recording time `ms` and play. */
1471
+ seek: (ms: number) => void;
1472
+ /** Seek to transcript time `ms` (a summary item's `startMs`) and play. */
1473
+ seekTranscript: (ms: number) => void;
1474
+ play: () => void;
1475
+ pause: () => void;
1476
+ }
1477
+ /**
1478
+ * A finished recording (`GET /v1/recordings/:id/playback`): 1×–2× speed,
1479
+ * skip silence, chapters, and the transcript scrolling along — tap a line
1480
+ * to play from there.
1481
+ */
1482
+ declare const RecordingPlayer: react.ForwardRefExoticComponent<RecordingPlayerProps & react.RefAttributes<RecordingPlayerHandle>>;
1483
+
1484
+ /** Someone in the call, as the panels name them. */
1485
+ interface MeetingParticipant {
1486
+ userId: string;
1487
+ name?: string | null;
1488
+ /** Joined from a guest link: shown with a Guest mark. */
1489
+ guest?: boolean;
1490
+ avatarUrl?: string | null;
1491
+ /**
1492
+ * An agent in the call (AG13): named by its `label` and shown with the
1493
+ * Agent badge and what it's doing. `useCallAgents().agentFor(userId)`,
1494
+ * or pass the call's `agents` to the panel.
1495
+ */
1496
+ agent?: CallAgent | null;
1497
+ /** Speaking now (the roster's flag) — an agent shows "Speaking". */
1498
+ speaking?: boolean;
1499
+ }
1500
+ type NameFor = (userId: string) => string | null | undefined;
1501
+ interface StagePanelProps {
1502
+ stage: UseStage;
1503
+ /** Everyone in the call (from the call roster). */
1504
+ participants: readonly MeetingParticipant[];
1505
+ selfUserId?: string | null;
1506
+ nameForUserId?: NameFor;
1507
+ /** The call's agents (`useCallAgents().agents`), listed with the Agent badge. */
1508
+ agents?: readonly CallAgent[];
1509
+ style?: StyleProp<ViewStyle>;
1510
+ }
1511
+ /**
1512
+ * Speakers and audience, your raise-hand button, and — for moderators —
1513
+ * raised hands with Bring up / Lower, and Move to audience on speakers.
1514
+ */
1515
+ declare function StagePanel({ stage, participants, selfUserId, nameForUserId, agents, style, }: StagePanelProps): react_jsx_runtime.JSX.Element;
1516
+ interface QuestionsPanelProps {
1517
+ questions: UseQuestions;
1518
+ /** Show Answered / Dismiss on open questions. */
1519
+ canModerate?: boolean;
1520
+ /** Offer "Ask anonymously". Defaults to true. */
1521
+ allowAnonymous?: boolean;
1522
+ nameForUserId?: NameFor;
1523
+ style?: StyleProp<ViewStyle>;
1524
+ }
1525
+ /** Ask a question, upvote others', and (moderators) mark them answered. */
1526
+ declare function QuestionsPanel({ questions, canModerate, allowAnonymous, nameForUserId, style, }: QuestionsPanelProps): react_jsx_runtime.JSX.Element;
1527
+ interface BreakoutBannerProps {
1528
+ /** `useBreakouts(…)`, or `useNativeBreakouts(…)` on @poolse/native (which moves the call itself). */
1529
+ breakouts: UseBreakouts | UseNativeBreakouts;
1530
+ /** You are in your breakout room now (not the main call). Default: `useNativeBreakouts`' own. */
1531
+ inBreakout?: boolean;
1532
+ /** Connect to the room's session (switch the call's media to it). */
1533
+ onJoined?: (session: RoomSession) => void;
1534
+ /** Connect back to the main call. */
1535
+ onReturned?: (session: RoomSession) => void;
1536
+ style?: StyleProp<ViewStyle>;
1537
+ }
1538
+ /**
1539
+ * "Breakout · Room 2 · 12:30 left · Join room", then "Return to main";
1540
+ * while closing, "Returning to the main call in 0:45". Nothing without a
1541
+ * session or a room for you.
1542
+ */
1543
+ declare function BreakoutBanner({ breakouts, inBreakout: inBreakoutProp, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
1544
+ interface UseNativeBreakoutsOptions extends Omit<UseBreakoutsOptions, 'auto'> {
1545
+ /**
1546
+ * @poolse/native's `moveToRoom`: switches the live call's media to the
1547
+ * session's room and keeps the system call (CallKit / Android's call
1548
+ * service). Injected so this package doesn't depend on the native module.
1549
+ */
1550
+ moveToRoom: (session: RoomSession) => Promise<boolean>;
1551
+ /** Follow the split by yourself (default true): join your room as it opens, come back as it closes. */
1552
+ auto?: boolean;
1553
+ }
1554
+ interface UseNativeBreakouts extends UseBreakouts {
1555
+ /** The call's media is in a breakout room now (not the main room). */
1556
+ inBreakout: boolean;
1557
+ /** Join a room and move the call into it. False when the server or the core refused. */
1558
+ joinRoom: (roomId: string) => Promise<boolean>;
1559
+ /** Back to the main room. */
1560
+ returnToMainRoom: () => Promise<boolean>;
1561
+ }
1562
+ /**
1563
+ * Breakout rooms on phones (CL5): `useBreakouts` with the native call
1564
+ * core doing the moving. With `auto` (the default) it joins your room
1565
+ * when the split gives you one and returns you when it closes; the
1566
+ * phone's call never ends, only its media changes rooms.
1567
+ *
1568
+ * import { moveToRoom } from '@poolse/native';
1569
+ * const breakouts = useNativeBreakouts(conversationId, callId, { moveToRoom });
1570
+ * <BreakoutBanner breakouts={breakouts} />
1571
+ */
1572
+ declare function useNativeBreakouts(conversationId: string | null, callId: string | null, opts: UseNativeBreakoutsOptions): UseNativeBreakouts;
1573
+ interface LobbyWaitingProps {
1574
+ /** The name the guest gave. */
1575
+ name: string;
1576
+ /** Where the guest stands (`waitInLobby`'s status). */
1577
+ status: GuestLobbyStatus['status'];
1578
+ /** The meeting's title, when known. */
1579
+ title?: string | null;
1580
+ onLeave: () => void;
1581
+ style?: StyleProp<ViewStyle>;
1582
+ }
1583
+ /** A guest's waiting screen: "Waiting for the host to let you in", then denied or ended. */
1584
+ declare function LobbyWaiting({ name, status, title, onLeave, style }: LobbyWaitingProps): react_jsx_runtime.JSX.Element;
1585
+ interface LobbyAdmitListProps {
1586
+ lobby: UseLobby;
1587
+ style?: StyleProp<ViewStyle>;
1588
+ }
1589
+ /** For members: who is waiting, with Admit / Deny and Admit all. Nothing when nobody waits. */
1590
+ declare function LobbyAdmitList({ lobby, style }: LobbyAdmitListProps): react_jsx_runtime.JSX.Element | null;
1591
+ interface MarkMomentButtonProps {
1592
+ moments: UseMoments;
1593
+ /** Icon only (a call control); the label is still read out. */
1594
+ compact?: boolean;
1595
+ style?: StyleProp<ViewStyle>;
1596
+ }
1597
+ /** "Mark moment": highlights this point in the recording and the summary; says "Marked" for 2 s. */
1598
+ declare function MarkMomentButton({ moments, compact, style }: MarkMomentButtonProps): react_jsx_runtime.JSX.Element;
1599
+ interface AgendaPanelProps {
1600
+ agenda: UseAgenda;
1601
+ /** Show Start / Done / Reopen. */
1602
+ canEdit?: boolean;
1603
+ nameForUserId?: NameFor;
1604
+ style?: StyleProp<ViewStyle>;
1605
+ }
1606
+ /** The meeting's agenda: owner and minutes per item, the current one highlighted, an over-time nudge. */
1607
+ declare function AgendaPanel({ agenda, canEdit, nameForUserId, style }: AgendaPanelProps): react_jsx_runtime.JSX.Element | null;
1608
+ interface RoomPresenceProps {
1609
+ /**
1610
+ * Who's in (`useRoomPresence().presence[id]`), or a live call
1611
+ * (`useLiveCall(id).call`); nothing renders when empty.
1612
+ */
1613
+ call: RoomPresenceEntry | LiveCall | null | undefined;
1614
+ /** Most avatars to show; the rest become "+N". Defaults to 3. */
1615
+ max?: number;
1616
+ nameForUserId?: NameFor;
1617
+ style?: StyleProp<ViewStyle>;
1618
+ }
1619
+ /** Who is in a room, for a sidebar row: overlapping avatars and "+N". */
1620
+ declare function RoomPresence({ call, max, nameForUserId, style }: RoomPresenceProps): react_jsx_runtime.JSX.Element | null;
1621
+ interface MeetingCardProps {
1622
+ card: MeetingCard$1;
1623
+ /** Your user id, to find your answer in the lists. */
1624
+ meId?: string | null;
1625
+ /**
1626
+ * Record your answer yourself. Default: `PUT /meetings/:id/rsvp`
1627
+ * through the provider's client; `false` hides the buttons. The card
1628
+ * updates when the server restates the message.
1629
+ */
1630
+ onRsvp?: ((response: RsvpResponse) => void | Promise<void>) | false;
1631
+ /** Join the meeting's room. */
1632
+ onJoin?: (card: MeetingCard$1) => void;
1633
+ nameForUserId?: NameFor;
1634
+ style?: StyleProp<ViewStyle>;
1635
+ }
1636
+ /** An invite in chat: title, time, who's coming, Accept / Maybe / Decline and Join. */
1637
+ declare function MeetingCard({ card, meId, onRsvp, onJoin, nameForUserId, style, }: MeetingCardProps): react_jsx_runtime.JSX.Element;
1638
+ interface MeetingCardMessageRowProps extends Omit<MeetingCardProps, 'card'> {
1639
+ msg: Message;
1640
+ }
1641
+ /** A meeting-card message in a list; nothing for any other message. */
1642
+ declare function MeetingCardMessageRow({ msg, ...rest }: MeetingCardMessageRowProps): react_jsx_runtime.JSX.Element | null;
1643
+
1644
+ interface CaptionsOverlayProps {
1645
+ /** `useLiveTranscript(callId).segments`. */
1646
+ segments: readonly LiveTranscriptSegment[];
1647
+ /** How many lines to show. Defaults to 2. */
1648
+ lines?: number;
1649
+ style?: StyleProp<ViewStyle>;
1650
+ }
1651
+ /** The last lines of the live transcript, with speaker names; words still being spoken are dimmed. */
1652
+ declare function CaptionsOverlay({ segments, lines, style }: CaptionsOverlayProps): react_jsx_runtime.JSX.Element | null;
1653
+ interface ReactionsOverlayProps {
1654
+ /** `useCallReactions(room).reactions`. */
1655
+ reactions: readonly CallReaction[];
1656
+ style?: StyleProp<ViewStyle>;
1657
+ }
1658
+ /** Reactions rising over the call (still, with Reduce Motion). Never takes touches. */
1659
+ declare function ReactionsOverlay({ reactions, style }: ReactionsOverlayProps): react_jsx_runtime.JSX.Element;
1660
+ interface ReactionPickerBarProps {
1661
+ onReact: (emoji: string) => void;
1662
+ emojis?: readonly string[];
1663
+ style?: StyleProp<ViewStyle>;
1664
+ }
1665
+ /** A row of reaction buttons (`DEFAULT_CALL_REACTIONS`). */
1666
+ declare function ReactionPickerBar({ onReact, emojis, style, }: ReactionPickerBarProps): react_jsx_runtime.JSX.Element;
1667
+ interface ConnectionIndicatorProps {
1668
+ /** A web `CallConnectionQuality` or the native core's `'good' | 'poor' | 'lost' | 'unknown'`. */
1669
+ quality: CallConnectionQuality | 'good' | 'poor' | 'lost' | 'unknown' | null | undefined;
1670
+ /** Bar height in px. Defaults to 12. */
1671
+ size?: number;
1672
+ style?: StyleProp<ViewStyle>;
1673
+ }
1674
+ /** Three signal bars; a weak link turns amber, a lost one red. Labelled for screen readers. */
1675
+ declare function ConnectionIndicator({ quality, size, style }: ConnectionIndicatorProps): react_jsx_runtime.JSX.Element | null;
1676
+ interface NetworkBannerProps {
1677
+ /** `useCallQuality(room)?.issues`, or `diagnoseCallNetwork(…)` from a native snapshot. */
1678
+ issues: readonly CallNetworkIssue[];
1679
+ onDismiss?: () => void;
1680
+ style?: StyleProp<ViewStyle>;
1681
+ }
1682
+ /** The worst network problem in plain words ("Your network is dropping packets…"). */
1683
+ declare function NetworkBanner({ issues, onDismiss, style }: NetworkBannerProps): react_jsx_runtime.JSX.Element | null;
1684
+ interface WhiteboardViewProps {
1685
+ /** `useWhiteboard(callId, Y).items`. */
1686
+ items: readonly WhiteboardItem[];
1687
+ /** With a model and not `readOnly`, a finger draws pen strokes. */
1688
+ model?: WhiteboardModel | null;
1689
+ readOnly?: boolean;
1690
+ /** Pen colour and width (board units). */
1691
+ color?: string;
1692
+ width?: number;
1693
+ style?: StyleProp<ViewStyle>;
1694
+ }
1695
+ /**
1696
+ * The call's whiteboard, fit to the view (1600 × 900 board units). View
1697
+ * only by default; pass the model to draw simple pen strokes.
1698
+ */
1699
+ declare function WhiteboardView({ items, model, readOnly, color, width, style, }: WhiteboardViewProps): react_jsx_runtime.JSX.Element;
1700
+ interface AnnotationOverlayProps {
1701
+ /** `useScreenAnnotations(room, sharerUserId).state` (room: `callData` on @poolse/native). */
1702
+ state: AnnotationState | null;
1703
+ /**
1704
+ * `useScreenAnnotations(…).annotations`: with it and `drawing`, a
1705
+ * finger draws lines everyone in the call sees.
1706
+ */
1707
+ annotations?: ScreenAnnotations | null;
1708
+ /** Draw instead of passing touches through (a pen toggle). Default false. */
1709
+ drawing?: boolean;
1710
+ /** Pen colour. Default red. */
1711
+ color?: string;
1712
+ style?: StyleProp<ViewStyle>;
1713
+ }
1714
+ /**
1715
+ * Lines and pointers drawn on a shared screen, laid over the screen's
1716
+ * video (same box as the picture: size it to the `fit="contain"` area).
1717
+ * View only unless given `annotations` and `drawing`.
1718
+ */
1719
+ declare function AnnotationOverlay({ state, annotations, drawing, color, style, }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
1720
+
1721
+ /** 45 → "0:45", 3725 → "1:02:05". */
1722
+ declare function formatCountdown(seconds: number | null | undefined): string;
1723
+ /** Show at most `max` avatars; the rest become "+N". */
1724
+ declare function avatarOverflow<T>(list: readonly T[], max: number): {
1725
+ shown: T[];
1726
+ more: number;
1727
+ };
1728
+ /** One caption line: a speaker's run of text, interim when still talking. */
1729
+ interface CaptionLine {
1730
+ key: string;
1731
+ speaker: string;
1732
+ text: string;
1733
+ interim: boolean;
1734
+ }
1735
+ /**
1736
+ * The last `lines` caption lines: consecutive segments of one speaker are
1737
+ * joined, an interim segment after them shown as still being spoken.
1738
+ * Each line keeps only its last `maxChars` characters.
1739
+ */
1740
+ declare function captionLines(segments: readonly LiveTranscriptSegment[], lines?: number, maxChars?: number): CaptionLine[];
1741
+ /** "Budget review is 3 min over" — null when not over by a whole minute. */
1742
+ declare function overrunText(title: string, overrunMs: number): string | null;
1743
+ /** "Tue 21 Nov · 10:00–10:30" in the device's locale. */
1744
+ declare function meetingTimeText(card: Pick<MeetingCard$1, 'startsAt' | 'endsAt'>): string | null;
1745
+ /** "4 accepted · 1 maybe · 2 declined" (empty parts left out), or null. */
1746
+ declare function rsvpSummary(card: Pick<MeetingCard$1, 'rsvps'> & Partial<Pick<MeetingCard$1, 'counts'>>): string | null;
1747
+
1748
+ interface FormattingToolbarProps {
1749
+ onFormat: (kind: FormatKind) => void;
1750
+ disabled?: boolean;
1751
+ /** Which buttons, in order. Defaults to all of `FORMAT_ACTIONS`. */
1752
+ actions?: readonly FormatKind[];
1753
+ }
1754
+ /** A horizontally scrolling row of formatting buttons. */
1755
+ declare function FormattingToolbar({ onFormat, disabled, actions, }: FormattingToolbarProps): react_jsx_runtime.JSX.Element;
1756
+ /** `/command` suggestions for the text and cursor, or `null` when none match. */
1757
+ declare function CommandSuggestions({ commands, text, cursor, onPick, }: {
1758
+ commands: readonly SlashCommand[];
1759
+ text: string;
1760
+ cursor: number;
1761
+ onPick: (command: SlashCommand) => void;
1762
+ }): react_jsx_runtime.JSX.Element | null;
1763
+ interface DlpWarningSheetProps {
1764
+ outcome: DlpOutcome;
1765
+ /** "Send anyway" (only offered for a warning, never for a block). */
1766
+ onSendAnyway?: () => void;
1767
+ /** "Edit message": back to the composer with the text kept. */
1768
+ onEdit: () => void;
1769
+ }
1770
+ /** The data-loss-prevention warning as a centred modal. */
1771
+ declare function DlpWarningSheet({ outcome, onSendAnyway, onEdit }: DlpWarningSheetProps): react_jsx_runtime.JSX.Element;
1772
+
1773
+ /**
1774
+ * Either a real message or a day-separator row. ConversationView
1775
+ * builds the list of items (interleaving separators where the day
1776
+ * changes) and hands it to MessageList; MessageList just renders.
1777
+ */
1778
+ type MessageListItem = {
1779
+ kind: 'msg';
1780
+ msg: Message;
1781
+ } | {
1782
+ kind: 'separator';
1783
+ id: string;
1784
+ node: ReactElement;
2177
1785
  };
2178
- type IconName = keyof typeof ICONS;
1786
+ interface MessageListProps {
1787
+ messages: Message[];
1788
+ /**
1789
+ * Optional pre-built item list (with day separators interleaved).
1790
+ * When omitted, a list with `{ kind: 'msg' }` items is derived
1791
+ * from `messages` and rendered without separators.
1792
+ */
1793
+ items?: MessageListItem[];
1794
+ loading?: boolean;
1795
+ hasMore?: boolean;
1796
+ onLoadMore?: () => void;
1797
+ renderItem: (msg: Message, index: number) => ReactElement;
1798
+ /** Slot rendered above the latest message (typically the typing indicator). */
1799
+ ListHeader?: ReactElement | null;
1800
+ /** Slot rendered below the oldest message (rare — typically nothing). */
1801
+ ListFooter?: ReactElement | null;
1802
+ /** Custom empty state when there are no messages. */
1803
+ emptyState?: ReactElement | string;
1804
+ /**
1805
+ * The current user's id. When provided, MessageList will show a
1806
+ * "↓ N new messages" jump button at the bottom of the chat
1807
+ * whenever new messages from OTHER users arrive while the user is
1808
+ * scrolled away from the bottom. Tapping scrolls to the latest.
1809
+ */
1810
+ meId?: string | null;
1811
+ /**
1812
+ * Scroll this message to the middle of the list (it must already be
1813
+ * in `messages`). Changing `scrollRequest` — e.g. a counter — scrolls
1814
+ * again to the same message.
1815
+ */
1816
+ scrollToMessageId?: string | null;
1817
+ scrollRequest?: number;
1818
+ /**
1819
+ * The rows on screen changed: message ids and separator ids. Lets a
1820
+ * parent tell whether a row (e.g. the "New messages" line) was seen.
1821
+ */
1822
+ onVisibleItemsChange?: (keys: string[]) => void;
1823
+ }
1824
+ /**
1825
+ * Inverted FlatList wrapper for chat history. Newest message at the
1826
+ * bottom (visually), oldest at the top. Calls `onLoadMore` when the
1827
+ * user scrolls near the top edge and `hasMore` is true.
1828
+ *
1829
+ * Pagination is owned by `useMessages` (hand it `messages` +
1830
+ * `hasMore` + `loadMore`); this component just renders + scrolls.
1831
+ */
1832
+ declare function MessageList({ messages, items, loading, hasMore, onLoadMore, renderItem, ListHeader, ListFooter, emptyState, meId, scrollToMessageId, scrollRequest, onVisibleItemsChange, }: MessageListProps): react_jsx_runtime.JSX.Element;
1833
+
1834
+ interface DaySeparatorProps {
1835
+ label: string;
1836
+ /**
1837
+ * `'pill'` (default) — a centred chip, for bubbles. `'rule'` — a
1838
+ * hairline across the row with the chip on it, for the `list` and
1839
+ * `compact` layouts.
1840
+ */
1841
+ variant?: 'pill' | 'rule';
1842
+ }
1843
+ /**
1844
+ * Centered date pill rendered between messages whose `inserted_at`
1845
+ * falls on a different calendar day from the previous message. Pair
1846
+ * with `formatDayLabel` from `@poolse/react` to compute the label
1847
+ * ("Today" / "Yesterday" / weekday / "26 May 2024").
1848
+ */
1849
+ declare function DaySeparator({ label, variant }: DaySeparatorProps): react_jsx_runtime.JSX.Element;
1850
+
1851
+ interface TypingIndicatorProps {
1852
+ /** Set of `external_id`s currently typing — what `useTyping` returns. */
1853
+ typing: Set<string>;
1854
+ /**
1855
+ * Resolves an `external_id` to a display label. Defaults to the
1856
+ * SDK's `userResolver` (and falls back to the external_id itself
1857
+ * when the resolver isn't configured).
1858
+ */
1859
+ labelFor?: (externalId: string) => string;
1860
+ }
1861
+ /**
1862
+ * Three animated dots + an inline "X is typing" label. Renders a
1863
+ * zero-height row when nobody is typing so the list doesn't jump.
1864
+ */
1865
+ declare function TypingIndicator({ typing, labelFor }: TypingIndicatorProps): react_jsx_runtime.JSX.Element;
1866
+
1867
+ interface ThreadViewProps {
1868
+ visible: boolean;
1869
+ onClose: () => void;
1870
+ conversationId: Uuid;
1871
+ rootMessage: Message;
1872
+ labelFor?: (externalId: string) => string;
1873
+ avatarFor?: (externalId: string) => string | null;
1874
+ /** Row layout for the root and replies — see `ChatLayout`. Defaults to `'bubbles'`. */
1875
+ layout?: ChatLayout;
1876
+ timeFormat?: TimeFormat;
1877
+ /** Row spacing for the root and replies, as on `ConversationView`. */
1878
+ density?: ChatDensity;
1879
+ /** Presence badges on reply avatars. Defaults to `false`. */
1880
+ showPresence?: boolean;
1881
+ /** Link previews under replies. Defaults to `true`. */
1882
+ linkPreviews?: boolean;
1883
+ /** A Follow / Following button in the header (MS19). Default `true`. */
1884
+ follow?: boolean;
1885
+ /** An "Also send to channel" switch above the composer (MS19). Default `true`; off in DMs. */
1886
+ alsoSendToChannel?: boolean;
1887
+ /** Passed through to the composer, as `ConversationView`'s `composerProps`. */
1888
+ composerProps?: ComposerPassThroughProps;
1889
+ /** Rendered above the composer. */
1890
+ composerAccessory?: ReactNode;
1891
+ /** The composer's handle, as `ConversationView`'s `composerHandle`. */
1892
+ composerHandle?: Ref<MessageComposerHandle>;
1893
+ /** Runs before every reply: return it (changed or not), or `false` to cancel. */
1894
+ beforeSend?: BeforeSend;
1895
+ /** The app's own entries in a reply's long-press menu. */
1896
+ extraActions?: (msg: Message) => readonly MessageExtraAction[];
1897
+ /** Asked before a reply is deleted. Defaults to a native "Delete message?" alert. */
1898
+ confirmDelete?: ConfirmDelete;
1899
+ }
1900
+ /**
1901
+ * Bottom-sheet modal for thread replies. Pull the drag handle / header
1902
+ * down to dismiss; tap the backdrop or close button too. The composer
1903
+ * inside the sheet supports attachments (paperclip → picker, shared
1904
+ * upload queue) and the reply rows support reactions, swipe-to-reply,
1905
+ * long-press actions, edit, delete — same surface as ConversationView.
1906
+ *
1907
+ * Keyboard handling: the modal is translucent (edge-to-edge) on both
1908
+ * platforms, so nothing resizes it for the keyboard — Android's
1909
+ * `adjustResize` doesn't reach an edge-to-edge window. The composer
1910
+ * needs its own `padding` KeyboardAvoidingView with
1911
+ * `keyboardVerticalOffset` = the distance from the screen top to the
1912
+ * sheet top (the gutter), since KAV measures its frame relative to
1913
+ * its parent (the sheet), not the screen.
1914
+ */
1915
+ declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, layout, timeFormat, density, showPresence, linkPreviews, follow, alsoSendToChannel, ...hooks }: ThreadViewProps): react_jsx_runtime.JSX.Element;
1916
+
1917
+ interface ThreadSummaryProps {
1918
+ /** The thread's root: `reply_count`, `last_reply_at`, `thread_participants`. */
1919
+ message: Pick<Message, 'reply_count' | 'last_reply_at' | 'thread_participants'>;
1920
+ onPress: () => void;
1921
+ labelFor?: (externalId: string) => string;
1922
+ avatarFor?: (externalId: string) => string | null;
1923
+ /** Align to the right (under your own bubble). */
1924
+ alignEnd?: boolean;
1925
+ }
1926
+ /**
1927
+ * "3 replies · last reply 5m ago" with the last few repliers' avatars
1928
+ * stacked in front. Tap opens the thread. Draws nothing without replies.
1929
+ */
1930
+ declare function ThreadSummary({ message, onPress, labelFor, avatarFor, alignEnd, }: ThreadSummaryProps): react_jsx_runtime.JSX.Element | null;
1931
+
1932
+ interface NewMessagesDividerProps {
1933
+ /** Defaults to "New messages". */
1934
+ label?: string;
1935
+ }
1936
+ /**
1937
+ * The line `<ConversationView>` draws above the first message you
1938
+ * hadn't read when the conversation opened. Full width, so it reads the
1939
+ * same in every layout.
1940
+ */
1941
+ declare function NewMessagesDivider({ label }: NewMessagesDividerProps): react_jsx_runtime.JSX.Element;
1942
+
1943
+ interface EditHistorySheetProps {
1944
+ visible: boolean;
1945
+ onClose: () => void;
1946
+ messageId: Uuid;
1947
+ /** The text the message has now, shown on top as "Current". */
1948
+ currentBody?: string | null;
1949
+ /**
1950
+ * The server refused the history (403 — the workspace keeps it to
1951
+ * admins or the sender). The sheet closes itself.
1952
+ */
1953
+ onForbidden?: () => void;
1954
+ }
1955
+ /**
1956
+ * Bottom sheet listing a message's earlier versions, newest first
1957
+ * (`chat.messages.edits(id)`). Opened from the "edited" label.
1958
+ */
1959
+ declare function EditHistorySheet({ visible, onClose, messageId, currentBody, onForbidden, }: EditHistorySheetProps): react_jsx_runtime.JSX.Element;
1960
+
1961
+ interface UserNameProps {
1962
+ /** The user's external_id. Pass null to render the fallback. */
1963
+ externalId: string | null | undefined;
1964
+ /** Optional fallback when the resolver returns nothing. Defaults to the externalId itself. */
1965
+ fallback?: string;
1966
+ /** Caller-supplied label override; if it returns a string, it wins. */
1967
+ labelFor?: (externalId: string) => string;
1968
+ /** The Agent badge after an agent's name (AG1). Defaults to `true`. */
1969
+ agentBadge?: boolean;
1970
+ }
1971
+ /**
1972
+ * Display name for a user, looked up via the SDK's `userResolver`
1973
+ * with caller-overridable + fallback fallbacks. Renders a `<Text>`.
1974
+ */
1975
+ declare function UserName({ externalId, fallback, labelFor, agentBadge }: UserNameProps): react_jsx_runtime.JSX.Element;
1976
+ /**
1977
+ * Resolves a user's display name via the 3-tier chain:
1978
+ * 1. `labelFor(externalId)` — caller-supplied override
1979
+ * 2. SDK `userResolver` (memoized via `useUser`)
1980
+ * 3. The externalId itself (so something always renders)
1981
+ */
1982
+ declare function useDisplayName(externalId: string | null | undefined, labelFor?: (externalId: string) => string): string;
1983
+
1984
+ /** One section of `<ConversationList sections>`. */
1985
+ interface ConversationSection {
1986
+ title: string;
1987
+ /** Conversations this section holds. Each conversation goes to the first section that takes it. */
1988
+ filter: (conversation: Conversation) => boolean;
1989
+ }
1990
+ /** `<ConversationList groupBy>`: `'type'` → "Channels" (groups), then "Direct messages". */
1991
+ type ConversationGroupBy = 'type';
1992
+
1993
+ interface ConversationListProps {
1994
+ selectedId?: string | null;
1995
+ onSelect?: (conv: Conversation) => void;
1996
+ /** Optional override for each row's rendering. */
1997
+ renderItem?: (conv: Conversation, selected: boolean) => ReactNode;
1998
+ /**
1999
+ * What an empty list shows. Defaults to "No conversations yet" with a
2000
+ * hint at the next step.
2001
+ */
2002
+ emptyState?: ReactNode | string;
2003
+ /** Show only conversations matching this text (a search field in `header`). */
2004
+ query?: string;
2005
+ /** What shows when `query` matches nothing. Receives the query. */
2006
+ noResultsState?: ReactNode | ((query: string) => ReactNode);
2007
+ /** Controlled-mode: skip `useConversations()` and render from these. */
2008
+ conversations?: Conversation[];
2009
+ loading?: boolean;
2010
+ error?: Error | null;
2011
+ /**
2012
+ * Controlled mode paging: more conversations exist. Uncontrolled, the
2013
+ * list pages through `useConversations()` itself.
2014
+ */
2015
+ hasMore?: boolean;
2016
+ /** Controlled mode paging: a page is loading (a spinner shows at the end). */
2017
+ loadingMore?: boolean;
2018
+ /** Controlled mode paging: called near the end of the list while `hasMore`. */
2019
+ onLoadMore?: () => void;
2020
+ /** Per-conversation unread counts rendered as a Pulse Coral pill. */
2021
+ unreadCounts?: Record<Uuid, number>;
2022
+ /**
2023
+ * Explicit overrides for direct-chat names + avatars, keyed by the
2024
+ * OTHER member's external_id. When omitted, the row falls back to
2025
+ * `PoolseConfig.userResolver` and finally to the external_id.
2026
+ */
2027
+ labelFor?: (externalId: string) => string;
2028
+ avatarFor?: (externalId: string) => string | null;
2029
+ /** Scrolls with the list, above the first row (a search field, a title). */
2030
+ header?: ReactElement | null;
2031
+ /**
2032
+ * Split the list into titled sections; each conversation goes to the
2033
+ * first section whose `filter` takes it, empty sections are hidden.
2034
+ * Overrides `groupBy`.
2035
+ */
2036
+ sections?: ConversationSection[];
2037
+ /** `'type'` → "Channels" (groups), then "Direct messages". */
2038
+ groupBy?: ConversationGroupBy;
2039
+ /** `'comfortable'` (default) or `'compact'` rows (smaller avatar, one line). */
2040
+ density?: ChatDensity;
2041
+ /** Presence badges on direct chats' avatars. Defaults to `true`. */
2042
+ showPresence?: boolean;
2043
+ }
2044
+ declare function ConversationList({ selectedId, onSelect, renderItem, emptyState, query, noResultsState, conversations: controlled, loading: controlledLoading, error: controlledError, hasMore: controlledHasMore, loadingMore: controlledLoadingMore, onLoadMore, unreadCounts, labelFor, avatarFor, header, sections, groupBy, density, showPresence, }: ConversationListProps): react_jsx_runtime.JSX.Element;
2179
2045
 
2180
- interface PoolseIconProps {
2181
- /** Icon name — see {@link IconName} for the full list. */
2182
- name: IconName;
2183
- /** Width + height in pixels. Defaults to `20` (matches a body-line). */
2046
+ interface MemberListProps {
2047
+ conversationId: Uuid;
2048
+ labelFor?: (externalId: string) => string;
2049
+ avatarFor?: (externalId: string) => string | null;
2050
+ onlineExternalIds?: Set<string>;
2051
+ canRemove?: (m: Membership) => boolean;
2052
+ renderItem?: (m: Membership) => ReactNode;
2053
+ emptyState?: ReactNode | string;
2054
+ /**
2055
+ * Presence badges on the avatars (online / away / in a call / do not
2056
+ * disturb, via `useUserPresence`). Defaults to `true`. With
2057
+ * `onlineExternalIds` given, those drive a plain online dot instead.
2058
+ */
2059
+ showPresence?: boolean;
2060
+ }
2061
+ declare function MemberList({ conversationId, labelFor, avatarFor, onlineExternalIds, canRemove, renderItem, emptyState, showPresence, }: MemberListProps): react_jsx_runtime.JSX.Element;
2062
+
2063
+ interface PresenceBadgeProps {
2064
+ /** `online`, `away`, `in_call` or `offline` (draws nothing), as `useUserPresence` gives it. */
2065
+ state: PresenceState | null | undefined;
2066
+ /** Do not disturb: a moon instead of the online / away dot. */
2067
+ doNotDisturb?: boolean;
2068
+ /** Diameter in px. Defaults to 12. */
2184
2069
  size?: number;
2185
- /** Stroke color. Defaults to the theme's `ink` color. */
2186
- color?: string;
2187
- /** Accessibility label. Defaults to the icon name. */
2188
- label?: string | null;
2070
+ /** The ring around the badge — the colour it sits on. Defaults to `colors.surface`. */
2071
+ ringColor?: string;
2072
+ style?: StyleProp<ViewStyle>;
2189
2073
  }
2190
- declare function PoolseIcon({ name, size, color, label }: PoolseIconProps): react_jsx_runtime.JSX.Element | null;
2074
+ /**
2075
+ * A presence dot: online = `success`, away = `warning`, in a call =
2076
+ * `accent` with a phone, do not disturb = a moon. Offline (or unknown)
2077
+ * draws nothing.
2078
+ */
2079
+ declare function PresenceBadge({ state, doNotDisturb, size, ringColor, style, }: PresenceBadgeProps): react_jsx_runtime.JSX.Element | null;
2080
+
2081
+ interface AttachmentPreviewProps {
2082
+ attachment: Attachment;
2083
+ /** Optional tap handler. For images defaults to opening the source URL. */
2084
+ onPress?: () => void;
2085
+ /** Render at this max width. Defaults to 280. */
2086
+ maxWidth?: number;
2087
+ /**
2088
+ * `'onBrand'` restyles the file card for a brand-colored self
2089
+ * bubble — translucent white instead of surface grey, so the card
2090
+ * reads as part of the bubble rather than a patch cut out of it.
2091
+ */
2092
+ tone?: 'default' | 'onBrand';
2093
+ }
2094
+ declare function AttachmentPreview({ attachment, onPress, maxWidth, tone, }: AttachmentPreviewProps): react_jsx_runtime.JSX.Element;
2095
+
2096
+ interface LinkPreviewCardProps {
2097
+ preview: LinkPreview;
2098
+ /** Shows a × on the card; the long-press sheet's "Remove preview" is the usual way. */
2099
+ onRemove?: () => void;
2100
+ /** Card width cap in px. Defaults to 320. */
2101
+ maxWidth?: number;
2102
+ /** `'onBrand'` for a card inside your own (accent-filled) bubble. */
2103
+ tone?: 'default' | 'onBrand';
2104
+ /** Long-press on the card — rows pass their actions sheet. */
2105
+ onLongPress?: () => void;
2106
+ }
2107
+ /**
2108
+ * A link's preview under the message text. `website`: the page's image,
2109
+ * site name with favicon, title and description. `image`: the picture
2110
+ * itself, inline. Tapping opens the link.
2111
+ */
2112
+ declare function LinkPreviewCard({ preview, onRemove, maxWidth, tone, onLongPress, }: LinkPreviewCardProps): react_jsx_runtime.JSX.Element | null;
2113
+
2114
+ interface EmojiPickerProps {
2115
+ visible: boolean;
2116
+ onClose: () => void;
2117
+ /** An emoji was tapped. The picker closes unless `keepOpen`. */
2118
+ onPick: (emoji: string) => void;
2119
+ /** Stay open after a pick (the composer's picker, to type several). */
2120
+ keepOpen?: boolean;
2121
+ /** Heading. Defaults to "Pick an emoji". */
2122
+ title?: string;
2123
+ }
2124
+ /**
2125
+ * Bottom-sheet emoji picker with search, recently used and categories.
2126
+ * Built in and dependency-free: a compact set of common emoji, parsed
2127
+ * the first time a picker opens.
2128
+ */
2129
+ declare function EmojiPicker({ visible, onClose, onPick, keepOpen, title, }: EmojiPickerProps): react_jsx_runtime.JSX.Element;
2130
+
2131
+ /**
2132
+ * Horizontal scrolling preview row of pending / in-flight / ready
2133
+ * uploads. Image attachments render as 64×64 thumbnails sourced from
2134
+ * the original local file URI; file attachments render as a row card
2135
+ * with icon + name + size. A small × overlay on each tile lets the
2136
+ * user drop the upload before send.
2137
+ *
2138
+ * Reads queue state from the shared `<UploadProvider>` (mounted by
2139
+ * `<ConversationView>`), so the composer's "ready attachment ids"
2140
+ * pickup and the strip's display always agree.
2141
+ */
2142
+ declare function UploadQueueStrip(): react_jsx_runtime.JSX.Element | null;
2143
+
2144
+ interface ReactionStripProps {
2145
+ messageId: Uuid;
2146
+ conversationId: Uuid;
2147
+ meId: string | null;
2148
+ /** Seed map from a known message (e.g. `useMessages`). */
2149
+ initialReactions?: Record<string, Uuid[]>;
2150
+ /** A "+" chip after the reactions — open an emoji picker (see `<EmojiPicker>`). */
2151
+ onMorePress?: () => void;
2152
+ }
2153
+ declare function ReactionStrip({ messageId, conversationId, meId, initialReactions, onMorePress, }: ReactionStripProps): react_jsx_runtime.JSX.Element | null;
2154
+ interface ReactionPickerProps {
2155
+ visible: boolean;
2156
+ onClose: () => void;
2157
+ onPick: (emoji: string) => void;
2158
+ /** Override the default 6-emoji set. */
2159
+ emojis?: string[];
2160
+ }
2161
+ declare function ReactionPicker({ visible, onClose, onPick, emojis, }: ReactionPickerProps): react_jsx_runtime.JSX.Element;
2162
+
2163
+ interface MentionInputProps extends Omit<MessageComposerProps, 'onSend'> {
2164
+ conversationId: Uuid;
2165
+ /** Same callback as MessageComposer.onSend, plus the mentioned user_ids. */
2166
+ onSend: (body: string, opts?: ComposerSendOptions & {
2167
+ mentions?: Uuid[];
2168
+ }) => Promise<unknown> | void;
2169
+ /** Most suggestions shown at once. Defaults to 6. */
2170
+ maxSuggestions?: number;
2171
+ /**
2172
+ * User groups to offer after matching members (MS9): `@design`,
2173
+ * `@oncall`. Picking one inserts `@handle`; the Workspace expands it
2174
+ * when the message arrives, so nothing extra is sent.
2175
+ */
2176
+ groups?: readonly MentionGroup[];
2177
+ }
2178
+ /**
2179
+ * Composer with @-mentions: typing `@` (at the start or after a space)
2180
+ * shows matching conversation members above the input, filtered by
2181
+ * name or id as you type. Picking one inserts `@Name ` and the send
2182
+ * carries their user id in `mentions` — for as long as `@Name` is
2183
+ * still in the text.
2184
+ */
2185
+ declare const MentionInput: react.ForwardRefExoticComponent<MentionInputProps & react.RefAttributes<MessageComposerHandle>>;
2186
+
2187
+ interface AttachmentPickerProps {
2188
+ visible: boolean;
2189
+ onClose: () => void;
2190
+ /**
2191
+ * Optional adapter that produces upload inputs from a picked file.
2192
+ * Override to plug in custom storage / transcoding. Default reads
2193
+ * from `expo-image-picker` / `expo-document-picker`.
2194
+ */
2195
+ onPickInputs?: (kind: 'image' | 'document' | 'camera') => Promise<{
2196
+ body: {
2197
+ uri: string;
2198
+ name: string;
2199
+ type: string;
2200
+ } | Blob | unknown;
2201
+ contentType: string;
2202
+ byteSize: number;
2203
+ filename?: string;
2204
+ }[]>;
2205
+ /**
2206
+ * Show the Camera item alongside Photo and File. Defaults true.
2207
+ * Disable if your app explicitly doesn't want camera access (some
2208
+ * App Store reviewers require an explicit usage description even
2209
+ * for the picker entry). Add `NSCameraUsageDescription` to your
2210
+ * iOS Info.plist when leaving this on.
2211
+ */
2212
+ camera?: boolean;
2213
+ /** Largest file accepted, in bytes (checked after image compression). */
2214
+ maxFileSize?: number;
2215
+ /** Accepted types: MIME types, wildcards (`'image/*'`) or extensions (`'.pdf'`). */
2216
+ acceptedTypes?: string[];
2217
+ /**
2218
+ * A picked file was refused (too large, a type not accepted) or the
2219
+ * picker failed (e.g. camera permission denied). Receives a sentence
2220
+ * to show; `<ConversationView>` shows it above the composer.
2221
+ */
2222
+ onError?: (message: string) => void;
2223
+ /** Pick several photos at once from the library. Defaults to true. */
2224
+ multiple?: boolean;
2225
+ }
2226
+ /**
2227
+ * Picker sheet wrapping `expo-image-picker` and `expo-document-picker`.
2228
+ * Both must be installed (`npx expo install expo-image-picker
2229
+ * expo-document-picker`) when this component is mounted — they're
2230
+ * declared as optional peers because consumers who pass
2231
+ * `attachments={false}` to ConversationView never render this file.
2232
+ */
2233
+ declare function AttachmentPicker({ visible, onClose, onPickInputs, camera, maxFileSize, acceptedTypes, onError, multiple, }: AttachmentPickerProps): react_jsx_runtime.JSX.Element;
2234
+
2235
+ interface ImageMosaicProps {
2236
+ images: Attachment[];
2237
+ /**
2238
+ * Pixel ceiling on the mosaic's width. The mosaic itself fills its
2239
+ * parent (`width: '100%'`) and caps at this value, so it always
2240
+ * fits inside whatever the bubble's actual content area is at
2241
+ * render time — no more hardcoded 280px overflowing on small
2242
+ * screens or inside narrow bubbles.
2243
+ */
2244
+ maxWidth?: number;
2245
+ radius?: number;
2246
+ /**
2247
+ * Square off the bottom corners (a small 5px instead of `radius`).
2248
+ * Pass when a caption or file cards follow the mosaic, so the media
2249
+ * flows into the text block instead of leaving "ears" of bubble
2250
+ * color between the image and the caption.
2251
+ */
2252
+ squareBottom?: boolean;
2253
+ /**
2254
+ * Long-press on any tile. The tiles are Pressables (tap opens the
2255
+ * viewer), and a nested Pressable wins the gesture — so without
2256
+ * this, holding an image-only message never reached the row's
2257
+ * actions sheet. MessageRow threads its long-press down through
2258
+ * here.
2259
+ */
2260
+ onLongPress?: () => void;
2261
+ }
2262
+ /**
2263
+ * WhatsApp-style multi-image grid for inside the message bubble.
2264
+ * Uses flex-based widths (with `%` and `aspectRatio`) so the layout
2265
+ * scales to whatever the bubble's content area is — no fixed pixel
2266
+ * positioning that can overflow when the bubble is narrower than
2267
+ * the configured max.
2268
+ *
2269
+ * * n = 1 → single tile, 16:10 aspect.
2270
+ * * n = 2 → row of 2 squares.
2271
+ * * n = 3 → 16:9 hero on top + row of 2 squares below.
2272
+ * * n ≥ 4 → 2×2 grid with "+N more" overlay on the 4th tile.
2273
+ */
2274
+ declare function ImageMosaic({ images, maxWidth, radius, squareBottom, onLongPress, }: ImageMosaicProps): react_jsx_runtime.JSX.Element | null;
2191
2275
 
2192
2276
  type PoolseLogoVariant = 'lockup' | 'mark' | 'wordmark' | 'mono';
2193
2277
  interface PoolseLogoProps {
@@ -2201,7 +2285,7 @@ interface PoolseLogoProps {
2201
2285
  declare function PoolseLogo({ variant, size, color, label }: PoolseLogoProps): react_jsx_runtime.JSX.Element;
2202
2286
 
2203
2287
  interface AvatarProps {
2204
- /** URL to a profile image. Falls back to initials when omitted. */
2288
+ /** URL to a profile image. Falls back to initials when omitted or it fails to load. */
2205
2289
  src?: string | null;
2206
2290
  /** Used for initials. */
2207
2291
  name?: string | null;
@@ -2773,4 +2857,4 @@ declare function formatBytes(n: number): string;
2773
2857
  /** The note id in a Workspace note link, or `null`. */
2774
2858
  declare function noteIdFromLink(url: string): string | null;
2775
2859
 
2776
- export { AgendaPanel, type AgendaPanelProps, AgentBadge, AgentBadgeInline, type AgentBadgeProps, AnnotationOverlay, type AnnotationOverlayProps, ApprovalCard, type ApprovalCardProps, ApprovalList, type ApprovalListProps, AskMeetings, type AskMeetingsProps, AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRecorderAdapter, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type BackgroundClientsOptions, BlockRenderer, type BlockRendererProps, BreakoutBanner, type BreakoutBannerProps, CallAgentTag, type CallAgentTagProps, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, CallLogRow, type CallLogRowProps, type CaptionLine, CaptionsOverlay, type CaptionsOverlayProps, CatchUpCard, type CatchUpCardProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, ClipPlayer, type ClipPlayerProps, CommandSuggestions, type ComposerSendOptions, ConnectionIndicator, type ConnectionIndicatorProps, ConsentPrompt, type ConsentPromptProps, type ConversationDraft, type ConversationGroupBy, ConversationList, type ConversationListProps, type ConversationSection, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, DlpWarningSheet, type DlpWarningSheetProps, type DraftStorage, EditHistorySheet, type EditHistorySheetProps, EmojiGlyph, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, EscalationCard, type EscalationCardProps, EscalationList, type EscalationListProps, FilesList, type FilesListProps, FormattingToolbar, type FormattingToolbarProps, type ForumPost, ForumPostList, type ForumPostListProps, ForwardSheet, type ForwardSheetProps, type ForwardTarget, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, InviteAgentMenu, type InviteAgentMenuProps, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, LiveTranscriptPanel, type LiveTranscriptPanelProps, LobbyAdmitList, type LobbyAdmitListProps, LobbyWaiting, type LobbyWaitingProps, MarkMomentButton, type MarkMomentButtonProps, type MediaPlayback, MeetingCard, MeetingCardMessageRow, type MeetingCardMessageRowProps, type MeetingCardProps, type MeetingParticipant, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageApproval, type MessageApprovalProps, MessageBubble, type MessageBubbleProps, MessageCitations, type MessageCitationsProps, MessageComposer, type MessageComposerHandle, type MessageComposerProps, type MessageExtrasHandlers, MessageExtrasProvider, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, NetworkBanner, type NetworkBannerProps, NewMessagesDivider, type NewMessagesDividerProps, NoteCard, type NoteCardProps, PinsList, type PinsListProps, PollCard, type PollCardProps, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseMediaProps, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, PresenceBadge, type PresenceBadgeProps, primitives as Primitives, QuestionsPanel, type QuestionsPanelProps, ReactionPicker, ReactionPickerBar, type ReactionPickerBarProps, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, ReactionsOverlay, type ReactionsOverlayProps, RecordingBanner, type RecordingBannerProps, RecordingIndicator, type RecordingIndicatorProps, RecordingNoticeRow, type RecordingNoticeRowProps, RecordingPlayer, type RecordingPlayerHandle, type RecordingPlayerProps, type RenderMedia, type RenderMessageContext, RoomPresence, type RoomPresenceProps, SendStatus, type SendStatusProps, StagePanel, type StagePanelProps, SummaryCard, type SummaryCardProps, SummaryMessageRow, type SummaryMessageRowProps, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TranscriptViewer, type TranscriptViewerProps, TranslatedText, type TranslatedTextProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UseNativeBreakouts, type UseNativeBreakoutsOptions, UserName, type UserNameProps, VideoMessagePlayer, type VideoMessagePlayerProps, VoiceMessagePlayer, type VoiceMessagePlayerProps, VoiceRecorder, type VoiceRecorderProps, WhisperPanel, type WhisperPanelProps, WhiteboardView, type WhiteboardViewProps, applyBackground, avatarOverflow, callColors, captionLines, defaultDarkTheme, defaultLightTheme, formatBytes, formatCountdown, meetingTimeText, noteIdFromLink, overrunText, rsvpSummary, stripMarkdown, useAppStateLifecycle, useAppStatePresence, useBackgroundClients, useCallDuration, useDisplayName, useMessageExtras, useNativeBreakouts, usePoolseTheme, useTheme };
2860
+ export { AgendaPanel, type AgendaPanelProps, AgentBadge, AgentBadgeInline, type AgentBadgeProps, AnnotationOverlay, type AnnotationOverlayProps, ApprovalCard, type ApprovalCardProps, ApprovalList, type ApprovalListProps, AskMeetings, type AskMeetingsProps, AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRecorderAdapter, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type BackgroundClientsOptions, type BeforeSend, BlockRenderer, type BlockRendererProps, BreakoutBanner, type BreakoutBannerProps, CallAgentTag, type CallAgentTagProps, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, CallLogRow, type CallLogRowProps, type CaptionLine, CaptionsOverlay, type CaptionsOverlayProps, CatchUpCard, type CatchUpCardProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, ClipPlayer, type ClipPlayerProps, CommandSuggestions, type ComposerPassThroughProps, type ComposerSendOptions, type ConfirmDelete, ConnectionIndicator, type ConnectionIndicatorProps, ConsentPrompt, type ConsentPromptProps, type ConversationDraft, type ConversationGroupBy, ConversationList, type ConversationListProps, type ConversationSection, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, DlpWarningSheet, type DlpWarningSheetProps, type DraftStorage, EditHistorySheet, type EditHistorySheetProps, EmojiGlyph, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, EscalationCard, type EscalationCardProps, EscalationList, type EscalationListProps, FilesList, type FilesListProps, FormattingToolbar, type FormattingToolbarProps, type ForumPost, ForumPostList, type ForumPostListProps, ForwardSheet, type ForwardSheetProps, type ForwardTarget, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, InviteAgentMenu, type InviteAgentMenuProps, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, LiveTranscriptPanel, type LiveTranscriptPanelProps, LobbyAdmitList, type LobbyAdmitListProps, LobbyWaiting, type LobbyWaitingProps, MarkMomentButton, type MarkMomentButtonProps, type MediaPlayback, MeetingCard, MeetingCardMessageRow, type MeetingCardMessageRowProps, type MeetingCardProps, type MeetingParticipant, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageApproval, type MessageApprovalProps, MessageBubble, type MessageBubbleProps, MessageCitations, type MessageCitationsProps, MessageComposer, type MessageComposerHandle, type MessageComposerProps, type MessageExtraAction, type MessageExtrasHandlers, MessageExtrasProvider, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, NetworkBanner, type NetworkBannerProps, NewMessagesDivider, type NewMessagesDividerProps, NoteCard, type NoteCardProps, PinsList, type PinsListProps, PollCard, type PollCardProps, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseMediaProps, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, PresenceBadge, type PresenceBadgeProps, primitives as Primitives, QuestionsPanel, type QuestionsPanelProps, ReactionPicker, ReactionPickerBar, type ReactionPickerBarProps, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, ReactionsOverlay, type ReactionsOverlayProps, RecordingBanner, type RecordingBannerProps, RecordingIndicator, type RecordingIndicatorProps, RecordingNoticeRow, type RecordingNoticeRowProps, RecordingPlayer, type RecordingPlayerHandle, type RecordingPlayerProps, type RenderMedia, type RenderMessageContext, RoomPresence, type RoomPresenceProps, SendStatus, type SendStatusProps, StagePanel, type StagePanelProps, SummaryCard, type SummaryCardProps, SummaryMessageRow, type SummaryMessageRowProps, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TranscriptViewer, type TranscriptViewerProps, TranslatedText, type TranslatedTextProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, type UseNativeBreakouts, type UseNativeBreakoutsOptions, UserName, type UserNameProps, VideoMessagePlayer, type VideoMessagePlayerProps, VoiceMessagePlayer, type VoiceMessagePlayerProps, VoiceRecorder, type VoiceRecorderProps, WhisperPanel, type WhisperPanelProps, WhiteboardView, type WhiteboardViewProps, applyBackground, avatarOverflow, callColors, captionLines, defaultDarkTheme, defaultLightTheme, formatBytes, formatCountdown, meetingTimeText, noteIdFromLink, overrunText, rsvpSummary, stripMarkdown, useAppStateLifecycle, useAppStatePresence, useBackgroundClients, useCallDuration, useDisplayName, useMessageExtras, useNativeBreakouts, usePoolseTheme, useTheme };