UNPKG

sanka-baileyss

Version:

WhatsApp API Modification By Sanka_Vollerei

29 lines (25 loc) 1.08 kB
import { AxiosRequestConfig } from 'axios' import { proto } from '../../WAProto' import { Chat, Contact } from '../Types' export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification, options: AxiosRequestConfig<{}>) => Promise<proto.HistorySync> export declare const processHistoryMessage: (item: proto.IHistorySync) => { chats: Chat[] contacts: Array<Contact & { lid?: string jid?: string }> messages: proto.IWebMessageInfo[] syncType: proto.HistorySync.HistorySyncType progress: number | null | undefined } export declare const downloadAndProcessHistorySyncNotification: (msg: proto.Message.IHistorySyncNotification, options: AxiosRequestConfig<{}>) => Promise<{ chats: Chat[] contacts: Array<Contact & { lid?: string jid?: string }> messages: proto.IWebMessageInfo[] syncType: proto.HistorySync.HistorySyncType progress: number | null | undefined }> export declare const getHistoryMsg: (message: proto.IMessage) => proto.Message.IHistorySyncNotification | null | undefined