import React from 'react'; import { UpdateTheme, ReplaceTheme } from './ThemeProvider'; import { ThemeMode } from './theme'; import { Colors } from './colors'; export interface ThemedComponent { displayName: string; } interface ThemeProps { theme?: { colors: Colors; mode?: ThemeMode; } & T; updateTheme?: UpdateTheme; replaceTheme?: ReplaceTheme; } declare function withTheme

(WrappedComponent: React.ComponentType

>, themeKey?: string): React.FunctionComponent> | React.ForwardRefExoticComponent>>; export default withTheme;