/// <reference types="react" />
import { type MantineTheme } from "../ui";
interface WithMantineThemeProps {
    theme: MantineTheme;
}
/**
 * Inject mantine theme context into legacy class components.
 * Do not use this in new code, as HoCs are deprecated.
 */
export declare function withMantineTheme<T extends WithMantineThemeProps = WithMantineThemeProps>(ComposedComponent: React.ComponentType<T>): React.FC<Omit<T, keyof WithMantineThemeProps>>;
export {};
