UNPKG

tiny-crypto-suite

Version:

Tiny tools, big crypto — seamless encryption and certificate handling for modern web and Node apps.

20 lines 728 B
export default tinyOlm; declare const tinyOlm: TinyOlmModule; declare class TinyOlmModule { Olm: typeof import("@matrix-org/olm") | null; /** * Dynamically imports the `@matrix-org/olm` module and stores it in the instance. * Ensures the module is loaded only once (lazy singleton). * * @returns {Promise<Olm>} The loaded `@matrix-org/olm` module. */ fetchOlm(): Promise<typeof import("@matrix-org/olm")>; /** * Returns the previously loaded `@matrix-org/olm` instance. * Assumes the module has already been loaded. * * @returns {Olm} The `@matrix-org/olm` module. */ getOlm(): typeof import("@matrix-org/olm"); } //# sourceMappingURL=TinyOlmModule.d.mts.map