import { ConfigContext, ConfigProviderProps } from 'antd/lib/config-provider'; import { Theme } from 'antd/lib/config-provider/context'; import SizeContext from 'antd/lib/config-provider/SizeContext'; import React from 'react'; import { SwitchConfig } from './utils/themeSwitcher'; type ThemeType = 'dark' | 'light'; interface ConfigProviderExtraProps { theme?: ThemeType; themeSrc?: { dark?: string; light?: string; }; } type setGlobalConfig = ({ prefixCls, iconPrefixCls, theme, }: Pick & { theme?: Theme | undefined; }) => void; declare const ConfigProvider: React.FC & { ConfigContext: typeof ConfigContext; SizeContext: typeof SizeContext; config: setGlobalConfig; switchTheme: (config: SwitchConfig) => void; onThemeChange: (themeFn: (theme: any, themeName: ThemeType) => void) => MutationObserver; getTheme: () => [any, string]; }; export { ConfigProvider };