UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

10 lines (9 loc) 612 B
import type { LocalMessage, UserResponse } from 'stream-chat'; import type { ReactEventHandler } from '../types'; export declare const missingUseMuteHandlerParamsWarning = "useMuteHandler was called but it is missing one or more necessary parameter."; export type MuteUserNotifications = { getErrorNotification?: (user: UserResponse) => string; getSuccessNotification?: (user: UserResponse) => string; notify?: (notificationText: string, type: 'success' | 'error') => void; }; export declare const useMuteHandler: (message?: LocalMessage, notifications?: MuteUserNotifications) => ReactEventHandler;