import { UITheme } from "./ui-theme.js"; import { ShallowRef } from "vue"; //#region src/theme/load-theme.d.ts declare const currentTheme: ShallowRef; declare function setTheme(mode: 'light' | 'dark' | 'auto'): void; /** * @description 加载主题, 如果你是 SSR 环境, * 请在 `onMounted` 中调用,否则你可以在 * 项目的入口环境(通常是 main.ts)或其他全局环境中调用。 * * 不传 `theme` 时注入内置 light/dark 变量(支持 `setTheme` 与系统暗色偏好)。 * 传入自定义 `UITheme` 时使用单次 `html { }` 注入。 */ declare function loadTheme(theme?: UITheme): void; //#endregion export { currentTheme, loadTheme, setTheme }; //# sourceMappingURL=load-theme.d.ts.map