export default self;
declare const self: DownloadCenter;
declare class DownloadCenter {
    cacheCenter: Map<any, any>;
    setCache: (key: any, value: any) => void;
    setProgress: (key: any, percent: any, callback: any) => void;
    setPending: (key: any, promise: any) => void;
    removeProgressSub: (infos: any, fn: any) => void;
    removeSubscribeCallback: (callbacks: any, fn: any) => boolean;
    getOriginKey: ({ objectId, fileType, bucketId }: {
        objectId: any;
        fileType: any;
        bucketId: any;
    }) => any;
    getCompressKey: (infos: any) => string;
    getCompressImage(...args: any[]): Promise<any>;
    doGetCompressImageWeb(infos: any, callback: any): Promise<any>;
    doGetCompressImageNode(infos: any, callback: any): Promise<any>;
    downloadCompress(...args: any[]): Promise<any>;
    doDownloadCompressWeb(infos: any, callback: any): Promise<any>;
    doDownloadCompressNode(infos: any, callback: any): Promise<any>;
    downloadOrigin(...args: any[]): Promise<any>;
    downloadOriginWeb(infos: any, callback: any, checkCompress?: boolean, downloadOrigin?: boolean): Promise<any>;
    downloadOriginNode(infos: any, callback: any, checkCompress?: boolean, downloadOrigin?: boolean): Promise<any>;
    handleDownloadCompress(...args: any[]): Promise<any>;
    doHandleDownloadCompressWeb(infos: any): Promise<string | false | undefined>;
    doHandleDownloadCompressNode(infos: any): Promise<boolean>;
    handleOriginDownloadBuffer(infos: any): Promise<any>;
    handleOriginDownload(...args: any[]): Promise<any>;
    doHandleOriginDownloadWeb(infos: any): Promise<any>;
    doHandleOriginDownloadNode(infos: any, checkCompress: any, downloadOrigin: any): Promise<any>;
    updateCompressAfterOriginDownload(buf: any, infos: any): Promise<void>;
    clearCache(): void;
}
