import type { InjectionKey, Ref } from 'vue'; import type { YunzaiCacheService } from './cache.service'; export interface ICache { v: any; /** 过期时间戳,`0` 表示不过期 */ e: number; } export interface ICacheStore { get(key: string): ICache | null; set(key: string, value: ICache): boolean; remove(key: string): void; } export declare type CacheNotifyType = 'set' | 'remove' | 'expire'; export interface CacheNotifyResult { type: CacheNotifyType; value?: any; } export declare const Y_ICACHE_STORE: InjectionKey>; export declare const Y_CACHE_SERVICE: InjectionKey>;