converse.js
Version:
Browser based XMPP chat client
27 lines • 994 B
TypeScript
export default Device;
declare class Device extends Model {
defaults(): {
trusted: number;
active: boolean;
};
/**
* @returns {import('./types').PreKey}
*/
getRandomPreKey(): import("./types").PreKey;
/**
* Fetch the device's OMEMO bundle from the server.
* A bundle is a collection of publicly accessible data that can
* be used to build a session with a device, namely its public IdentityKey,
* a signed PreKey with corresponding signature, and a list of (single use) PreKeys.
* @returns {Promise<import('./types').Bundle>}
*/
fetchBundleFromServer(): Promise<import("./types").Bundle>;
/**
* Fetch and save the bundle information associated with
* this device, if the information is not cached already.
* @returns {Promise<import('./types').Bundle>}
*/
getBundle(): Promise<import("./types").Bundle>;
}
import { Model } from "@converse/skeletor";
//# sourceMappingURL=device.d.ts.map