import * as React from 'react'; declare module '@mui/types' { /** * A component whose root component can be controlled via a `component` prop. * * Adjusts valid props based on the type of `component`. */ interface OverridableComponent { ( props: { /** * The component used for the root node. * Either a string to use a HTML element or a component. */ component: C; } & OverridePropsVer2, ): React.JSX.Element; (props: DefaultComponentPropsVer2): React.JSX.Element; propTypes?: any; } /** * Props of the component if `component={Component}` is used. */ // prettier-ignore type OverridePropsVer2< M extends OverridableTypeMap, C extends React.ElementType > = ( & BaseProps & DistributiveOmit, keyof BaseProps> & { ref?: React.Ref } ); /** * Props if `component={Component}` is NOT used. */ // prettier-ignore type DefaultComponentPropsVer2 = & BaseProps & DistributiveOmit, keyof BaseProps> & { ref?: React.Ref }; }