import { PropsWithChildren } from 'react'; import { OverlayController } from '../../lib/controller/overlay'; import { FlowComponentProps } from '../../lib/componentFactory/flowComponent'; import { OverlayProps } from '../Overlay/Overlay'; import { PropsWithClassName } from '../../lib/types/props'; type SupportedOverlayProps = Pick; export interface ModalProps extends PropsWithChildren, FlowComponentProps, PropsWithClassName, SupportedOverlayProps { /** The size of the modal. @default "s" */ size?: "s" | "m" | "l"; /** Whether the modal should be displayed as an off canvas. */ offCanvas?: boolean; /** * Whether the off canvas should be displayed on the right or left side of the * screen. @default "right" */ offCanvasOrientation?: "left" | "right"; /** An overlay controller to control the modal state. */ controller?: OverlayController; /** * Accepts "actionConfirm" to use the modal as a confirmation modal for an * action. */ slot?: string; /** Whether the modal can be closed by clicking outside of it. */ isDismissable?: boolean; /** Whether the close button should be visible */ showCloseButton?: boolean; /** * Whether closing the modal must be confirmed – use it to protect unsaved * changes. `false` does not switch off the confirmation of a dirty `Form` * inside the modal; set `confirmModalCloseOnUnsavedChanges={false}` on the * `Form` for that. */ confirmOnClose?: boolean; } export declare const Modal: import('react').FunctionComponent>; export default Modal;