Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/history.d.ts
1129 views
import { proto } from '../../WAProto';1import { Chat, Contact, InitialReceivedChatsState } from '../Types';2export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification) => Promise<proto.HistorySync>;3export declare const processHistoryMessage: (item: proto.IHistorySync, historyCache: Set<string>, recvChats: InitialReceivedChatsState) => {4chats: Chat[];5contacts: Contact[];6messages: proto.IWebMessageInfo[];7didProcess: boolean;8};9export declare const downloadAndProcessHistorySyncNotification: (msg: proto.Message.IHistorySyncNotification, historyCache: Set<string>, recvChats: InitialReceivedChatsState) => Promise<{10chats: Chat[];11contacts: Contact[];12messages: proto.IWebMessageInfo[];13didProcess: boolean;14}>;15export declare const isHistoryMsg: (message: proto.IMessage) => boolean;161718