UNPKG

livekit-client

Version:

JavaScript/TypeScript client SDK for LiveKit

34 lines 1.38 kB
import type Participant from '../room/participant/Participant'; import type { CryptorError } from './errors'; import type { KeyInfo } from './types'; export declare enum KeyProviderEvent { SetKey = "setKey", RatchetRequest = "ratchetRequest", KeyRatcheted = "keyRatcheted" } export type KeyProviderCallbacks = { [KeyProviderEvent.SetKey]: (keyInfo: KeyInfo) => void; [KeyProviderEvent.RatchetRequest]: (participantIdentity?: string, keyIndex?: number) => void; [KeyProviderEvent.KeyRatcheted]: (material: CryptoKey, keyIndex?: number) => void; }; export declare enum KeyHandlerEvent { KeyRatcheted = "keyRatcheted" } export type ParticipantKeyHandlerCallbacks = { [KeyHandlerEvent.KeyRatcheted]: (material: CryptoKey, participantIdentity: string, keyIndex?: number) => void; }; export declare enum EncryptionEvent { ParticipantEncryptionStatusChanged = "participantEncryptionStatusChanged", EncryptionError = "encryptionError" } export type E2EEManagerCallbacks = { [EncryptionEvent.ParticipantEncryptionStatusChanged]: (enabled: boolean, participant: Participant) => void; [EncryptionEvent.EncryptionError]: (error: Error) => void; }; export type CryptorCallbacks = { [CryptorEvent.Error]: (error: CryptorError) => void; }; export declare enum CryptorEvent { Error = "cryptorError" } //# sourceMappingURL=events.d.ts.map