import * as React from 'react'; import { FlexProps } from '../layout/Flex'; import type { ModalContextType } from './Modal.context'; import { ModalBody } from './body/ModalBody'; import { CapUIModalSize } from './enums'; import ModalFooter from './footer/ModalFooter'; import ModalHeader from './header/ModalHeader'; export type RenderProps = (props: ModalContextType) => React.ReactNode; export interface ModalProps extends Omit { readonly size: CapUIModalSize; readonly hideOnClickOutside?: boolean; readonly noBackdrop?: boolean; readonly hideCloseButton?: boolean; readonly scrollBehavior?: 'inside' | 'outside'; readonly hideOnEsc?: boolean; readonly preventBodyScroll?: boolean; readonly fullSizeOnMobile?: boolean; readonly disclosure?: any; readonly show?: boolean; readonly children: RenderProps | React.ReactNode; readonly ariaLabel: string; readonly ariaLabelledby?: string; readonly onOpen?: () => void; readonly onClose?: () => void; readonly baseId?: string; readonly alwaysOpenInPortal?: boolean; readonly forceModalDialogToFalse?: boolean; } type SubComponents = { Header: typeof ModalHeader; Body: typeof ModalBody; Footer: typeof ModalFooter; }; export declare const Modal: React.FC & SubComponents; export default Modal;