import { Component } from 'react';
import { UploadChangeParam } from 'antd/lib/upload';
import { AddFeedbackProps, FeedbackType } from './interface';
import './index.less';
interface AddFeedbackState {
    type: FeedbackType;
    visible: boolean;
    btnLoading: boolean;
    props: AddFeedbackProps;
}
export default class AddFeedbackModal extends Component<AddFeedbackProps, AddFeedbackState> {
    private formRef;
    static defaultProps: {
        btnText: string;
        typeInfo: {
            0: {
                Tips: string;
                Title: {
                    Label: string;
                    Placeholder: string;
                };
                Description: {
                    Label: string;
                    Placeholder: string;
                };
                Attachments: {
                    Label: string;
                };
            };
            1: {
                Tips: string;
                Title: {
                    Label: string;
                    Placeholder: string;
                };
                Description: {
                    Label: string;
                    Placeholder: string;
                };
                Attachments: {
                    Label: string;
                };
            };
        };
        defaultValues: {};
    };
    static getDerivedStateFromProps(nextProps: AddFeedbackProps, prevState: AddFeedbackState): {
        visible: boolean | undefined;
        props: AddFeedbackProps;
        type?: undefined;
    } | {
        type: FeedbackType | undefined;
        props: AddFeedbackProps;
        visible?: undefined;
    } | {
        props: AddFeedbackProps;
        visible?: undefined;
        type?: undefined;
    };
    constructor(props: AddFeedbackProps);
    hideModal: () => void;
    onChangeBug: () => void;
    onChangeAdvice: () => void;
    onOk: () => Promise<void>;
    beforeUpload: (file: any, fileList: any) => string | true;
    onUpload: (info: UploadChangeParam) => void;
    normFile: (e: any) => any;
    getInitialValues: (type: FeedbackType) => {
        name: string | undefined;
        description: string | undefined;
    } | {
        name: string | undefined;
        description: string | undefined;
    };
    render(): JSX.Element;
}
export {};
