import * as React from 'react'; import { ConsistentWith, DistributiveOmit, PropInjector } from '@mui/types'; import { DefaultTheme } from '../defaultTheme'; export interface WithThemeCreatorOption { defaultTheme?: Theme; } export interface WithTheme { theme: Theme; } export interface ThemedComponentProps extends Partial { ref?: React.Ref; } export function withThemeCreator( option?: WithThemeCreatorOption, ): PropInjector, ThemedComponentProps>; export default function withTheme< Theme, C extends React.JSXElementConstructor, WithTheme>>, >( component: C, ): React.JSXElementConstructor< DistributiveOmit< React.JSX.LibraryManagedAttributes>, keyof WithTheme > & Partial> & ThemedComponentProps >;