Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/validate-connection.d.ts
1129 views
1
import { proto } from '../../WAProto';
2
import type { AuthenticationCreds, SignalCreds, SocketConfig } from '../Types';
3
import { BinaryNode } from '../WABinary';
4
declare type ClientPayloadConfig = Pick<SocketConfig, 'version' | 'browser' | 'syncFullHistory'>;
5
export declare const generateLoginNode: (userJid: string, config: ClientPayloadConfig) => proto.IClientPayload;
6
export declare const generateRegistrationNode: ({ registrationId, signedPreKey, signedIdentityKey }: SignalCreds, config: ClientPayloadConfig) => proto.ClientPayload;
7
export declare const configureSuccessfulPairing: (stanza: BinaryNode, { advSecretKey, signedIdentityKey, signalIdentities }: Pick<AuthenticationCreds, 'advSecretKey' | 'signedIdentityKey' | 'signalIdentities'>) => {
8
creds: Partial<AuthenticationCreds>;
9
reply: BinaryNode;
10
};
11
export declare const encodeSignedDeviceIdentity: (account: proto.IADVSignedDeviceIdentity, includeSignatureKey: boolean) => Uint8Array;
12
export {};
13
14