export type StorageType = 'localStorage' | 'sessionStorage' | 'indexedDB'; /** v4 默认列缓存存储类型 */ export declare const baseStorage: StorageType; /** 单条列缓存条目结构 */ export interface ColumnCacheEntry { startTime?: number; columns?: any[]; [key: string]: any; } /** * 同步读取列缓存 * - localStorage / sessionStorage:直接同步读 * - indexedDB:仅命中内存缓存时同步返回,否则 undefined(业务侧需异步兜底) */ export declare function getColumnCacheSync(storage: StorageType, pathKey: string): ColumnCacheEntry | undefined; /** * 读取列缓存 * - localStorage / sessionStorage:同步返回 * - indexedDB:返回 Promise;命中内存缓存时同样走 Promise(保持调用侧一致) */ export declare function getColumnCache(storage: StorageType, pathKey: string): ColumnCacheEntry | undefined | Promise; /** * 写入列缓存 * - localStorage / sessionStorage:同步写 * - indexedDB:同步预热内存缓存 + 异步持久化(返回 Promise) */ export declare function setColumnCache(storage: StorageType, pathKey: string, value: ColumnCacheEntry): void | Promise; /** * 删除列缓存 */ export declare function removeColumnCache(storage: StorageType, pathKey: string): void | Promise; /** * 仅供测试:重置内存缓存与 IndexedDB 可用性探测结果 */ export declare function __resetColumnCacheForTest(): void;