import { Theme } from './createMuiTheme';
import { PropInjector } from '@material-ui/types';

export interface WithTheme {
  theme: Theme;
}

export interface ThemedComponentProps extends Partial<WithTheme> {
  innerRef?: React.Ref<any> | React.RefObject<any>;
}

declare const withTheme: PropInjector<WithTheme, ThemedComponentProps>;

export default withTheme;
