import ExcalidrawPlugin from "src/main"; import { PreviewImageType } from "./UtilTypes"; type BackupData = string; export type ImageKey = { filepath: string; blockref: string; sectionref: string; isDark: boolean; previewImageType: PreviewImageType; scale: number; }; declare class ImageCache { private dbName; private cacheStoreName; private backupStoreName; private db; private isInitializing; plugin: ExcalidrawPlugin; initializationNotice: boolean; private obsidanURLCache; constructor(dbName: string, cacheStoreName: string, backupStoreName: string); private initializeDB; private purgeInvalidCacheFiles; private purgeInvalidBackupFiles; private getObjectStore; private getCacheData; private getBackupData; isReady(): boolean; getImageFromCache(key_: ImageKey): Promise; getBAKFromCache(filepath: string): Promise; addImageToCache(key_: ImageKey, obsidianURL: string, image: Blob | SVGSVGElement): void; addBAKToCache(filepath: string, data: BackupData): Promise; clearImageCache(): Promise; clearBackupCache(): Promise; private clear; } export declare const imageCache: ImageCache; export {};