import VolumeCache from './VolumeCache'; import { DicomVolumeMetadata } from '../DicomVolumeLoader'; /** * Volume Cache backed by IndexedDB, which means the cache data will be * saved to the local browser storage permanently. * The created cache will be injected to `RsVolumeLoader`. */ export default class IndexedDbVolumeCache implements VolumeCache { private _db; constructor(dbName: string); getMetadata(key: string): Promise; putMetadata(key: string, data: DicomVolumeMetadata): Promise; getVolume(key: string): Promise; putVolume(key: string, data: ArrayBuffer): Promise; }