export interface ThemesProps { [key: string]: any; } declare let getThemeUpdaters: (() => { updateAntdConfig: ((config: any) => void) | null; updateCssVariables: ((variables: Record) => void) | null; updateLocalConfig: ((config: any) => void) | null; }) | null; export declare const setThemeUpdatersGetter: (getter: typeof getThemeUpdaters) => void; export declare const getPendingThemes: () => ThemesProps | null; export declare const clearPendingThemes: () => void; /** * 将 kebab-case 的主题配置转换为 antd5 的 token 格式 * @param themes kebab-case 格式的主题配置 * @param themeMapping 自定义映射关系 */ export declare const convertToAntd5Tokens: (themes: ThemesProps, themeMapping?: ThemesProps) => { token: ThemesProps; }; /** * 设置主题变量 - antd5 兼容版本 * 设置 CSS 变量,并同步更新 Context 的 antdConfig * @param themes 主题配置对象,会自动过滤掉 antdConfig */ export declare const setThemes: (themes: ThemesProps) => boolean; /** * 获取 antd5 主题配置 * @param themes kebab-case 格式的主题配置 */ export declare const getAntd5ThemeConfig: (themes: ThemesProps) => { token: ThemesProps; }; /** JS实现驼峰命名与横线命名的转换 */ export declare const getKebabCase: (str: string) => string; /** JS实现对象驼峰命名与横线命名的转换 */ export declare const getMapKebabCase: (obj: any, prefix?: string) => { [k: string]: unknown; }; /** JS实现对象横线命名与驼峰命名的转换 */ export declare const getMapHumpCase: (obj?: {}) => {}; /** * 设置表格斑马纹 * @param stripe boolean */ export declare const setTableNoStripe: (stripe: boolean, prefixCls?: string) => void; /** * 设置表格边框 * @param border boolean */ export declare const setTableBorder: (border: boolean) => void; export {};