export interface MSMediaKeyNeededEvent extends Event { readonly initData: Uint8Array | null; } export interface MSGraphicsTrust { readonly constrictionActive: boolean; readonly status: string; } export interface MSMediaKeys { readonly keySystem: string; createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession; } export interface MSMediaKeySession extends EventTarget { readonly error: MSMediaKeyError | null; readonly keySystem: string; readonly sessionId: string; close(): void; update(key: Uint8Array): void; } export interface MSMediaKeyError { readonly code: number; readonly systemCode: number; readonly MS_MEDIA_KEYERR_CLIENT: number; readonly MS_MEDIA_KEYERR_DOMAIN: number; readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number; readonly MS_MEDIA_KEYERR_OUTPUT: number; readonly MS_MEDIA_KEYERR_SERVICE: number; readonly MS_MEDIA_KEYERR_UNKNOWN: number; }