/** * Opens an IndexedDB database with the given name and calls the upgradeNeeded callback if the database needs to be created or upgraded. * @param name The name of the database to open * @param upgradeNeeded The callback to call if the database needs to be created or upgraded */ export declare function openIndexDB(name: string, upgradeNeeded: (database: IDBDatabase) => void): Promise; /** * Gets a value from the database for the given store and key. * @param database defines the database to get the value from * @param storeName defines the name of the store to get the value from * @param key defines the key of the value to get */ export declare function getFromIndexDB(database: IDBDatabase, storeName: string, key: string): Promise; /** * Puts a value in the database for the given store and key. * @param database defines the database to put the value in * @param storeName defines the name of the store to put the value in * @param data defines the value to put in the database */ export declare function putInIndexDB(database: IDBDatabase, storeName: string, data: T): Promise;