import * as React from 'react'; import { ClassNameMap } from '@material-ui/styles'; import { Omit } from '@material-ui/types'; export interface StyledComponentProps { /** * Override or extend the styles applied to the component. */ classes?: Partial>; innerRef?: React.Ref; } /** * A component whose root component can be controlled via a `component` prop. * * Adjusts valid props based on the type of `component`. */ export interface OverridableComponent { (props: { component: C; } & OverrideProps): JSX.Element; (props: DefaultComponentProps): JSX.Element; } /** * Props of the component if `component={Component}` is used. */ export declare type OverrideProps = (BaseProps & Omit, keyof CommonProps>); /** * Props if `component={Component}` is NOT used. */ export declare type DefaultComponentProps = BaseProps & Omit, keyof BaseProps>; /** * Props defined on the component (+ common material-ui props). */ export declare type BaseProps = M['props'] & CommonProps; /** * Props that are valid for material-ui components. */ export interface CommonProps extends StyledComponentProps { className?: string; style?: React.CSSProperties; } export interface OverridableTypeMap { props: {}; defaultComponent: React.ElementType; classKey: string; } /** * @deprecated Not used in this library. */ export declare type Simplify = T extends any ? { [K in keyof T]: T[K]; } : never; /** * @deprecated Not used in this library. */ export declare type SimplifiedPropsOf = Simplify>;