UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

12 lines (11 loc) 948 B
import { proto } from '../../Connection/enc'; import type { AuthenticationCreds, SignalCreds, SocketConfig } from '../../Models'; import { BinaryNode } from '../../Internal'; export declare const generateMobileNode: (config: SocketConfig) => proto.IClientPayload; export declare const generateLoginNode: (userJid: string, config: SocketConfig) => proto.IClientPayload; export declare const generateRegistrationNode: ({ registrationId, signedPreKey, signedIdentityKey }: SignalCreds, config: SocketConfig) => proto.ClientPayload; export declare const configureSuccessfulPairing: (stanza: BinaryNode, { advSecretKey, signedIdentityKey, signalIdentities }: Pick<AuthenticationCreds, 'advSecretKey' | 'signedIdentityKey' | 'signalIdentities'>) => { creds: Partial<AuthenticationCreds>; reply: BinaryNode; }; export declare const encodeSignedDeviceIdentity: (account: proto.IADVSignedDeviceIdentity, includeSignatureKey: boolean) => Uint8Array;