import crypto from 'crypto';
import miniget from 'miniget';
import { KeyInfo } from './parser';
export default class KeyManager {
    private _keyCache;
    private _inflightKeys;
    private _requests;
    private _requestOptions?;
    private _forwardEvents?;
    constructor(requestOptions?: miniget.Options, forwardEvents?: (req: miniget.Stream) => void);
    getKey(keyUrl: string): Promise<Buffer>;
    getDecipher(key: KeyInfo | null | undefined, playlistURL: string, seq: number): Promise<crypto.Decipher | null>;
    clear(): void;
}
