import { Long } from 'bson' ; import { Chatlog } from './chat' ; import { ChatListUpdater } from './updater' ; /**
 * Store chats
 */ export interface ChatStore { /**
     * Get latest chatlog
     */ last ( ) : Promise < Chatlog | undefined > ; param logId get ( logId ) : Promise < Chatlog | undefined > ; param logId param maxCount before ( logId , maxCount ? ) : AsyncIterableIterator < Chatlog > ; param time since ( time ) : AsyncIterableIterator < Chatlog > ; /**
     * Iterate every chat
     */ all ( ) : AsyncIterableIterator < Chatlog > ; } export interface UpdatableChatListStore extends ChatStore , ChatListUpdater { }