UNPKG

@whiskeysockets/baileys

Version:

A WebSockets library for interacting with WhatsApp Web

29 lines (28 loc) 880 B
import { USyncQueryProtocol } from '../Types/USync'; import { BinaryNode } from '../WABinary'; import { USyncUser } from './USyncUser'; export type USyncQueryResultList = { [protocol: string]: unknown; id: string; }; export type USyncQueryResult = { list: USyncQueryResultList[]; sideList: USyncQueryResultList[]; }; export declare class USyncQuery { protocols: USyncQueryProtocol[]; users: USyncUser[]; context: string; mode: string; constructor(); withMode(mode: string): this; withContext(context: string): this; withUser(user: USyncUser): this; parseUSyncQueryResult(result: BinaryNode): USyncQueryResult | undefined; withDeviceProtocol(): this; withContactProtocol(): this; withStatusProtocol(): this; withDisappearingModeProtocol(): this; withBotProfileProtocol(): this; withLIDProtocol(): this; }