export interface RTCEncryptedPacket { payload: Uint8Array; iv: Uint8Array; keyIndex: number; } export default class RTCDataPacketCryptor { _id: string; constructor(dataPacketCryptorId: string); encrypt(participantId: string, keyIndex: number, data: Uint8Array): Promise; decrypt(participantId: string, packet: RTCEncryptedPacket): Promise; dispose(): Promise; }