import {FunctionComponent, ReactNode} from 'react' export interface SysDefaultToken { colorSysPage: string colorSysBrand: string colorSysMo: string colorSysBlue: string colorSysOrange: string colorSysPink: string colorSysIndigo: string colorSysPurple: string colorSysTealblue: string colorSysYellow: string colorSysGreen: string colorSysRed: string colorSysGray: string colorBackPrimary: string colorBackSecondary: string colorBackTertiary: string colorBackQuarternary: string colorLabelPrimary: string colorLabelSecondary: string colorLabelTertiary: string colorLabelQuarternary: string colorLabelLink: string colorLabelError: string colorFillPrimary: string colorFillSecondary: string colorFillTertiary: string colorFillQuarternary: string colorFillNonopasep: string colorFillOpasep: string opacityActive: number opacityDisable: number } export interface CompDefaultToken { pageBackgroundColor: string uploaderBackgroundColor: string uploaderBackgroundColorDisabledOpacity: number uploaderTextColor: string uploaderMaskBackgroundColor: string uploaderMaskTextColor: string uploaderPhotoIconColor: string uploaderCloseIconColor: string uploaderMaskFailIconColor: string uploaderMaskLoadingIconColor: string textareaBackgroundColor: string textareaTextColor: string textareaCloseIconColor: string textareaTextPlaceholderColor: string textareaCountColor: string textareaCountErrorColor: string tabsBackgroundColor: string tabsViewColor: string tabsSelectedViewColor: string tabsLineColor: string switchActiveColor: string switchInactiveColor: string switchColor: string switchDisabledColor: string inputBackgroundColor: string inputTextColor: string inputCloseIconColor: string inputTextPlaceholderColor: string searchBackgroundColor: string searchTextColor: string searchCloseIconColor: string searchTextPlaceholderColor: string searchIconColor: string searchButtonColor: string loadingColor: string emptyColor: string cardColor: string cardRequireColor: string cardArrowRightIconColor: string cardBorderBottomColor: string panelBackgroundColor: string popupBackgroundColor: string popupCancelColor: string popupTitleColor: string popupConfirmColor: string cascaderClearColor: string cascaderViewColor: string cascaderSelectedViewColor: string cascaderDisabledViewColor: string popupCenterBackgroundColor: string popupCenterCloseColor: string iconColor: string buttonDefaultBackgroundColor: string buttonDefaultTextColor: string buttonPrimaryBackgroundColor: string buttonPrimaryTextColor: string buttonInfoBackgroundColor: string buttonInfoTextColor: string buttonWarningBackgroundColor: string buttonWarningTextColor: string buttonDangerBackgroundColor: string buttonDangerTextColor: string pickerViewMaskBackgroundColor: string pickerViewClearColor: string pickerViewSelectedViewColor: string pickerViewSelectedViewBorderColor: string } export type BaseTheme = SysDefaultToken & CompDefaultToken type SysDefaultTheme = { [K in keyof SysDefaultToken]: { dark: SysDefaultToken[K] light: SysDefaultToken[K] } } type CompDefaultTheme = { [K in keyof CompDefaultToken]: { dark: CompDefaultToken[K] light: CompDefaultToken[K] } } export interface ThemeConfig { dark?: boolean updateSysTheme?: (sysDefaultTheme: SysDefaultTheme) => SysDefaultTheme updateCompTheme?: ( sysDefaultTheme: SysDefaultTheme, compDefaultTheme: CompDefaultTheme, ) => CompDefaultTheme } export interface ConfigProviderProps { theme: ThemeConfig children: ReactNode } declare const ConfigProvider: FunctionComponent export {ConfigProvider}