import type { OLM_ALGORITHM } from "../common"; export declare const enum OlmPayloadType { PreKey = 0, Normal = 1 } export type OlmMessage = { type?: OlmPayloadType; body?: string; }; export type OlmEncryptedMessageContent = { algorithm?: typeof OLM_ALGORITHM; sender_key?: string; ciphertext?: { [deviceCurve25519Key: string]: OlmMessage; }; }; export type OlmEncryptedEvent = { type?: "m.room.encrypted"; content?: OlmEncryptedMessageContent; sender?: string; }; export type OlmPayload = { type?: string; content?: Record; sender?: string; recipient?: string; recipient_keys?: { ed25519?: string; }; keys?: { ed25519?: string; }; };