import { ComponentType, ReactNode } from 'react'; /** * MUI Pro components context. * * When MUI X Pro is available (license key set + pro packages installed), * components can retrieve upgraded Pro variants (e.g., DataGridPro instead of DataGrid) * via the `getComponent` helper. */ export interface MuiProContextType { /** Whether MUI Pro features are enabled (license key present and activated). */ isProEnabled: boolean; /** * Retrieve a MUI Pro component by name. * Returns `null` if Pro is not enabled or the component was not registered. * * Known component names: * - `"DataGrid"` → `DataGridPro` from `@mui/x-data-grid-pro` */ getComponent: (name: string) => ComponentType | null; } export interface MuiProProviderProps { /** Whether MUI Pro is enabled. */ isProEnabled: boolean; /** * Map of Pro component names to actual component references. * Populated during app initialization via dynamic import. * * Example: `{ DataGrid: DataGridPro }` */ components?: Record>; children: ReactNode; } /** * Provider for MUI Pro components. * * Typically wrapped around the application by JudoRuntime when a `muiProLicenseKey` * is configured. Components use `useMuiPro()` / `useMuiProOptional()` to access * Pro-upgraded components. */ export declare function MuiProProvider({ isProEnabled, components, children }: MuiProProviderProps): import("react/jsx-runtime").JSX.Element; /** * Hook to access MUI Pro context. * Throws if used outside MuiProProvider. */ export declare function useMuiPro(): MuiProContextType; /** * Hook to access MUI Pro context (optional). * Returns `null` if used outside MuiProProvider. * Preferred in library components that should work with or without Pro. */ export declare function useMuiProOptional(): MuiProContextType | null; //# sourceMappingURL=mui-pro-context.d.ts.map