export default Drm; /** * @class Drm */ declare class Drm { /** * Build the keySystems object according to the DRM vendor. * * @param {Array.} drmList The DRM list from the media composition. * * @returns {import('./typedef').KeySystems} The resulting keySystems. */ static buildKeySystems(drmList?: Array): import("./typedef").KeySystems; /** * Builds the configuration for Apple FairPlay. * * @param {import('../dataProvider/model/typedef').DrmMetadata} drmVendor the DRM metadata for FairPlay * * @returns {import('./typedef').KeySystemConfiguration} the FairPlay configuration */ static buildFairplayConfig(drmVendor: import("../dataProvider/model/typedef").DrmMetadata): import("./typedef").KeySystemConfiguration; /** * Fetch a DRM license from a license server. * * _If required this logic can also be used for widevine/playready_ * * @param {string} url the license server URL * @param {ArrayBuffer} keyMessage the challenge generated by the browser's CDM * @param {(function(Error|null, ArrayBuffer):void)} callback the callback provided by videojs-contrib-eme receives (err, key) * @see https://github.com/videojs/videojs-contrib-eme/tree/main?tab=readme-ov-file#get-certificatecontent-idlicense-by-functions */ static requestLicense(url: string, keyMessage: ArrayBuffer, callback: ((arg0: Error | null, arg1: ArrayBuffer) => void)): Promise; /** * Parses the error response from the license server. * * @param {Response} response the fetch response object * * @returns {Promise} the formatted error message */ static parseLicenseError(response: Response): Promise; /** * Check if some of the resources have DRM. * * @param {Array.} resources * * @returns {boolean} true if some of the resources have DRM, false otherwise. */ static hasDrm(resources: Array): boolean; /** * Get DRM vendors. */ static get vendors(): { WIDEVINE: string; FAIRPLAY: string; PLAYREADY: string; }; } //# sourceMappingURL=Drm.d.ts.map