import { TabsState } from '../../../propTypes'; import { TabsCacheManager } from '../propTypes'; /** * 简化的标签页缓存管理器 */ declare class SimpleTabsCache implements TabsCacheManager { private cacheKey; private storage; constructor(keyPrefix: string, strategy: 'localStorage' | 'sessionStorage'); /** 保存标签页状态 */ save(state: TabsState): void; /** 恢复标签页状态 */ restore(): TabsState | null; /** 清空缓存 */ clear(): void; } interface UseTabsCacheOptions { cacheKey: string; storage: 'localStorage' | 'sessionStorage'; enabled?: boolean; } /** * 标签页缓存管理Hook */ export declare const useTabsCache: (options: UseTabsCacheOptions) => { saveToCache: (state: TabsState) => void; restoreFromCache: () => TabsState | null; clearCache: () => void; cacheManager: SimpleTabsCache; }; export {};