easemob-chat-uikit
Version:
   ![GitHub last c
17 lines (16 loc) • 798 B
TypeScript
declare const useThreadContext: () => {
currentThread: import("..").CurrentThread;
threadList: {
[key: string]: (import("easemob-websdk").EasemobChat.ChatThreadDetail & {
members?: string[] | undefined;
})[];
};
threadVisible: boolean;
setCurrentThread: (thread: import("..").CurrentThread) => void;
setThreadVisible: (visible: boolean) => void;
getGroupChatThreads: (parentId: string, cursor?: string | undefined) => Promise<string | null>;
getThreadMembers: (parentId: string, threadId: string, cursor?: string | undefined) => Promise<string[]>;
removeChatThreadMember: (parentId: string, threadId: string, userId: string) => any;
getCurrentChatThreadDetail: (threadId: string) => Promise<void>;
};
export { useThreadContext };