@vchatcloud/react-ui-kit
Version:
VChatCloud UI Kit for react integration
28 lines (27 loc) • 1.34 kB
TypeScript
declare const useVChatCloud: () => {
instance?: import('@vchatcloud/sdk').VChatCloud;
email?: string;
channel?: import('@vchatcloud/sdk').Channel;
chattingLog: import('..').ExtendedMessage[];
fileList: import('..').VChatCloudAPIFile[];
translateClientKeyMap: Record<string, string>;
sessionType: import('..').SessionType;
privateRoom: import('..').PrivateRoomData;
} & {
joinRoom: (instance: import('@vchatcloud/sdk').VChatCloud, user: Parameters<import('@vchatcloud/sdk').VChatCloud["joinChannel"]>[0]) => Promise<import('@vchatcloud/sdk').Channel>;
setInstance: (instance: import('@vchatcloud/sdk').VChatCloud) => void;
setEmail: (email?: string) => void;
setChannel: (channel: import('@vchatcloud/sdk').Channel) => void;
setChattingLog: (chattingLog: import('..').ExtendedMessage[]) => void;
addChattingLog: (message: import('..').ExtendedMessage) => void;
removeChattingLog: (uuid: string) => void;
updateChattingData: (message: import('..').ExtendedMessage) => void;
setTranslateUser: (data: {
clientKey: string;
language: string | undefined;
}) => void;
setSessionType: (sessionType: import('..').SessionType) => void;
setPrivateRoom: (data: import('..').PrivateRoomData) => void;
cleanUp: () => void;
};
export default useVChatCloud;