UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

18 lines 1.01 kB
import { GroupStyle } from '../utils'; import type { Channel } from 'stream-chat'; import type { StreamMessage } from '../../../context/ChannelStateContext'; import type { DefaultStreamChatGenerics } from '../../../types/types'; export declare const useEnrichedMessages: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(args: { channel: Channel<StreamChatGenerics>; disableDateSeparator: boolean; hideDeletedMessages: boolean; hideNewMessageSeparator: boolean; messages: StreamMessage<StreamChatGenerics>[]; noGroupByUser: boolean; groupStyles?: ((message: StreamMessage<StreamChatGenerics>, previousMessage: StreamMessage<StreamChatGenerics>, nextMessage: StreamMessage<StreamChatGenerics>, noGroupByUser: boolean) => GroupStyle) | undefined; headerPosition?: number | undefined; }) => { messageGroupStyles: Record<string, GroupStyle>; messages: StreamMessage<StreamChatGenerics>[]; }; //# sourceMappingURL=useEnrichedMessages.d.ts.map