import { USER_CHAT_TYPES, VistaChatV2Message } from './type'; export type UserChatRoomsAction = { type: USER_CHAT_TYPES.SET_CHAT_ROOMS; payload: { chatRooms: []; }; }; export type UserChatSessionAction = { type: USER_CHAT_TYPES.SET_CHAT_SESSION; payload: { chatSessionId: string; }; }; export type UserChatMessageAction = { type: USER_CHAT_TYPES.SET_CHAT_MESSAGE; payload: { chatMessage: string; }; }; export type UserChatMessageListAction = { type: USER_CHAT_TYPES.SET_CHAT_MESSAGE_LIST; payload: { oldMessages: VistaChatV2Message[]; }; }; export type UserChatNewMessageAction = { type: USER_CHAT_TYPES.SET_CHAT_NEW_MESSAGE; payload: { oldMessages: VistaChatV2Message[]; }; }; export type UserPsychicIdAction = { type: USER_CHAT_TYPES.SET_PSYCHIC_ID; payload: { psychicId: string; }; }; export type UserChatEndExecutedAction = { type: USER_CHAT_TYPES.SET_CHAT_END_EXECUTED; payload: { chatEndExecuted: boolean; }; }; export type UserSetIsBalanceLowAction = { type: USER_CHAT_TYPES.SET_IS_BALANCE_LOW; payload: { isBalanceLow: boolean; }; }; export type UserTypingStatus = { type: USER_CHAT_TYPES.SET_USER_TYPING_STATUS; payload: { isTyping: boolean; }; }; export type PsychicTypingStatus = { type: USER_CHAT_TYPES.SET_PSYCHHIC_TYPING_STATUS; payload: { isPsychicTyping: boolean; }; }; export type UserSetChatMessageSendingAction = { type: USER_CHAT_TYPES.SET_SENDING_MESSAGE; payload: { isSendingMessage: boolean; }; }; export type UserSetChatEndingAction = { type: USER_CHAT_TYPES.SET_CHAT_ENDING; payload: { isEndingChat: boolean; }; }; export type UserChatActions = UserChatRoomsAction | UserChatSessionAction | UserChatMessageAction | UserPsychicIdAction | UserChatMessageListAction | UserChatNewMessageAction | UserChatEndExecutedAction | UserSetIsBalanceLowAction | UserTypingStatus | UserSetChatMessageSendingAction | UserSetChatEndingAction | PsychicTypingStatus;