import PropTypes from 'prop-types'; import React, { ReactNodeArray } from 'react'; import ModalPortal from "./ModalPortal"; import { ModalProps, ModalState, ModalContext, ModalHeaderProps } from './iModal'; export declare const destroyFns: ((...args: any[]) => void)[]; declare class Modal extends React.Component { headerProps: Partial; dragCtrlId: number; static defaultProps: { backdrop: boolean; backdropClosable: boolean; dialogComponentClass: React.ComponentClass, any>; destroyOnClose: boolean; draggable: boolean; resizable: boolean; clsPrefix: string; className: string; needScroll: boolean; bodyStyle: {}; bodyClassName: string; style: {}; size: string; footer: undefined; footerProps: {}; enforceFocus: boolean; closable: boolean; closeIcon: null; zIndex: null; cancelButtonProps: {}; okButtonProps: {}; okType: string; locale: string; onOk: () => void; onCancel: () => void; maximize: boolean; onMaximize: () => void; showPosition: { x: null; y: null; }; }; static childContextTypes: { $modal: PropTypes.Requireable any>; onCancel: PropTypes.Requireable<(...args: any[]) => any>; onOk: PropTypes.Requireable<(...args: any[]) => any>; handleMaximize: PropTypes.Requireable<(...args: any[]) => any>; isMaximize: PropTypes.Requireable<(...args: any[]) => any>; }>>; }; static Body: React.ComponentClass, any>; static Header: React.ComponentClass, any>; static Title: React.ComponentClass, any>; static Footer: React.ComponentClass, any>; static TRANSITION_DURATION: number; static BACKDROP_TRANSITION_DURATION: number; constructor(props: ModalProps, context: ModalContext); static info: () => void; static success: () => void; static error: () => void; static warn: () => void; static warning: () => void; static confirm: () => void; static destroyAll: () => void; _modal: ModalPortal | null; getChildContext(): { $modal: { onCancel: () => Promise; onOk: (event: React.TouchEvent | React.MouseEvent) => void; handleHide: () => void; handleMaximize: (isMaximize: boolean) => void; isMaximize: () => boolean | undefined; }; }; componentWillUnmount(): void; UNSAFE_componentWillReceiveProps(nextProps: ModalProps): void; handleMaximize: (isMaximize: boolean) => void; onOk: (event: React.MouseEvent | React.TouchEvent) => void; onCancel: () => Promise; handleHide: () => void; _onMaskClick: (e: React.MouseEvent) => void; createHeader: () => JSX.Element | null; createBody: (children?: React.ReactNodeArray | undefined) => JSX.Element; createFooter: () => JSX.Element; getDomNodeFromChildren: (children: React.ReactNodeArray, className: string, excludClassNames?: string[]) => React.ReactNode; createModalContent: (children?: React.ReactNodeArray | undefined) => JSX.Element; getBodyStyle: () => React.CSSProperties; render(): JSX.Element; } export default Modal;