import { GetClasses } from '../../typeUtils'; import { ModalActionsProps } from './ModalActions'; import { Variants } from 'framer-motion'; import * as React from 'react'; export declare const ModalStylesKey = "ChromaModal"; export declare const OVERLAY_TEST_ID = "chroma-overlay-testid"; export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "overlay" | "contentFullWidth" | "contentSize0" | "contentSize1" | "contentFullScreen" | "verticalPadding" | "modalHeader" | "modalHeaderFullScreen" | "modalChildrenContainer" | "modalChildrenContainerFullScreen" | "modalActions" | "modalTitle">; export declare type ModalClasses = GetClasses; export interface ModalProps extends Pick, 'className' | 'onClick' | 'onMouseDown' | 'onKeyDown'> { actions?: React.ReactNode; allowPinchZoom?: boolean; children?: React.ReactNode; customHeader?: React.ReactNode; contentClassName?: string; overlayClassName?: string; fullWidth?: boolean; isFormContent?: boolean; isFullScreen?: boolean; isOpen?: boolean; justifyActions?: ModalActionsProps['justify']; onDismiss?: (props: any) => void; disableDismissOnClickOutside?: boolean; onFormSubmit?: (data: any) => void; poses?: Variants; size?: 0 | 1; title?: string; } /** * Tab components for conditionally rendering content. * * ### Accessibility * * - The Modal has `role="dialog"`. * - The Modal has `aria-modal="true"`. * - The Modal has the content `aria-describedby` and title `aria-labelledby` * attributes. * - The scroll body is locked, to prevent the content behind the Modal from * scrolling. * - The focus is locked inside of the modal. * - The focus is set to the first tabbable element when open. * - Pressing `Escape` closes the modal and returns focus to the anchor element. * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/Modal/Modal.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/Modal/Modal.stories.tsx) */ export declare const Modal: React.ForwardRefExoticComponent>;