import { ICloudbasePlatformInfo, KV, ICloudbaseConfig } from '.' export type ICacheConfig = Pick < ICloudbaseConfig, 'debug' | 'persistence' > & { platformInfo?: ICloudbasePlatformInfo; keys?: KV; alwaysLocalKeys?: string[]; }; export interface ICloudbaseCache { keys: KV; mode: 'async' | 'sync'; setStore: (key: string, value: any, version?: string) => void; setStoreAsync: (key: string, value: any, version?: string) => Promise; getStore: (key: string, version?: string) => any; getStoreAsync: (key: string, version?: string) => Promise; removeStore: (key: string) => void; removeStoreAsync: (key: string) => Promise; updatePersistence?: (persistence: string) => void; updatePersistenceAsync?: (persistence: string) => Promise; clear?: () => void; }