/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net */ /** * @module storage */ import type { IAsyncStorage, StorageValueType } from "../../../types/index"; /** * Persistent storage using IndexedDB */ export declare class IndexedDBProvider implements IAsyncStorage { readonly dbName: string; private dbPromise; private readonly DB_VERSION; private readonly storeName; constructor(dbName?: string, storeName?: string); /** * Initialize or get the database connection */ private getDB; /** * Perform a transaction on the store */ private performTransaction; set(key: string, value: T): Promise; delete(key: string): Promise; get(key: string): Promise; exists(key: string): Promise; clear(): Promise; /** * Close the database connection */ close(): Promise; /** * Get all keys in the store */ keys(): Promise; /** * Get all values in the store */ values(): Promise; /** * Get all entries (key-value pairs) in the store */ entries(): Promise>; } export declare function clearUseIndexedDBCache(): void; /** * Check if IndexedDB is available */ export declare function canUseIndexedDB(): Promise;