/** * Utilities common to Olm encryption */ export declare enum EncryptionAlgorithmId { Olm = "r.olm.v1.curve25519-aes-sha2" } export declare enum GroupEncryptionAlgorithmId { GroupEncryption = "r.group-encryption.v1.aes-sha2", HybridGroupEncryption = "grpaes" } export declare function isGroupEncryptionAlgorithmId(value: string): value is GroupEncryptionAlgorithmId; type Matched = { kind: 'matched'; value: GroupEncryptionAlgorithmId; }; type Unrecognized = { kind: 'unrecognized'; value: string; }; export declare function parseGroupEncryptionAlgorithmId(value: string, defaultValue?: GroupEncryptionAlgorithmId): Matched | Unrecognized; export interface UserDevice { deviceKey: string; fallbackKey: string; } export interface UserDeviceCollection { [userId: string]: UserDevice[]; } export interface GroupEncryptionSession { streamId: string; sessionId: string; sessionKey: string; algorithm: GroupEncryptionAlgorithmId; } export {}; //# sourceMappingURL=olmLib.d.ts.map