import type { IConfigCatCache } from "../ConfigCatCache.js"; type DBConnectionFactory = () => Promise; interface IIndexedDBDatabase { transaction(storeNames: string | string[], mode: "readonly" | "readwrite"): IIndexedDBTransaction; close(): void; } interface IIndexedDBTransaction { oncomplete: ((ev: any) => any) | null; onerror: ((ev: any) => any) | null; objectStore(name: string): IIndexedDBObjectStore; } interface IIndexedDBObjectStore { get(query: string): IIndexedDBRequest; put(value: any, key: string): IIndexedDBRequest; } interface IIndexedDBRequest { readonly result: T; readonly error: Error | null; onsuccess: ((ev: any) => any) | null; } export declare class IndexedDBConfigCache implements IConfigCatCache { private readonly dbConnectionFactory; private static tryGetFactory; constructor(dbConnectionFactory: DBConnectionFactory); set(key: string, value: string): Promise; get(key: string): Promise; } export declare function getDBConnectionFactory(): DBConnectionFactory | undefined; export {};