1 | import { Theme } from './createTheme';
|
2 | import { PropInjector } from '@material-ui/types';
|
3 |
|
4 | export interface WithTheme {
|
5 | theme: Theme;
|
6 | }
|
7 |
|
8 | export interface ThemedComponentProps extends Partial<WithTheme> {
|
9 | /**
|
10 | * Deprecated. Will be removed in v5. Refs are now automatically forwarded to
|
11 | * the inner component.
|
12 | * @deprecated since version 4.0
|
13 | */
|
14 | innerRef?: React.Ref<any>;
|
15 | ref?: React.Ref<unknown>;
|
16 | }
|
17 |
|
18 | declare const withTheme: PropInjector<WithTheme, ThemedComponentProps>;
|
19 |
|
20 | export default withTheme;
|