@converse/headless
Version:
Converse.js Headless build
15 lines • 594 B
TypeScript
/**
* Dynamically imports libomemo.js (GPL-3.0 licensed).
* The dynamic import ensures the GPL code is only loaded
* when OMEMO encryption is actually used.
*
* The `webpackIgnore` magic comment prevents rspack from bundling
* or code-splitting libomemo.esm.js. It is served as a companion
* file alongside converse-headless.js and loaded at runtime.
*
* In test environments, window.libomemo is mocked and used directly.
*
* @returns {Promise<typeof import('libomemo.js')>}
*/
export function getCrypto(): Promise<typeof import("libomemo.js")>;
//# sourceMappingURL=crypto.d.ts.map