export type DecryptOptions = {
    enable: boolean;
    url: {
        keyPath: string;
        licensePage: string;
    };
};
export default class Decrypt {
    private buffer;
    private date;
    private loading;
    private queue;
    private config;
    constructor(config: DecryptOptions);
    get enable(): boolean;
    private get decryptBuffer();
    bufferToString(buffer: ArrayBuffer): string;
    /**
     * 字符串转 Unit8Array
     * @param str
     * @private
     */
    stringToArrayBuffer(str: string): Uint8Array;
    /**
     * 加载解密 key
     * @private
     */
    private loadDecryptKey;
    /**
     * 解密
     * @param fileBytes
     * @param length
     * @returns
     */
    parser(fileBytes: Uint8Array, length?: number): Promise<ArrayBuffer>;
}
