import { IDBPCursor, IDBPCursorWithValue, IDBPDatabase, IDBPIndex, IDBPObjectStore, IDBPTransaction } from './entry'; export declare const reverseTransformCache: WeakMap; export declare function replaceTraps(callback: (currentTraps: ProxyHandler) => ProxyHandler): void; /** * Enhance an IDB object with helpers. * * @param value The thing to enhance. */ export declare function wrap(value: IDBDatabase): IDBPDatabase; export declare function wrap(value: IDBIndex): IDBPIndex; export declare function wrap(value: IDBObjectStore): IDBPObjectStore; export declare function wrap(value: IDBTransaction): IDBPTransaction; export declare function wrap(value: IDBOpenDBRequest): Promise; export declare function wrap(value: IDBRequest): Promise; /** * Revert an enhanced IDB object to a plain old miserable IDB one. * * Will also revert a promise back to an IDBRequest. * * @param value The enhanced object to revert. */ interface Unwrap { (value: IDBPCursorWithValue): IDBCursorWithValue; (value: IDBPCursor): IDBCursor; (value: IDBPDatabase): IDBDatabase; (value: IDBPIndex): IDBIndex; (value: IDBPObjectStore): IDBObjectStore; (value: IDBPTransaction): IDBTransaction; (value: Promise>): IDBOpenDBRequest; (value: Promise): IDBOpenDBRequest; (value: Promise): IDBRequest; } export declare const unwrap: Unwrap; export {}; //# sourceMappingURL=wrap-idb-value.d.ts.map