import type { ProLayoutGlobalColors, ProLayoutMode, ProLayoutThemeConfig, ProLayoutThemeTokens } from './types'; export { DEFAULT_PRO_LAYOUT_GLOBAL_COLORS, PRO_LAYOUT_COLOR_SETTING_GROUPS } from './proLayoutGlobalColors'; export type { ProLayoutColorSettingGroup, ProLayoutColorSettingItem } from './proLayoutGlobalColors'; export declare const DEFAULT_PRO_LAYOUT_THEME_TOKENS: Required; export declare const DEFAULT_PRO_LAYOUT_THEME_CONFIG: ProLayoutThemeConfig; /** 将 hex / rgb / rgba 转为 #rrggbb,供主色衍生计算 */ export declare function normalizeColorToHex(color: string): string | null; export declare function getLightColor(color: string, level: number): string; export declare function getDarkColor(color: string, level: number): string; export interface BuildInitialProLayoutThemeOptions { themePersist: boolean; persistKey: string; layoutMode?: ProLayoutMode | string; theme?: ProLayoutThemeConfig | null; } /** 初始化主题:开启持久化且 localStorage 有值时,以已保存配置为准(不被 layoutMode 等 props 覆盖) */ export declare function buildInitialProLayoutThemeConfig(options: BuildInitialProLayoutThemeOptions): ProLayoutThemeConfig; /** 序列化为可 JSON 存储的纯对象(避免 Vue 响应式代理导致写入异常) */ export declare function cloneProLayoutThemeConfig(config: ProLayoutThemeConfig): ProLayoutThemeConfig; export declare function mergeProLayoutTheme(base: ProLayoutThemeConfig, patch?: ProLayoutThemeConfig | null): ProLayoutThemeConfig; /** 主色联动:生成 Element primary 色阶与布局 accent 衍生色 */ export declare function applyPrimaryColorDerivatives(primary: string, target?: HTMLElement): void; /** 将全局 CSS 变量写入 document(或指定节点) */ export declare function applyProLayoutGlobalColors(colors?: ProLayoutGlobalColors | null, target?: HTMLElement | null): void; /** 将主题令牌写入布局根节点(仅影响该 ProLayout 实例) */ export declare function applyProLayoutThemeToElement(el: HTMLElement | null | undefined, tokens?: ProLayoutThemeTokens | null): void; export declare function readPersistedProLayoutTheme(key: string): ProLayoutThemeConfig | null; export declare function persistProLayoutTheme(key: string, config: ProLayoutThemeConfig): void; export declare function clearPersistedProLayoutTheme(key: string): void;