@poolse/react-native 3.9.0 → 3.10.0

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.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ReactElement } from 'react';
3
- import { Conversation, Uuid, Message, LiveCall, RecordingMode, ConsentDecision, AttachmentUploadInput, Membership, PresenceState, Attachment, LinkPreview, Poolse } from '@poolse/sdk';
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, LiveTranscriptSegment, CallConnectionQuality, CallNetworkIssue, CallReaction, WhiteboardItem, WhiteboardModel, AttachmentUploadInput, Membership, PresenceState, LinkPreview, Poolse, Block, BlockActionRequest, CatchUp, Poll } from '@poolse/sdk';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { GroupPosition } from '@poolse/react';
6
- import { StyleProp, ViewStyle } from 'react-native';
5
+ import { StyleProp, ViewStyle, TextStyle } from 'react-native';
6
+ import { GroupPosition, UseCallAgents, UseWhisper, UseAgenda, UseBreakouts, UseLobby, UseMoments, UseQuestions, UseStage, FormatKind, SlashCommand, 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
 
@@ -87,6 +87,62 @@ interface PoolseInboxHandle {
87
87
  */
88
88
  declare const PoolseInbox: react.ForwardRefExoticComponent<PoolseInboxProps & react.RefAttributes<PoolseInboxHandle>>;
89
89
 
90
+ /**
91
+ * What a media adapter gets (see `renderMedia`). A controlled player:
92
+ * follow `paused` and `rate`, seek when `seek.nonce` changes, and report
93
+ * the position (a few times a second), the duration, the end and errors.
94
+ */
95
+ interface PoolseMediaProps {
96
+ uri: string;
97
+ contentType: string | null;
98
+ kind: 'audio' | 'video';
99
+ paused: boolean;
100
+ rate: number;
101
+ /** A seek request: go to `ms` whenever `nonce` changes. Null: none yet. */
102
+ seek: {
103
+ ms: number;
104
+ nonce: number;
105
+ } | null;
106
+ onProgress: (positionMs: number) => void;
107
+ onLoad: (durationMs: number | null) => void;
108
+ onEnd: () => void;
109
+ onError: (error: unknown) => void;
110
+ style?: StyleProp<ViewStyle>;
111
+ }
112
+ /**
113
+ * Plays a recording or clip. @poolse/react-native ships no media player
114
+ * of its own: wire the one your app uses (expo-video, expo-audio,
115
+ * react-native-video) — the README has an expo-video adapter. Without
116
+ * one, players show their chapters and transcript but no media.
117
+ */
118
+ type RenderMedia = (props: PoolseMediaProps) => ReactNode;
119
+ interface MessageExtrasHandlers {
120
+ /**
121
+ * A citation was pressed. A `message` citation: focus that message;
122
+ * `transcript`: open the call at `startMs`; `file`: open the file.
123
+ * `<ConversationView>` focuses messages of its own conversation by
124
+ * itself when this isn't given.
125
+ */
126
+ onOpenCitation?: (citation: Citation, message: Message) => void;
127
+ /**
128
+ * A point in a call was pressed: open its recording at `recordingMs`
129
+ * (when `recordingId` is set) or its transcript at `startMs`.
130
+ */
131
+ onOpenMoment?: (moment: MeetingMoment) => void;
132
+ /** A poolse user id → display name (assignees in summaries). Unknown: null. */
133
+ nameForUserId?: (userId: string) => string | null | undefined;
134
+ /** A poolse user id → their `external_id`, so a name resolves live with `useUser`. */
135
+ externalIdForUserId?: (userId: string) => string | null | undefined;
136
+ /** The media adapter for clips in chat (and any player without its own). */
137
+ renderMedia?: RenderMedia;
138
+ }
139
+ declare function MessageExtrasProvider({ value, children, }: {
140
+ value: MessageExtrasHandlers;
141
+ children: ReactNode;
142
+ }): react_jsx_runtime.JSX.Element;
143
+ /** The nearest `MessageExtrasProvider`'s handlers (empty without one). */
144
+ declare function useMessageExtras(): MessageExtrasHandlers;
145
+
90
146
  /**
91
147
  * - `bubbles` — chat bubbles, own messages on the right (the default).
92
148
  * - `list` — Slack-style full-width rows: avatar, name and time once
@@ -453,6 +509,22 @@ interface ConversationViewProps {
453
509
  * (the viewer is in the room, or ringing out as its caller).
454
510
  */
455
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;
456
528
  /** Presence badges on message avatars (where avatars show). Defaults to `false`. */
457
529
  showPresence?: boolean;
458
530
  /**
@@ -495,7 +567,7 @@ interface ConversationViewProps {
495
567
  /** Fires after "Mark unread" succeeded (the unread counts follow over realtime). */
496
568
  onMarkedUnread?: (conversationId: string, messageId: string) => void;
497
569
  }
498
- 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, layout, density, showAvatars: showAvatarsProp, timeFormat, groupWindowMinutes, daySeparators, slots, showPresence, linkPreviews, newMessagesDivider, persistDrafts, draftStorage, emojiPicker, maxFileSize, acceptedFileTypes, markUnread, onMarkedUnread, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
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;
499
571
 
500
572
  interface ChatHeaderProps {
501
573
  conversationId: Uuid;
@@ -725,6 +797,429 @@ interface TranscriptViewerProps {
725
797
  */
726
798
  declare function TranscriptViewer({ callId, canRename, onSeek, title, style, }: TranscriptViewerProps): react_jsx_runtime.JSX.Element | null;
727
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
+ breakouts: UseBreakouts;
1044
+ /** You are in your breakout room now (not the main call). */
1045
+ inBreakout?: boolean;
1046
+ /** Connect to the room's session (switch the call's media to it). */
1047
+ onJoined?: (session: RoomSession) => void;
1048
+ /** Connect back to the main call. */
1049
+ onReturned?: (session: RoomSession) => void;
1050
+ style?: StyleProp<ViewStyle>;
1051
+ }
1052
+ /**
1053
+ * "Breakout · Room 2 · 12:30 left · Join room", then "Return to main";
1054
+ * while closing, "Returning to the main call in 0:45". Nothing without a
1055
+ * session or a room for you.
1056
+ */
1057
+ declare function BreakoutBanner({ breakouts, inBreakout, onJoined, onReturned, style, }: BreakoutBannerProps): react_jsx_runtime.JSX.Element | null;
1058
+ interface LobbyWaitingProps {
1059
+ /** The name the guest gave. */
1060
+ name: string;
1061
+ /** Where the guest stands (`waitInLobby`'s status). */
1062
+ status: GuestLobbyStatus['status'];
1063
+ /** The meeting's title, when known. */
1064
+ title?: string | null;
1065
+ onLeave: () => void;
1066
+ style?: StyleProp<ViewStyle>;
1067
+ }
1068
+ /** A guest's waiting screen: "Waiting for the host to let you in", then denied or ended. */
1069
+ declare function LobbyWaiting({ name, status, title, onLeave, style }: LobbyWaitingProps): react_jsx_runtime.JSX.Element;
1070
+ interface LobbyAdmitListProps {
1071
+ lobby: UseLobby;
1072
+ style?: StyleProp<ViewStyle>;
1073
+ }
1074
+ /** For members: who is waiting, with Admit / Deny and Admit all. Nothing when nobody waits. */
1075
+ declare function LobbyAdmitList({ lobby, style }: LobbyAdmitListProps): react_jsx_runtime.JSX.Element | null;
1076
+ interface MarkMomentButtonProps {
1077
+ moments: UseMoments;
1078
+ /** Icon only (a call control); the label is still read out. */
1079
+ compact?: boolean;
1080
+ style?: StyleProp<ViewStyle>;
1081
+ }
1082
+ /** "Mark moment": highlights this point in the recording and the summary; says "Marked" for 2 s. */
1083
+ declare function MarkMomentButton({ moments, compact, style }: MarkMomentButtonProps): react_jsx_runtime.JSX.Element;
1084
+ interface AgendaPanelProps {
1085
+ agenda: UseAgenda;
1086
+ /** Show Start / Done / Reopen. */
1087
+ canEdit?: boolean;
1088
+ nameForUserId?: NameFor;
1089
+ style?: StyleProp<ViewStyle>;
1090
+ }
1091
+ /** The meeting's agenda: owner and minutes per item, the current one highlighted, an over-time nudge. */
1092
+ declare function AgendaPanel({ agenda, canEdit, nameForUserId, style }: AgendaPanelProps): react_jsx_runtime.JSX.Element | null;
1093
+ interface RoomPresenceProps {
1094
+ /**
1095
+ * Who's in (`useRoomPresence().presence[id]`), or a live call
1096
+ * (`useLiveCall(id).call`); nothing renders when empty.
1097
+ */
1098
+ call: RoomPresenceEntry | LiveCall | null | undefined;
1099
+ /** Most avatars to show; the rest become "+N". Defaults to 3. */
1100
+ max?: number;
1101
+ nameForUserId?: NameFor;
1102
+ style?: StyleProp<ViewStyle>;
1103
+ }
1104
+ /** Who is in a room, for a sidebar row: overlapping avatars and "+N". */
1105
+ declare function RoomPresence({ call, max, nameForUserId, style }: RoomPresenceProps): react_jsx_runtime.JSX.Element | null;
1106
+ interface MeetingCardProps {
1107
+ card: MeetingCard$1;
1108
+ /** Your user id, to find your answer in the lists. */
1109
+ meId?: string | null;
1110
+ /**
1111
+ * Record your answer yourself. Default: `PUT /meetings/:id/rsvp`
1112
+ * through the provider's client; `false` hides the buttons. The card
1113
+ * updates when the server restates the message.
1114
+ */
1115
+ onRsvp?: ((response: RsvpResponse) => void | Promise<void>) | false;
1116
+ /** Join the meeting's room. */
1117
+ onJoin?: (card: MeetingCard$1) => void;
1118
+ nameForUserId?: NameFor;
1119
+ style?: StyleProp<ViewStyle>;
1120
+ }
1121
+ /** An invite in chat: title, time, who's coming, Accept / Maybe / Decline and Join. */
1122
+ declare function MeetingCard({ card, meId, onRsvp, onJoin, nameForUserId, style, }: MeetingCardProps): react_jsx_runtime.JSX.Element;
1123
+ interface MeetingCardMessageRowProps extends Omit<MeetingCardProps, 'card'> {
1124
+ msg: Message;
1125
+ }
1126
+ /** A meeting-card message in a list; nothing for any other message. */
1127
+ declare function MeetingCardMessageRow({ msg, ...rest }: MeetingCardMessageRowProps): react_jsx_runtime.JSX.Element | null;
1128
+
1129
+ interface CaptionsOverlayProps {
1130
+ /** `useLiveTranscript(callId).segments`. */
1131
+ segments: readonly LiveTranscriptSegment[];
1132
+ /** How many lines to show. Defaults to 2. */
1133
+ lines?: number;
1134
+ style?: StyleProp<ViewStyle>;
1135
+ }
1136
+ /** The last lines of the live transcript, with speaker names; words still being spoken are dimmed. */
1137
+ declare function CaptionsOverlay({ segments, lines, style }: CaptionsOverlayProps): react_jsx_runtime.JSX.Element | null;
1138
+ interface ReactionsOverlayProps {
1139
+ /** `useCallReactions(room).reactions`. */
1140
+ reactions: readonly CallReaction[];
1141
+ style?: StyleProp<ViewStyle>;
1142
+ }
1143
+ /** Reactions rising over the call (still, with Reduce Motion). Never takes touches. */
1144
+ declare function ReactionsOverlay({ reactions, style }: ReactionsOverlayProps): react_jsx_runtime.JSX.Element;
1145
+ interface ReactionPickerBarProps {
1146
+ onReact: (emoji: string) => void;
1147
+ emojis?: readonly string[];
1148
+ style?: StyleProp<ViewStyle>;
1149
+ }
1150
+ /** A row of reaction buttons (`DEFAULT_CALL_REACTIONS`). */
1151
+ declare function ReactionPickerBar({ onReact, emojis, style, }: ReactionPickerBarProps): react_jsx_runtime.JSX.Element;
1152
+ interface ConnectionIndicatorProps {
1153
+ /** A web `CallConnectionQuality` or the native core's `'good' | 'poor' | 'lost' | 'unknown'`. */
1154
+ quality: CallConnectionQuality | 'good' | 'poor' | 'lost' | 'unknown' | null | undefined;
1155
+ /** Bar height in px. Defaults to 12. */
1156
+ size?: number;
1157
+ style?: StyleProp<ViewStyle>;
1158
+ }
1159
+ /** Three signal bars; a weak link turns amber, a lost one red. Labelled for screen readers. */
1160
+ declare function ConnectionIndicator({ quality, size, style }: ConnectionIndicatorProps): react_jsx_runtime.JSX.Element | null;
1161
+ interface NetworkBannerProps {
1162
+ /** `useCallQuality(room)?.issues`, or `diagnoseCallNetwork(…)` from a native snapshot. */
1163
+ issues: readonly CallNetworkIssue[];
1164
+ onDismiss?: () => void;
1165
+ style?: StyleProp<ViewStyle>;
1166
+ }
1167
+ /** The worst network problem in plain words ("Your network is dropping packets…"). */
1168
+ declare function NetworkBanner({ issues, onDismiss, style }: NetworkBannerProps): react_jsx_runtime.JSX.Element | null;
1169
+ interface WhiteboardViewProps {
1170
+ /** `useWhiteboard(callId, Y).items`. */
1171
+ items: readonly WhiteboardItem[];
1172
+ /** With a model and not `readOnly`, a finger draws pen strokes. */
1173
+ model?: WhiteboardModel | null;
1174
+ readOnly?: boolean;
1175
+ /** Pen colour and width (board units). */
1176
+ color?: string;
1177
+ width?: number;
1178
+ style?: StyleProp<ViewStyle>;
1179
+ }
1180
+ /**
1181
+ * The call's whiteboard, fit to the view (1600 × 900 board units). View
1182
+ * only by default; pass the model to draw simple pen strokes.
1183
+ */
1184
+ declare function WhiteboardView({ items, model, readOnly, color, width, style, }: WhiteboardViewProps): react_jsx_runtime.JSX.Element;
1185
+ interface AnnotationOverlayProps {
1186
+ /** `useScreenAnnotations(room, sharerUserId).state`. */
1187
+ state: AnnotationState | null;
1188
+ style?: StyleProp<ViewStyle>;
1189
+ }
1190
+ /**
1191
+ * Lines and pointers others draw on a shared screen, laid over the
1192
+ * screen's video (same box, `fit="contain"` area). View only.
1193
+ */
1194
+ declare function AnnotationOverlay({ state, style }: AnnotationOverlayProps): react_jsx_runtime.JSX.Element;
1195
+
1196
+ /** 45 → "0:45", 3725 → "1:02:05". */
1197
+ declare function formatCountdown(seconds: number | null | undefined): string;
1198
+ /** Show at most `max` avatars; the rest become "+N". */
1199
+ declare function avatarOverflow<T>(list: readonly T[], max: number): {
1200
+ shown: T[];
1201
+ more: number;
1202
+ };
1203
+ /** One caption line: a speaker's run of text, interim when still talking. */
1204
+ interface CaptionLine {
1205
+ key: string;
1206
+ speaker: string;
1207
+ text: string;
1208
+ interim: boolean;
1209
+ }
1210
+ /**
1211
+ * The last `lines` caption lines: consecutive segments of one speaker are
1212
+ * joined, an interim segment after them shown as still being spoken.
1213
+ * Each line keeps only its last `maxChars` characters.
1214
+ */
1215
+ declare function captionLines(segments: readonly LiveTranscriptSegment[], lines?: number, maxChars?: number): CaptionLine[];
1216
+ /** "Budget review is 3 min over" — null when not over by a whole minute. */
1217
+ declare function overrunText(title: string, overrunMs: number): string | null;
1218
+ /** "Tue 21 Nov · 10:00–10:30" in the device's locale. */
1219
+ declare function meetingTimeText(card: Pick<MeetingCard$1, 'startsAt' | 'endsAt'>): string | null;
1220
+ /** "4 accepted · 1 maybe · 2 declined" (empty parts left out), or null. */
1221
+ declare function rsvpSummary(card: Pick<MeetingCard$1, 'rsvps'> & Partial<Pick<MeetingCard$1, 'counts'>>): string | null;
1222
+
728
1223
  interface MessageComposerProps {
729
1224
  /**
730
1225
  * Called when the user taps Send. Second arg carries
@@ -732,10 +1227,7 @@ interface MessageComposerProps {
732
1227
  * (resolved from the composer's upload queue). Awaited so the
733
1228
  * composer disables until the send round-trips.
734
1229
  */
735
- onSend: (body: string, opts?: {
736
- quoted_message_id?: Uuid;
737
- attachment_ids?: Uuid[];
738
- }) => Promise<unknown> | void;
1230
+ onSend: (body: string, opts?: ComposerSendOptions) => Promise<unknown> | void;
739
1231
  /** Called on every keystroke. Hook to `useTyping().signalTyping`. */
740
1232
  onTyping?: () => void;
741
1233
  placeholder?: string;
@@ -786,6 +1278,21 @@ interface MessageComposerProps {
786
1278
  emojiPicker?: boolean;
787
1279
  /** Rendered above the input row — e.g. `<MentionInput>`'s suggestions. */
788
1280
  accessory?: ReactNode;
1281
+ /**
1282
+ * Show the Markdown formatting toolbar (bold, italic, strike, code,
1283
+ * link, quote, lists, checklist, code block, table) above the input.
1284
+ * Default `false`. Pass an array to choose the buttons and their order.
1285
+ */
1286
+ formattingToolbar?: boolean | readonly FormatKind[];
1287
+ /** Slash commands to suggest when the message starts with `/` (IN3). */
1288
+ commands?: readonly SlashCommand[];
1289
+ }
1290
+ /** The second argument of `onSend`. */
1291
+ interface ComposerSendOptions {
1292
+ quoted_message_id?: Uuid;
1293
+ attachment_ids?: Uuid[];
1294
+ /** Set when the sender chose "Send anyway" on a data-loss-prevention warning (AD6). */
1295
+ dlp_acknowledged?: true;
789
1296
  }
790
1297
  /**
791
1298
  * Imperative handle for parents that want to add files to the
@@ -802,6 +1309,31 @@ interface MessageComposerHandle {
802
1309
  }
803
1310
  declare const MessageComposer: react.ForwardRefExoticComponent<MessageComposerProps & react.RefAttributes<MessageComposerHandle>>;
804
1311
 
1312
+ interface FormattingToolbarProps {
1313
+ onFormat: (kind: FormatKind) => void;
1314
+ disabled?: boolean;
1315
+ /** Which buttons, in order. Defaults to all of `FORMAT_ACTIONS`. */
1316
+ actions?: readonly FormatKind[];
1317
+ }
1318
+ /** A horizontally scrolling row of formatting buttons. */
1319
+ declare function FormattingToolbar({ onFormat, disabled, actions, }: FormattingToolbarProps): react_jsx_runtime.JSX.Element;
1320
+ /** `/command` suggestions for the text and cursor, or `null` when none match. */
1321
+ declare function CommandSuggestions({ commands, text, cursor, onPick, }: {
1322
+ commands: readonly SlashCommand[];
1323
+ text: string;
1324
+ cursor: number;
1325
+ onPick: (command: SlashCommand) => void;
1326
+ }): react_jsx_runtime.JSX.Element | null;
1327
+ interface DlpWarningSheetProps {
1328
+ outcome: DlpOutcome;
1329
+ /** "Send anyway" (only offered for a warning, never for a block). */
1330
+ onSendAnyway?: () => void;
1331
+ /** "Edit message": back to the composer with the text kept. */
1332
+ onEdit: () => void;
1333
+ }
1334
+ /** The data-loss-prevention warning as a centred modal. */
1335
+ declare function DlpWarningSheet({ outcome, onSendAnyway, onEdit }: DlpWarningSheetProps): react_jsx_runtime.JSX.Element;
1336
+
805
1337
  interface MessageActionsProps {
806
1338
  visible: boolean;
807
1339
  onClose: () => void;
@@ -833,6 +1365,14 @@ interface MessageActionsProps {
833
1365
  * Called after the sheet closes.
834
1366
  */
835
1367
  onMoreReactions?: () => void;
1368
+ /** Pin or unpin (MS13); `pinned` picks the label. */
1369
+ onTogglePin?: () => void;
1370
+ pinned?: boolean;
1371
+ /** Forward to other conversations (MS13): open your target picker (`<ForwardSheet>`). */
1372
+ onForward?: () => void;
1373
+ /** Translate (MS21), or back to the original when `translated`. */
1374
+ onTranslate?: () => void;
1375
+ translated?: boolean;
836
1376
  }
837
1377
  /**
838
1378
  * Long-press action menu — modal bottom sheet. Renders a row of
@@ -840,7 +1380,7 @@ interface MessageActionsProps {
840
1380
  * action items below. Matches WhatsApp / iMessage's "long-press
841
1381
  * shows everything inline" pattern.
842
1382
  */
843
- declare function MessageActions({ visible, onClose, isSelf, emojis, onPickReaction, onReply, onReplyInThread, onQuote, onEdit, onDelete, onCopy, onMarkUnread, onRemovePreview, previewUrls, onMoreReactions, }: MessageActionsProps): react_jsx_runtime.JSX.Element;
1383
+ 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;
844
1384
 
845
1385
  /**
846
1386
  * Either a real message or a day-separator row. ConversationView
@@ -952,6 +1492,10 @@ interface ThreadViewProps {
952
1492
  showPresence?: boolean;
953
1493
  /** Link previews under replies. Defaults to `true`. */
954
1494
  linkPreviews?: boolean;
1495
+ /** A Follow / Following button in the header (MS19). Default `true`. */
1496
+ follow?: boolean;
1497
+ /** An "Also send to channel" switch above the composer (MS19). Default `true`; off in DMs. */
1498
+ alsoSendToChannel?: boolean;
955
1499
  }
956
1500
  /**
957
1501
  * Bottom-sheet modal for thread replies. Pull the drag handle / header
@@ -968,7 +1512,7 @@ interface ThreadViewProps {
968
1512
  * sheet top (the gutter), since KAV measures its frame relative to
969
1513
  * its parent (the sheet), not the screen.
970
1514
  */
971
- declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, layout, timeFormat, density, showPresence, linkPreviews, }: ThreadViewProps): react_jsx_runtime.JSX.Element;
1515
+ declare function ThreadView({ visible, onClose, conversationId, rootMessage, labelFor, avatarFor, layout, timeFormat, density, showPresence, linkPreviews, follow, alsoSendToChannel, }: ThreadViewProps): react_jsx_runtime.JSX.Element;
972
1516
 
