This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@whiskeysockets/baileys/lib/Utils/signal.d.ts
T

34 lines
1.7 KiB
TypeScript

import type { SignalRepositoryWithLIDStore } from '../Types/index.js';
import type { AuthenticationCreds, AuthenticationState, KeyPair, SignalIdentity, SignalKeyStore, SignedKeyPair } from '../Types/Auth.js';
import { type BinaryNode, type FullJid } from '../WABinary/index.js';
import type { USyncQueryResultList } from '../WAUSync/index.js';
export declare const createSignalIdentity: (wid: string, accountSignatureKey: Uint8Array) => SignalIdentity;
export declare const getPreKeys: ({ get }: SignalKeyStore, min: number, limit: number) => Promise<{
[id: string]: KeyPair;
}>;
export declare const generateOrGetPreKeys: (creds: AuthenticationCreds, range: number) => {
newPreKeys: {
[id: number]: KeyPair;
};
lastPreKeyId: number;
preKeysRange: readonly [number, number];
};
export declare const xmppSignedPreKey: (key: SignedKeyPair) => BinaryNode;
export declare const xmppPreKey: (pair: KeyPair, id: number) => BinaryNode;
export declare const parseAndInjectE2ESessions: (node: BinaryNode, repository: SignalRepositoryWithLIDStore) => Promise<void>;
export declare const extractDeviceJids: (result: USyncQueryResultList[], myJid: string, myLid: string, excludeZeroDevices: boolean) => FullJid[];
/**
* get the next N keys for upload or processing
* @param count number of pre-keys to get or generate
*/
export declare const getNextPreKeys: ({ creds, keys }: AuthenticationState, count: number) => Promise<{
update: Partial<AuthenticationCreds>;
preKeys: {
[id: string]: KeyPair;
};
}>;
export declare const getNextPreKeysNode: (state: AuthenticationState, count: number) => Promise<{
update: Partial<AuthenticationCreds>;
node: BinaryNode;
}>;
//# sourceMappingURL=signal.d.ts.map