UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

19 lines (18 loc) 2.1 kB
declare const useChatContext: () => { messages: import("..").Message; repliedMessage: import("easemob-websdk").EasemobChat.ReadMsgBody | import("easemob-websdk").EasemobChat.DeliveryMsgBody | import("easemob-websdk").EasemobChat.ChannelMsgBody | import("easemob-websdk").EasemobChat.TextMsgBody | import("easemob-websdk").EasemobChat.CmdMsgBody | import("easemob-websdk").EasemobChat.CustomMsgBody | import("easemob-websdk").EasemobChat.LocationMsgBody | import("easemob-websdk").EasemobChat.ImgMsgBody | import("easemob-websdk").EasemobChat.AudioMsgBody | import("easemob-websdk").EasemobChat.VideoMsgBody | import("easemob-websdk").EasemobChat.FileMsgBody | import("easemob-websdk").EasemobChat.CombineMsgBody | null; typing: import("..").Typing; sendMessage: (message: import("easemob-websdk").EasemobChat.MessageBody) => Promise<void>; deleteMessage: (cvs: import("..").CurrentConversation, messageId: string | string[]) => void | Promise<void>; recallMessage: (cvs: import("..").CurrentConversation, messageId: string, isChatThread?: boolean, recallMySelfMsg?: boolean) => Promise<void> | undefined; addReaction: (cvs: import("..").CurrentConversation, messageId: string, emoji: string) => Promise<void> | undefined; deleteReaction: (cvs: import("..").CurrentConversation, messageId: string, emoji: string) => Promise<void>; translateMessage: (cvs: import("..").CurrentConversation, messageId: string, language: string) => Promise<unknown>; modifyMessage: (messageId: string, msg: import("easemob-websdk").EasemobChat.ExcludeAckMessageBody) => Promise<void>; modifyLocalMessage: (id: string, message: import("easemob-websdk").EasemobChat.MessageBody | import("../noticeMessage/NoticeMessage").NoticeMessageBody) => void; updateMessageStatus: (msgId: string, status: string) => void; sendTypingCommand: (cvs: import("..").CurrentConversation) => void; setRepliedMessage: (message: import("easemob-websdk").EasemobChat.MessageBody | null) => void; clearMessages: (cvs: import("..").CurrentConversation) => void; }; export { useChatContext };