import React from 'react'; import type { MessageComposerPreviewVisibilityFilterParams } from './hooks/useMessageComposerPreviewState'; /** * The preview types {@link defaultMessageComposerPreviewSet} ships, listed for autocomplete. Any * string is accepted, so custom previews name themselves. */ export type DefaultMessageComposerPreviewType = 'attachments' | 'editedMessage' | 'linkPreviews' | 'location' | 'quotedMessage' | 'voiceRecording'; export type MessageComposerPreviewSetItem = { /** Rendered without props while `isVisible` holds. Read the composer with `useMessageComposerController()`. */ Component: React.ComponentType; /** Whether the preview shows for the current composer state. */ isVisible: (state: MessageComposerPreviewVisibilityFilterParams) => boolean; /** Names the preview; unique within a set. */ type: DefaultMessageComposerPreviewType | (string & {}); }; export type MessageComposerPreviewsProps = { /** Previews in render order. Defaults to {@link defaultMessageComposerPreviewSet}. */ messageComposerPreviewSet?: MessageComposerPreviewSetItem[]; }; /** * Renders the composer's visible previews (edited or quoted message, voice recording, * attachments, link previews, location) above the textarea, or nothing when none is visible. */ export declare const MessageComposerPreviews: ({ messageComposerPreviewSet, }: MessageComposerPreviewsProps) => import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=MessageComposerPreviews.d.ts.map