import { Theme } from "./type.js"; //#region src/theme/ui-theme.d.ts type RecursivePartial = { [P in keyof T]?: T[P] extends object ? RecursivePartial : T[P]; }; /** 主题系列:浅色或深色。决定组件级 token 与 html[data-theme] */ type ThemeSeries = 'light' | 'dark'; interface UIThemeOptions { /** 主题变更时是否自动重渲染,默认 true */ reactive?: boolean; /** 主题所属系列,默认 'light' */ series?: ThemeSeries; } declare class UITheme { static themeID: string; private static adoptedSheet; readonly theme: Theme; /** 主题所属系列:浅色 / 深色 */ series: ThemeSeries; private readonly reactiveEnabled; constructor(theme: Theme, options?: UIThemeOptions); private renderBase; private renderBorder; private renderTypeColor; private renderShadow; private renderBGColorAlpha; /** 语义色 / 边框 / 阴影 / 文本色的 alpha token(替代 color-mix + transparent) */ private renderAlphaTokens; /** 组件级两色混合 token(batch-edit / kbd) */ private renderComponentMixTokens; private renderBGFilter; /** 主题变量声明列表,均为 `--u-` 前缀的 CSS 自定义属性 */ themeToDeclarationList(theme: Theme): string[]; private static declarationBlock; /** * nav 侧栏外观声明:按主题 `nav.variant`(默认 dark)取内置深/浅侧栏 token, * 主题 `nav` 的其余键作为 `--u-nav-*` 覆盖追加在最后(同规则后者生效)。 */ navSidebarDecls(theme: Theme): string[]; private static removeExistingStyleTag; private static applyGlobalCSS; /** 注入主题:全局 token + 与主题系列匹配的组件级 token + nav 侧栏外观,并写入 html[data-theme] */ render(): void; new(customTheme?: RecursivePartial, options?: { series?: ThemeSeries; }): UITheme; } //#endregion export { ThemeSeries, UITheme, UIThemeOptions }; //# sourceMappingURL=ui-theme.d.ts.map