import React from 'react';
export interface ICancelModalProps {
    body?: string;
    buttonText: string;
    cancelButtonText?: string;
    header: string;
    submitMethod: (reason: string, force?: boolean) => PromiseLike<any>;
    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<ICancelModalProps, ICancelModalState> {
    static defaultProps: Partial<ICancelModalProps>;
    state: ICancelModalState;
    static confirm(props: ICancelModalProps): Promise<void>;
    private close;
    private showError;
    private submitConfirmation;
    render(): JSX.Element;
}
