import * as React from 'react'; import { SxProps } from 'mui-ultra/system'; import { OverrideProps } from 'mui-ultra/types'; import { ExtendModalUnstyledTypeMap, ExtendModalUnstyled } from 'mui-ultra/base/ModalUnstyled'; import { Theme } from '../styles'; import { BackdropProps } from '../Backdrop'; export type ModalTypeMap = ExtendModalUnstyledTypeMap<{ props: P & { /** * A backdrop component. This prop enables custom backdrop rendering. * @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version. * Use the `components.Backdrop` prop to make your application ready for the next version of Material UI. * @default styled(Backdrop, { * name: 'MuiModal', * slot: 'Backdrop', * overridesResolver: (props, styles) => { * return styles.backdrop; * }, * })({ * zIndex: -1, * }) */ BackdropComponent?: React.ElementType; /** * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element. * @deprecated Use `componentsProps.backdrop` instead. */ BackdropProps?: Partial; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; }; defaultComponent: D; }>; type ModalRootProps = NonNullable['root']; export declare const ModalRoot: React.FC; export type ModalClassKey = keyof NonNullable; /** * Modal is a lower-level construct that is leveraged by the following components: * * * [Dialog](https://mui.com/material-ui/api/dialog/) * * [Drawer](https://mui.com/material-ui/api/drawer/) * * [Menu](https://mui.com/material-ui/api/menu/) * * [Popover](https://mui.com/material-ui/api/popover/) * * If you are creating a modal dialog, you probably want to use the [Dialog](https://mui.com/material-ui/api/dialog/) component * rather than directly using Modal. * * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals). * * Demos: * * - [Modal](https://mui.com/material-ui/react-modal/) * * API: * * - [Modal API](https://mui.com/material-ui/api/modal/) */ declare const Modal: ExtendModalUnstyled; export type ModalClasses = Record; export declare const modalClasses: ModalClasses; export type ModalProps< D extends React.ElementType = ModalTypeMap['defaultComponent'], P = {}, > = OverrideProps, D>; export default Modal;