mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 00:56:23 +00:00
27 lines
672 B
TypeScript
27 lines
672 B
TypeScript
declare const _exports: BrowserCache;
|
|
export = _exports;
|
|
declare class BrowserCache {
|
|
_db: Promise<import("idb").IDBPDatabase<unknown>>;
|
|
/**
|
|
* @param {string} key
|
|
* @returns {Promise<ArrayBuffer>}
|
|
*/
|
|
read(key: string): Promise<ArrayBuffer>;
|
|
/**
|
|
* @param {string} key
|
|
* @param {ArrayBuffer} data
|
|
* @returns {Promise<void>}
|
|
*/
|
|
write(key: string, data: ArrayBuffer): Promise<void>;
|
|
/**
|
|
* @param {string} key
|
|
* @returns {Promise<boolean>}
|
|
*/
|
|
exists(key: string): Promise<boolean>;
|
|
/**
|
|
* @param {string} key
|
|
* @returns {Promise<void>}
|
|
*/
|
|
remove(key: string): Promise<void>;
|
|
}
|