import type { ComputedRef, InjectionKey, Ref } from 'vue'; import type { ProLayoutThemeConfig } from './types'; export interface ProLayoutContext { themeConfig: Ref; openSettingsDrawer: () => void; closeSettingsDrawer: () => void; /** 页签栏是否启用 keep-alive(与 tagsViewKeepAlive prop 联动) */ tagsViewKeepAlive?: ComputedRef; /** 页签刷新版本号(key 为 route cache key,用于 ProLayoutRouterView 强制重挂载) */ routeRefreshVersions?: Ref>; /** 使指定 route cache key 的页面缓存失效并重新挂载 */ refreshRouteCache?: (cacheKey: string) => void; } export declare const proLayoutContextKey: InjectionKey;