973
1517
  interface ThreadSummaryProps {
974
1518
  /** The thread's root: `reply_count`, `last_reply_at`, `thread_participants`. */
@@ -1021,12 +1565,14 @@ interface UserNameProps {
1021
1565
  fallback?: string;
1022
1566
  /** Caller-supplied label override; if it returns a string, it wins. */
1023
1567
  labelFor?: (externalId: string) => string;
1568
+ /** The Agent badge after an agent's name (AG1). Defaults to `true`. */
1569
+ agentBadge?: boolean;
1024
1570
  }
1025
1571
  /**
1026
1572
  * Display name for a user, looked up via the SDK's `userResolver`
1027
1573
  * with caller-overridable + fallback fallbacks. Renders a `<Text>`.
1028
1574
  */
1029
- declare function UserName({ externalId, fallback, labelFor }: UserNameProps): react_jsx_runtime.JSX.Element;
1575
+ declare function UserName({ externalId, fallback, labelFor, agentBadge }: UserNameProps): react_jsx_runtime.JSX.Element;
1030
1576
  /**
1031
1577
  * Resolves a user's display name via the 3-tier chain:
1032
1578
  * 1. `labelFor(externalId)` — caller-supplied override
@@ -1217,13 +1763,17 @@ declare function ReactionPicker({ visible, onClose, onPick, emojis, }: ReactionP
1217
1763
  interface MentionInputProps extends Omit<MessageComposerProps, 'onSend'> {
1218
1764
  conversationId: Uuid;
1219
1765
  /** Same callback as MessageComposer.onSend, plus the mentioned user_ids. */
1220
- onSend: (body: string, opts?: {
1221
- quoted_message_id?: Uuid;
1222
- attachment_ids?: Uuid[];
1766
+ onSend: (body: string, opts?: ComposerSendOptions & {
1223
1767
  mentions?: Uuid[];
1224
1768
  }) => Promise<unknown> | void;
1225
1769
  /** Most suggestions shown at once. Defaults to 6. */
1226
1770
  maxSuggestions?: number;
1771
+ /**
1772
+ * User groups to offer after matching members (MS9): `@design`,
1773
+ * `@oncall`. Picking one inserts `@handle`; the Workspace expands it
1774
+ * when the message arrives, so nothing extra is sent.
1775
+ */
1776
+ groups?: readonly MentionGroup[];
1227
1777
  }
1228
1778
  /**
1229
1779
  * Composer with @-mentions: typing `@` (at the start or after a space)
@@ -1232,7 +1782,7 @@ interface MentionInputProps extends Omit<MessageComposerProps, 'onSend'> {
1232
1782
  * carries their user id in `mentions` — for as long as `@Name` is
1233
1783
  * still in the text.
1234
1784
  */
1235
- declare function MentionInput({ conversationId, onSend, maxSuggestions, labelFor, value: valueProp, onChangeText, onSelectionChange, ...composerProps }: MentionInputProps): react_jsx_runtime.JSX.Element;
1785
+ declare function MentionInput({ conversationId, onSend, maxSuggestions, labelFor, value: valueProp, onChangeText, onSelectionChange, groups, ...composerProps }: MentionInputProps): react_jsx_runtime.JSX.Element;
1236
1786
 
1237
1787
  interface AttachmentPickerProps {
1238
1788
  visible: boolean;
@@ -1631,8 +2181,13 @@ interface AvatarProps {
1631
2181
  userId?: string | null;
1632
2182
  /** Size variant. `md` → 40px, `sm` → 28px, `xs` → 20px, `lg` → 56px. */
1633
2183
  size?: 'xs' | 'sm' | 'md' | 'lg';
2184
+ /**
2185
+ * An agent, not a person (AG1): a rounded-square avatar with a small
2186
+ * agent mark, and "(agent)" in its label. Pass `useUser(id).agent`.
2187
+ */
2188
+ agent?: boolean;
1634
2189
  }
1635
- declare function Avatar({ src, name, seed, online, presence, doNotDisturb, userId, size, }: AvatarProps): react_jsx_runtime.JSX.Element;
2190
+ declare function Avatar({ src, name, seed, online, presence, doNotDisturb, userId, size, agent, }: AvatarProps): react_jsx_runtime.JSX.Element;
1636
2191
 
1637
2192
  declare const primitives: {
1638
2193
  PoolseIcon: typeof PoolseIcon;
@@ -2014,4 +2569,168 @@ declare const callColors: {
2014
2569
  */
2015
2570
  declare function useCallDuration(connected: boolean): string | null;
2016
2571
 
2017
- export { AttachmentPicker, type AttachmentPickerProps, AttachmentPreview, type AttachmentPreviewProps, type AudioRoute, type AudioRouteKind, AudioRouteSheet, type AudioRouteSheetProps, Avatar, type AvatarProps, type BackgroundClientsOptions, CallAvatar, type CallAvatarProps, CallControlButton, type CallControlButtonProps, CallLogRow, type CallLogRowProps, type ChatDensity, ChatHeader, type ChatHeaderProps, type ChatLayout, ConsentPrompt, type ConsentPromptProps, type ConversationDraft, type ConversationGroupBy, ConversationList, type ConversationListProps, type ConversationSection, ConversationView, type ConversationViewProps, DaySeparator, type DaySeparatorProps, type DraftStorage, EditHistorySheet, type EditHistorySheetProps, EmojiPicker, type EmojiPickerProps, EmptyState, type EmptyStateProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, ImageMosaic, type ImageMosaicProps, type InboxUser, LinkPreviewCard, type LinkPreviewCardProps, LiveCallBanner, type LiveCallBannerProps, LiveTranscriptPanel, type LiveTranscriptPanelProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerHandle, type MessageComposerProps, MessageList, type MessageListItem, type MessageListProps, MessageRow, type MessageRowProps, type MessageSlot, type MessageSlotProps, type MessageSlots, type MessageUser, NewMessagesDivider, type NewMessagesDividerProps, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, type PoolseRNTheme, type PoolseRNThemeOverrides, PoolseTheme, type PoolseThemeProps, PresenceBadge, type PresenceBadgeProps, primitives as Primitives, ReactionPicker, type ReactionPickerProps, ReactionStrip, type ReactionStripProps, RecordingBanner, type RecordingBannerProps, RecordingIndicator, type RecordingIndicatorProps, RecordingNoticeRow, type RecordingNoticeRowProps, type RenderMessageContext, SendStatus, type SendStatusProps, type ThemeColors, type ThemeRadii, type ThemeShadows, type ThemeSpacing, type ThemeType, ThreadSummary, type ThreadSummaryProps, ThreadView, type ThreadViewProps, type TimeFormat, TranscriptViewer, type TranscriptViewerProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, UserName, type UserNameProps, applyBackground, callColors, defaultDarkTheme, defaultLightTheme, useAppStateLifecycle, useAppStatePresence, useBackgroundClients, useCallDuration, useDisplayName, usePoolseTheme, useTheme };
2572
+ interface PollCardProps {
2573
+ question: string;
2574
+ poll: Poll;
2575
+ myOptionIds: readonly string[];
2576
+ onToggle?: (optionId: string) => void;
2577
+ onClose?: () => void;
2578
+ pending?: boolean;
2579
+ showResults?: boolean;
2580
+ }
2581
+ declare function PollCard({ question, poll, myOptionIds, onToggle, onClose, pending, showResults, }: PollCardProps): react_jsx_runtime.JSX.Element;
2582
+ interface BlockRendererProps {
2583
+ blocks: readonly Block[];
2584
+ onAction?: (req: BlockActionRequest) => Promise<unknown> | void;
2585
+ disabled?: boolean;
2586
+ }
2587
+ declare function BlockRenderer({ blocks, onAction, disabled }: BlockRendererProps): react_jsx_runtime.JSX.Element;
2588
+ interface PinsListProps {
2589
+ pins: readonly Message[];
2590
+ labelFor?: (externalId: string) => string;
2591
+ onOpen?: (message: Message) => void;
2592
+ onUnpin?: (message: Message) => void;
2593
+ loading?: boolean;
2594
+ }
2595
+ declare function PinsList({ pins, labelFor, onOpen, onUnpin, loading }: PinsListProps): react_jsx_runtime.JSX.Element;
2596
+ interface ForwardTarget {
2597
+ id: Uuid;
2598
+ name: string;
2599
+ }
2600
+ interface ForwardSheetProps {
2601
+ visible: boolean;
2602
+ targets: readonly ForwardTarget[];
2603
+ onForward: (conversationIds: Uuid[], comment: string) => Promise<unknown> | void;
2604
+ onClose: () => void;
2605
+ max?: number;
2606
+ }
2607
+ declare function ForwardSheet({ visible, targets, onForward, onClose, max, }: ForwardSheetProps): react_jsx_runtime.JSX.Element;
2608
+ interface FilesListProps {
2609
+ files: readonly Attachment[];
2610
+ onOpen?: (file: Attachment) => void;
2611
+ thumbnailFor?: (file: Attachment) => string | null | undefined;
2612
+ onVersions?: (file: Attachment) => void;
2613
+ hasMore?: boolean;
2614
+ onLoadMore?: () => void;
2615
+ loading?: boolean;
2616
+ }
2617
+ declare function FilesList({ files, onOpen, thumbnailFor, onVersions, hasMore, onLoadMore, loading, }: FilesListProps): react_jsx_runtime.JSX.Element;
2618
+ interface ForumPost {
2619
+ messageId: Uuid;
2620
+ title: string;
2621
+ authorName: string;
2622
+ replyCount: number;
2623
+ lastActivityAt: string;
2624
+ tags?: readonly {
2625
+ name: string;
2626
+ color?: string | null;
2627
+ }[];
2628
+ }
2629
+ interface ForumPostListProps {
2630
+ posts: readonly ForumPost[];
2631
+ onOpen?: (post: ForumPost) => void;
2632
+ hasMore?: boolean;
2633
+ onLoadMore?: () => void;
2634
+ loading?: boolean;
2635
+ }
2636
+ declare function ForumPostList({ posts, onOpen, hasMore, onLoadMore, loading }: ForumPostListProps): react_jsx_runtime.JSX.Element;
2637
+ interface CatchUpCardProps {
2638
+ result: CatchUp | null;
2639
+ loading?: boolean;
2640
+ error?: unknown;
2641
+ onRun?: () => void;
2642
+ onOpenMessage?: (messageId: Uuid, sequence: number) => void;
2643
+ onDismiss?: () => void;
2644
+ }
2645
+ declare function CatchUpCard({ result, loading, error, onRun, onOpenMessage, onDismiss, }: CatchUpCardProps): react_jsx_runtime.JSX.Element;
2646
+ interface TranslatedTextProps {
2647
+ translation: string | null;
2648
+ languageName?: string;
2649
+ loading?: boolean;
2650
+ onToggle?: () => void;
2651
+ children: ReactNode;
2652
+ }
2653
+ declare function TranslatedText({ translation, languageName, loading, onToggle, children, }: TranslatedTextProps): react_jsx_runtime.JSX.Element;
2654
+ interface NoteCardProps {
2655
+ title: string | null;
2656
+ encrypted?: boolean;
2657
+ sharedByName?: string;
2658
+ updatedAt?: string;
2659
+ updated?: boolean;
2660
+ unavailable?: boolean;
2661
+ onOpen?: () => void;
2662
+ }
2663
+ declare function NoteCard({ title, encrypted, sharedByName, updatedAt, updated, unavailable, onOpen, }: NoteCardProps): react_jsx_runtime.JSX.Element;
2664
+ /**
2665
+ * What the players need from the app's media library (expo-audio's
2666
+ * `useAudioPlayer` + `useAudioPlayerStatus`, expo-video's player, …).
2667
+ */
2668
+ interface MediaPlayback {
2669
+ playing: boolean;
2670
+ positionMs: number;
2671
+ durationMs: number;
2672
+ play: () => void;
2673
+ pause: () => void;
2674
+ seek: (ms: number) => void;
2675
+ /** Set the speed (1, 1.5, 2). */
2676
+ setRate: (rate: number) => void;
2677
+ }
2678
+ interface VoiceMessagePlayerProps {
2679
+ player: MediaPlayback;
2680
+ attachment?: Attachment | null;
2681
+ waveform?: readonly number[];
2682
+ }
2683
+ declare function VoiceMessagePlayer({ player, attachment, waveform }: VoiceMessagePlayerProps): react_jsx_runtime.JSX.Element;
2684
+ interface VideoMessagePlayerProps {
2685
+ player: MediaPlayback;
2686
+ /** The video surface (expo-video's `<VideoView player={…}>`). */
2687
+ video: ReactNode;
2688
+ attachment?: Attachment | null;
2689
+ }
2690
+ declare function VideoMessagePlayer({ player, video, attachment }: VideoMessagePlayerProps): react_jsx_runtime.JSX.Element;
2691
+ /** The app's recorder (expo-audio's `useAudioRecorder`, …). */
2692
+ interface AudioRecorderAdapter {
2693
+ /** Ask for the microphone if needed and start. */
2694
+ start: () => Promise<void>;
2695
+ /** Stop and return the file. */
2696
+ stop: () => Promise<{
2697
+ uri: string;
2698
+ durationMs: number;
2699
+ mimeType: string;
2700
+ }>;
2701
+ /** Stop and throw it away. */
2702
+ cancel: () => Promise<void>;
2703
+ }
2704
+ interface VoiceRecorderProps {
2705
+ recorder: AudioRecorderAdapter;
2706
+ /** Upload with `purpose: 'voice'` and send. */
2707
+ onRecorded: (file: {
2708
+ uri: string;
2709
+ durationMs: number;
2710
+ mimeType: string;
2711
+ }) => void | Promise<unknown>;
2712
+ /** Stops by itself after this long. Default 15 minutes. */
2713
+ maxMs?: number;
2714
+ /** Shorter than this is dropped (a tap, not a recording). Default 700 ms. */
2715
+ minMs?: number;
2716
+ disabled?: boolean;
2717
+ onError?: (err: unknown) => void;
2718
+ }
2719
+ /** Hold to record, release to send; slide-free Cancel while recording. */
2720
+ declare function VoiceRecorder({ recorder, onRecorded, maxMs, minMs, disabled, onError, }: VoiceRecorderProps): react_jsx_runtime.JSX.Element;
2721
+
2722
+ declare function EmojiGlyph({ emoji, size, customEmoji, style, }: {
2723
+ emoji: string;
2724
+ size?: number;
2725
+ customEmoji?: readonly CustomEmoji[];
2726
+ /** Style for the text form. */
2727
+ style?: StyleProp<TextStyle>;
2728
+ }): react_jsx_runtime.JSX.Element;
2729
+
2730
+ /** Block and summary text without Markdown markers (RN renders it as plain text). */
2731
+ declare function stripMarkdown(text: string): string;
2732
+ declare function formatBytes(n: number): string;
2733
+ /** The note id in a Workspace note link, or `null`. */
2734
+ declare function noteIdFromLink(url: string): string | null;
2735
+
2736
+ 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, 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, usePoolseTheme, useTheme };