UNPKG

@dapplets/dapplet-extension

Version:
19 lines (18 loc) 719 B
import { StorageTypes } from '../../common/constants'; import { StorageRef } from '../../common/types'; import GlobalConfigService from '../services/globalConfigService'; export declare class StorageAggregator { private _globalConfigService; private _fileBrowserStorage; constructor(_globalConfigService: GlobalConfigService); getResource(hashUris: StorageRef): Promise<ArrayBuffer>; save(blob: Blob, targetStorages: StorageTypes[]): Promise<StorageRef>; saveDir(files: { url: string; arr: ArrayBuffer; }[], targetStorages: StorageTypes[]): Promise<StorageRef>; private _checkHash; private _getStorageByProtocol; private _getStorageByType; private _tarify; }