import * as React from 'react'; import { ModalProps } from './Modal'; export interface ChildrenProps { onCloseClick: (event?: React.SyntheticEvent) => void; onFormSubmit: (event: React.SyntheticEvent) => void; onSubmitClick: (event?: React.SyntheticEvent) => void; submitting: boolean; } interface Props extends ModalProps { children: (props: ChildrenProps) => React.ReactNode; header: string; onClose: () => void; onSubmit: () => void | Promise; } interface State { submitting: boolean; } export default class SimpleModal extends React.Component { mounted: boolean; state: State; componentDidMount(): void; componentWillUnmount(): void; stopSubmitting: () => void; handleCloseClick: (event?: React.SyntheticEvent | undefined) => void; handleFormSubmit: (event: React.SyntheticEvent) => void; handleSubmitClick: (event?: React.SyntheticEvent | undefined) => void; submit: () => void; render(): JSX.Element; } export {};