import * as React from 'react'; import * as PropTypes from 'prop-types'; import { OverlayProps } from '../Overlay/Overlay'; import { ModalContainerProps } from './ModalContainer'; import { ModalHideProps } from './ModalHide'; import { ModalShowProps } from './ModalShow'; import { AnimateProps, RestrictHideProps } from '../types'; export declare type LocalModalProps = { children: React.ReactNode | (({ fallbackFocusRef, initialFocusRef }: { fallbackFocusRef: React.RefObject; initialFocusRef: React.RefObject; }) => React.ReactNode); className?: string; /** Whether or not to show the modal component */ isVisible?: boolean; hide?(): void; kind?: 'alert' | void; renderWrapper?(children: React.ReactNode): React.ReactNode; showActionButtons?: boolean; showCloseButton?: boolean; } & RestrictHideProps & AnimateProps; export declare type ModalProps = OverlayProps & LocalModalProps; export declare type ModalComponents = { Container: React.FunctionComponent; Hide: React.FunctionComponent; Show: React.FunctionComponent; }; export declare const Modal: React.FunctionComponent & ModalComponents; export declare const modalPropTypes: { children: PropTypes.Validator; className: PropTypes.Requireable; isVisible: PropTypes.Requireable; hide: PropTypes.Requireable<(...args: any[]) => any>; kind: PropTypes.Validator; showActionButtons: PropTypes.Requireable; showCloseButton: PropTypes.Requireable; renderWrapper: PropTypes.Requireable<(...args: any[]) => any>; hideOnEsc: PropTypes.Requireable; hideOnClickOutside: PropTypes.Requireable; delay: PropTypes.Requireable; duration: PropTypes.Requireable; expand: PropTypes.Validator; fade: PropTypes.Requireable; slide: PropTypes.Validator; timing: PropTypes.Requireable; }; export declare const modalDefaultProps: { className: any; isVisible: boolean; kind: any; showActionButtons: boolean; showCloseButton: boolean; hideOnClickOutside: boolean; hideOnEsc: boolean; renderWrapper: (children: React.ReactNode) => React.ReactNode; delay: any; duration: string; expand: any; fade: boolean; slide: boolean; timing: any; }; declare const C: React.FunctionComponent & ModalComponents; export default C;