/** * * @param className 类实例 * @returns */ declare function singleton(className: any): any; declare function deepMerge(target: any, source: any): any; declare function debounce(func: any, wait: any, immediate?: boolean): () => void; declare function throttle(func: any, limit: any): () => void; declare function throttleWithRAF(func: any): () => void; declare function createFooter(footer: any, showFooter?: boolean, showCopyRight?: boolean): void; declare function createPower(root: any, show?: boolean): void; declare function toast(msg: string, option: { type?: "info" | "success" | "warning" | "error"; time?: number; }): void; declare function hslToHex(h: any, s: any, l: any): string; declare function getCssVarHslAsHex(element: any, varName: any): string; declare function isCssStr(text: string): boolean; type ThemeOptions = { theme?: string; primaryColor: string; primaryContent?: string; secondaryColor?: string; secondaryContent?: string; accentColor?: string; accentContent?: string; neutralColor?: string; neutralContent?: string; base100?: string; base200?: string; base300?: string; baseContent?: string; info?: string; infoContent?: string; success?: string; successContent?: string; warning?: string; warningContent?: string; error?: string; errorContent?: string; }; declare function generateDaisyUITheme(options: ThemeOptions | ThemeOptions[]): string; /** * 手动添加一些 css 变量到 :root 中, 适配部分 UI 不在设计器内的情况: * 比如:右键菜单 * @param cssVar * @param value */ declare function addRootCssVar(): void; export { singleton, deepMerge, debounce, throttle, throttleWithRAF, createFooter, createPower, toast, hslToHex, getCssVarHslAsHex, isCssStr, generateDaisyUITheme, addRootCssVar, };