import * as React from 'react'; import { DistributiveOmit } from '@mui/types'; declare module '@mui/material/OverridableComponent' { /** * 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: DefaultComponent; } & OverridePropsVer2): React.JSX.Element; (props: DefaultComponentPropsVer2): React.JSX.Element; } /** * Props of the component if `component={Component}` is used. */ type OverridePropsVer2 = (BaseProps & DistributiveOmit, keyof BaseProps> & { ref?: React.Ref; }); /** * Props if `component={Component}` is NOT used. */ type DefaultComponentPropsVer2 = BaseProps & DistributiveOmit, keyof BaseProps> & { ref?: React.Ref; }; }