cloudku-baileys
Version:
WhatsApp API Modification By AlfiDev
26 lines (22 loc) • 621 B
TypeScript
import { USyncQueryProtocol } from '../../Types/USync'
import { BinaryNode } from '../../WABinary'
export type KeyIndexData = {
timestamp: number
signedKeyIndex?: Uint8Array
expectedTimestamp?: number
}
export type DeviceListData = {
id: number
keyIndex?: number
isHosted?: boolean
}
export type ParsedDeviceInfo = {
deviceList?: DeviceListData[]
keyIndex?: KeyIndexData
}
export declare class USyncDeviceProtocol implements USyncQueryProtocol {
name: string
getQueryElement(): BinaryNode
getUserElement(): BinaryNode | null
parser(node: BinaryNode): ParsedDeviceInfo
}