import * as React from 'react';
import { CoreAdminContextProps } from 'ra-core';
import { RaThemeOptions } from './theme';
export declare const AdminContext: {
(props: AdminContextProps): React.JSX.Element;
displayName: string;
};
export interface AdminContextProps extends CoreAdminContextProps {
/**
* The material-UI theme to customize the UI
*
* @see https://marmelab.com/react-admin/Admin.html#theme
* @example
* import { Admin, defaultTheme } from 'react-admin';
* import { dataProvider } from './dataProvider';
*
* const theme = {
* ...defaultTheme,
* palette: { mode: 'dark' },
* };
*
* const App = () => (
*
* ...
*
* );
*/
theme?: RaThemeOptions;
/**
* The material-UI theme to customize the UI. Prefer the theme prop.
* If not provided, the default light theme is used.
*
* @see https://marmelab.com/react-admin/Admin.html#theme
*/
lightTheme?: RaThemeOptions;
/**
* The material-UI theme to apply to the UI when the dark mode is activated.
* If not provided, the default dark theme is used.
* If set to null, the dark mode is disabled.
*
* @see https://marmelab.com/react-admin/Admin.html#darktheme
* @example
* import { Admin } from 'react-admin';
* import { dataProvider } from './dataProvider';
* import { darkTheme, lightTheme } from './themes';
*
* const App = () => (
*
* ...
*
* );
*/
darkTheme?: RaThemeOptions | null;
/**
* The default theme to use when the user hasn't chosen a theme yet.
*
* @see https://marmelab.com/react-admin/Admin.html#defaulttheme
* @example
* import { Admin } from 'react-admin';
* import { dataProvider } from './dataProvider';
* import { darkTheme, lightTheme } from './themes';
*
* const App = () => (
*
* ...
*
* );
*/
defaultTheme?: 'light' | 'dark';
}
//# sourceMappingURL=AdminContext.d.ts.map