/** * window.localStorage 浏览器永久缓存 * @method set 设置永久缓存 * @method get 获取永久缓存 * @method remove 移除永久缓存 * @method clear 移除全部永久缓存 */ export declare const Local: { /**设置永久缓存 */ set(key: string, val: any): void; /**获取永久缓存 */ get(key: string): any; /**移除永久缓存 */ remove(key: string): void; /**移除全部永久缓存 */ clear(): void; }; /** * window.sessionStorage 浏览器临时缓存 * @method set 设置临时缓存 * @method get 获取临时缓存 * @method remove 移除临时缓存 * @method clear 移除全部临时缓存 */ export declare const Session: { set(key: string, val: any): string; get(key: string): any; remove(key: string): void; clear(): void; }; /** * window.indexedDB 浏览器永久存储 相当于磁盘大小 * @method set 设置永久存储 * @method get 获取永久存储 * @method remove 移除永久存储 * @method clear 移除全部永久存储 */ export declare const LoacalDB: { set(key: string, val: any): void; get(key: string, callData: (v?: any) => void): void; remove(key: string): void; clear(): void; };