import { Long } from 'bson'; import { Chatlog } from './chat'; /** * Update or add chat to store */ export interface ChatListUpdater { /** * Push chat * @param chat */ addChat(...chat: Chatlog[]): Promise; /** * Update existing chat * @param logId * @param chat */ updateChat(logId: Long, chat: Partial): Promise; /** * Remove chat * @param logId */ removeChat(logId: Long): Promise; }