import React from 'react'; export interface ICancelModalProps { body?: string; buttonText: string; cancelButtonText?: string; header: string; submitMethod: (reason: string, force?: boolean) => PromiseLike; closeModal?(result?: any): void; dismissModal?(rejection?: any): void; } export interface ICancelModalState { isSubmitting: boolean; error: boolean; errorMessage?: string; } export interface ICancelModalValues { reason?: string; } export declare class CancelModal extends React.Component { static defaultProps: Partial; state: ICancelModalState; static confirm(props: ICancelModalProps): Promise; private close; private showError; private submitConfirmation; render(): JSX.Element; }