export interface CacheStoreInterface { getItem: (code: string, that: CacheBaseStore) => any; setItem: (code: string, data: any, that: CacheBaseStore) => void; removeItem: (code: string, that: CacheBaseStore) => void; mergeSetItem?: (pageKey: string, data: any, that: CacheBaseStore) => void; clear: () => void; [propsName: string]: any; } interface CacheBaseStoreConfigProps { openProjectPrefix?: boolean; /** 是否启用项目前缀 */ } /** * 缓存store */ declare class CacheBaseStore implements CacheStoreInterface { cacheStore: CacheStoreInterface; openProjectPrefix: boolean; [propsName: string]: any; get prefix(): string; get projectId(): any; overwrite(Property: string, value: any): CacheBaseStore; project(projectId?: string): CacheBaseStore; unPrefix(): CacheBaseStore; constructor(cacheStore: CacheStoreInterface, config?: CacheBaseStoreConfigProps); getItem(code: T): any; setItem(code: T, data: any): void; removeItem(code: T): void; remove(code: T): void; mergeSetItem(pageKey: string, data: any): void; has(code: any): any; clear(): void; } export default CacheBaseStore;