import { ComputedRef } from 'vue'; import { Store } from 'pinia'; export { fontSizePresets, type FontSizePreset, fontFamilyPresets, type FontFamilyPreset } from '../../stores/theme'; export declare function useTheme(): { fontSize: ComputedRef; fontSizeClass: ComputedRef; setFontSize: (size: string) => void; fontFamily: ComputedRef; fontFamilyClass: ComputedRef; setFontFamily: (font: string) => void; store: Store<"theme", { fontSize: string; fontFamily: string; }, {}, { setFontSize(size: string): void; setFontFamily(font: string): void; }>; }; /** * 首次打开小程序时,初始化默认的主题配色 * @param defaultTheme 默认主题 ID,默认为 "mono-theme" */ export declare function initTheme(defaultTheme?: string): void;