/** * Possible encryption status values for a peer. * - 'unknown': Peer status not yet determined (no communication yet) * - 'unencrypted': Peer is not using encryption * - 'encrypted': Peer is using encryption with a matching password * - 'password_mismatch': Peer is encrypted but password doesn't match */ export type OdinCryptoPeerStatus = 'unknown' | 'unencrypted' | 'encrypted' | 'password_mismatch'; export declare class OdinCipher { /** * Creates a new OdinCipher instance with default version. */ constructor(); /** * Sets the encryption password for end-to-end encryption. * All audio and messages will be encrypted using this password. * @param password - The password as a byte array. */ setPassword(password: Uint8Array): void; /** * Gets the encryption status of a specific peer. * Useful for verifying that E2EE is working correctly with each peer. * * @param peerId - The peer ID to check status for. * @returns The encryption status of the peer. */ getPeerStatus(peerId: number): OdinCryptoPeerStatus; }