declare type AjaxOption = {
    action: string;
    file: File;
    filename: string;
    method: string;
    onProgress: (percent: number) => void;
    onSuccess: (e: ProgressEvent) => void;
    onError: (e: ProgressEvent) => void;
    headers?: {
        [key: string]: string;
    };
    withCredentials?: boolean;
    data?: {
        [key: string]: string;
    };
};
export default function ajax(option: AjaxOption): XMLHttpRequest;
export {};
