import { I18nBundlesNames, LocaleContextValue, CustomI18nBundles, LanguageType } from '@/provider/contexts/locale-context'; import { ThemeContextValue, ThemeType } from '@/provider/contexts/theme-context'; import * as React from 'react'; export type GlobalConfig = LocaleContextValue & ThemeContextValue; export declare const GlobalConfigProvider: React.FC<{ theme?: ThemeType; language?: LanguageType; i18nBundles?: CustomI18nBundles; }>; interface GlobalConfigOptions { /** * 使用的 i18nBundle 名称 */ i18nBundleName?: I18nBundlesNames; } interface GlobalHocOption extends GlobalConfigOptions { /** * 转换函数 */ transform?: (props: any) => any; } export declare const useGlobal: (options?: GlobalConfigOptions) => any; export declare function withGlobal(ReactComp: React.ComponentType>, options?: GlobalHocOption): React.ForwardRefExoticComponent & React.RefAttributes>; export declare function withBizGlobal(ReactComp: React.ComponentType>, options?: { i18nBundles: any; }): React.ForwardRefExoticComponent & React.RefAttributes>; export {};