import type { UppyFileId } from '@uppy/core/utils'; export declare const DB_NAME = "uppy-blobs"; export declare const METADATA_STORE_NAME = "metadata"; export declare function connect(dbName: string): Promise; export declare function waitForRequest(request: IDBRequest): Promise; type AddFilePayload = { id: UppyFileId; data: Blob; }; type IndexedDBStoredFile = { id: string; fileID: string; store: string; expires: number; data: Blob; }; type IndexedDBStoreOptions = { dbName?: string; storeName?: string; expires?: number; maxFileSize?: number; maxTotalSize?: number; }; declare class IndexedDBStore { #private; opts: Required; name: string; static isSupported: boolean; constructor(opts?: IndexedDBStoreOptions); get ready(): Promise; key(fileID: UppyFileId): string; /** * List all file blobs currently in the store. */ list(): Promise>; /** * Get one file blob from the store. */ get(fileID: string): Promise<{ id: string; data: Blob; }>; /** * Get the total size of all stored files. */ getSize(): Promise; /** * Save a file in the store. */ put(file: AddFilePayload): Promise; /** * Delete a file blob from the store. */ delete(fileID: UppyFileId): Promise; /** * Delete all stored blobs and recovery snapshots that have an expiry date * before Date.now(). This is a static method because it deletes expired data * from _all_ Uppy instances. */ static cleanup(): Promise; } export default IndexedDBStore; //# sourceMappingURL=IndexedDBStore.d.ts.map