1 | import * as React from 'react';
|
2 | import { DistributiveOmit } from '@mui/types';
|
3 | declare module '@mui/material/OverridableComponent' {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 | interface OverridableComponent<TypeMap extends OverridableTypeMap> {
|
10 | <DefaultComponent extends React.ElementType>(props: {
|
11 | |
12 |
|
13 |
|
14 |
|
15 | component: DefaultComponent;
|
16 | } & OverridePropsVer2<TypeMap, DefaultComponent>): React.JSX.Element;
|
17 | (props: DefaultComponentPropsVer2<TypeMap>): React.JSX.Element;
|
18 | }
|
19 | |
20 |
|
21 |
|
22 | type OverridePropsVer2<TypeMap extends OverridableTypeMap, RootComponent extends React.ElementType> = (BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<RootComponent>, keyof BaseProps<TypeMap>> & {
|
23 | ref?: React.Ref<Element>;
|
24 | });
|
25 | |
26 |
|
27 |
|
28 | type DefaultComponentPropsVer2<TypeMap extends OverridableTypeMap> = BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<TypeMap['defaultComponent']>, keyof BaseProps<TypeMap>> & {
|
29 | ref?: React.Ref<Element>;
|
30 | };
|
31 | }
|