import type { M3u8Crypto } from '../types/m3u8.js'; /** 判断指定的加密方式是否支持整段解密 */ export declare function isWholeSegmentCrypto(method?: string): boolean; /** * 对分片数据进行解密。 * 仅 `AES-128` 走整段 CBC 解密;其它方式(如 SAMPLE-AES)原样返回。 * * 注意:解密失败会直接抛出错误,由上层(tsDownload)按分片下载失败处理并重试, * 而不是把解密失败的密文当作成功结果落盘。 */ export declare function decryptSegmentData(data: T, cryptoInfo?: M3u8Crypto): Buffer;