UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

9 lines 803 B
import type { ReactEventHandler } from '../types'; import type { StreamMessage } from '../../../context/ChannelStateContext'; import type { DefaultStreamChatGenerics } from '../../../types/types'; export declare type DeleteMessageNotifications<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = { getErrorNotification?: (message: StreamMessage<StreamChatGenerics>) => string; notify?: (notificationText: string, type: 'success' | 'error') => void; }; export declare const useDeleteHandler: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message?: StreamMessage<StreamChatGenerics> | undefined, notifications?: DeleteMessageNotifications<StreamChatGenerics>) => ReactEventHandler; //# sourceMappingURL=useDeleteHandler.d.ts.map