import React, { type ComponentPropsWithRef } from 'react'; import { type ContextMenuItemProps } from '../Dialog'; import { type MESSAGE_ACTIONS } from '../Message'; type BaseMessageActionSetItem = { type: keyof typeof MESSAGE_ACTIONS | (string & {}); }; export type QuickMessageActionSetItem = BaseMessageActionSetItem & { Component: React.ComponentType; placement: 'quick'; }; export type DropdownMessageActionSetItem = BaseMessageActionSetItem & { Component: React.ComponentType; placement: 'dropdown'; }; export type QuickDropdownToggleActionSetItem = { Component: React.ComponentType>; placement: 'quick-dropdown-toggle'; }; export type MessageActionSetItem = QuickMessageActionSetItem | DropdownMessageActionSetItem | QuickDropdownToggleActionSetItem; export type MessageActionsProps = { disableBaseMessageActionSetFilter?: boolean; messageActionSet?: MessageActionSetItem[]; }; interface MessageActionsInterface { (props: MessageActionsProps): React.ReactNode; getDialogId: (_: { messageId: string; }) => string; displayName: string; } /** * A new actions component to replace current `MessageOptions` component. * Exports from `stream-chat-react/experimental` __MIGHT__ change - use with caution * and follow release notes in case you notice unexpected behavior. */ export declare const MessageActions: MessageActionsInterface; export {}; //# sourceMappingURL=MessageActions.d.ts.map