import {
  getChatConnectionSnapshot,
  getSharedChatRuntimeSnapshot,
  setSharedChatRuntimeSnapshot,
  subscribeChatConnection,
  useChatConnection,
} from '../../mainChatPanel/useChatConnection';
import { resetLastReceivedChatEventId } from '../../mainChatPanel/chatUtils';

export const chatConnectionGateway = {
  useConnection: useChatConnection,
  subscribe: subscribeChatConnection,
  getSnapshot: getChatConnectionSnapshot,
  getSharedRuntimeSnapshot: getSharedChatRuntimeSnapshot,
  setSharedRuntimeSnapshot: setSharedChatRuntimeSnapshot,
  resetLastReceivedEventId: resetLastReceivedChatEventId,
};
