@whiskeysockets/baileys
Version:
A WebSockets library for interacting with WhatsApp Web
24 lines • 1.28 kB
TypeScript
import { proto } from '../../WAProto/index.js';
import type { Chat, Contact, LIDMapping, WAMessage } from '../Types/index.js';
import type { ILogger } from './logger.js';
export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification, options: RequestInit) => Promise<proto.HistorySync>;
export declare const processHistoryMessage: (item: proto.IHistorySync, logger?: ILogger) => {
chats: Chat[];
contacts: Contact[];
messages: WAMessage[];
lidPnMappings: LIDMapping[];
pastParticipants: proto.IPastParticipants[] | null | undefined;
syncType: proto.HistorySync.HistorySyncType | null | undefined;
progress: number | null | undefined;
};
export declare const downloadAndProcessHistorySyncNotification: (msg: proto.Message.IHistorySyncNotification, options: RequestInit, logger?: ILogger) => Promise<{
chats: Chat[];
contacts: Contact[];
messages: WAMessage[];
lidPnMappings: LIDMapping[];
pastParticipants: proto.IPastParticipants[] | null | undefined;
syncType: proto.HistorySync.HistorySyncType | null | undefined;
progress: number | null | undefined;
}>;
export declare const getHistoryMsg: (message: proto.IMessage) => proto.Message.IHistorySyncNotification;
//# sourceMappingURL=history.d.ts.map