import React from 'react'; import type { LocalMessage } from 'stream-chat'; /** * The content types {@link defaultMessageBubbleContentSet} ships, listed for autocomplete. Any * string is accepted, so custom content names itself. */ export type DefaultMessageBubbleContentType = 'attachments' | 'poll' | 'quotedMessage' | 'text'; /** What decides which parts of a message bubble show. */ export type MessageBubbleContentVisibilityFilterParams = { /** Whether `isMessageAIGenerated` marks the message as AI generated (streamed text). */ isAIGenerated: boolean; message: LocalMessage; }; export type MessageBubbleContentSetItem = { /** Rendered without props while `isVisible` holds. Read the message with `useMessageContext()`. */ Component: React.ComponentType; /** Whether the content shows for the message. */ isVisible: (state: MessageBubbleContentVisibilityFilterParams) => boolean; /** Names the content; unique within a set. */ type: DefaultMessageBubbleContentType | (string & {}); }; export type MessageBubbleContentProps = { /** Content in render order. Defaults to {@link defaultMessageBubbleContentSet}. */ messageBubbleContentSet?: MessageBubbleContentSetItem[]; }; /** * Renders what a message bubble holds (quoted message, poll, attachments, text) in the order of * `messageBubbleContentSet`, skipping what the message does not have. */ export declare const MessageBubbleContent: ({ messageBubbleContentSet, }: MessageBubbleContentProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=MessageBubbleContent.d.ts.map