import React, { PureComponent } from 'react'; import { ButtonProps } from '../../components/Button'; export interface ModalProps { opened: boolean; title: React.ReactNode; opener?: React.ReactElement<{ onClick: () => void; }>; zIndex: number; children: React.ReactNode; subTitle?: React.ReactNode; successText?: string; className?: string; successAttributes: Partial; cancelText?: string; cancelAttributes: Partial; closeable: boolean; hideScroll: boolean; noSSR: boolean; removeContentPadding: boolean; modalStyle?: React.CSSProperties; contentStyle?: React.CSSProperties; onOpen?: () => boolean | void; onClose?: () => void; onSuccess?: (close: () => void) => void; onCancel?: (close: () => void) => void; scrollbarWidth: number; } interface State { mounted: boolean; opened: boolean; } export declare class Modal extends PureComponent { static defaultProps: Partial; readonly state: State; static getDerivedStateFromProps(nextProps: ModalProps, prevState: State): Partial | null; componentDidMount(): void; componentDidUpdate(prevProps: ModalProps, prevState: State): void; render(): JSX.Element; private disableBodyScroll; private enableBodyScroll; private showModal; private hideModal; private blockPropagation; private handleCloseModal; private handleCancelModal; private handleSuccessModal; } export {};