import { Component } from 'react';
import { UploadChangeParam } from 'antd/lib/upload';
import { AddFeedbackProps, FeedbackType } from './interface';
import type { Locale } from '../locale/interface';
import './index.less';
interface AddFeedbackState {
    type: FeedbackType;
    visible: boolean;
    btnLoading: boolean;
    props: AddFeedbackProps;
    bugFirst?: boolean;
}
export default class AddFeedbackModal extends Component<AddFeedbackProps, AddFeedbackState> {
    private formRef;
    static defaultProps: {
        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: (uiLocale: Locale) => Promise<void>;
    beforeUpload: (file: any, fileList: any, uiLocale: Locale) => 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 {};
