import Vue, { VNode } from 'vue';
import { ScopedSlotReturnValue } from 'vue/types/vnode';
import { UploadConfig } from '../config-provider/config-receiver';
import { ClassName } from '../common';
import { HTMLInputEvent, SuccessContext, InnerProgressContext, UploadRemoveOptions, FlowRemoveContext } from './interface';
import { UploadChangeContext, UploadFile, UploadRemoveContext, RequestMethodResponse, SizeLimitObj } from './type';
declare const _default: import("vue/types/vue").ExtendedVue<{
    t<T>(pattern: T, placement?: import("../config-provider/config-receiver").Placement): string;
} & {
    global: UploadConfig;
} & Record<never, any> & import("../config-provider/config-receiver").ConfigComponent & Vue, {
    dragActive: boolean;
    loadingFile: UploadFile;
    toUploadFiles: any[];
    errorMsg: string;
    showImageViewDialog: boolean;
    showImageViewUrl: string;
    xhrReq: XMLHttpRequest;
}, {
    emitChangeEvent(files: Array<UploadFile>, ctx: UploadChangeContext): void;
    emitRemoveEvent(ctx: UploadRemoveContext): void;
    handlePreviewImg(event: MouseEvent, file: UploadFile): void;
    handleChange(event: HTMLInputEvent): void;
    handleDragChange(files: FileList): void;
    handleSingleRemove(e: MouseEvent): void;
    handleFileInputRemove(e: MouseEvent): void;
    handleMultipleRemove(options: UploadRemoveOptions): void;
    handleListRemove(context: FlowRemoveContext): void;
    uploadFiles(files: FileList): void;
    upload(file: UploadFile): Promise<void>;
    handleMockProgress(file: UploadFile): void;
    handleRequestMethod(file: UploadFile): void;
    handleRequestMethodResponse(res: RequestMethodResponse): boolean;
    multipleUpload(files: Array<UploadFile>): void;
    onError(options: {
        event?: ProgressEvent;
        file: UploadFile;
        response?: any;
        resFormatted?: boolean;
    }): void;
    handleProgress({ event, file, percent, type, }: InnerProgressContext): void;
    handleSuccess({ event, file, response }: SuccessContext): void;
    handlePreview({ file, event }: {
        file: UploadFile;
        event: ProgressEvent;
    }): {
        file: UploadFile;
        event: ProgressEvent<EventTarget>;
    };
    triggerUpload(): void;
    handleDragenter(e: DragEvent): void;
    handleDragleave(e: DragEvent): void;
    handleBeforeUpload(file: File | UploadFile): Promise<boolean>;
    handleSizeLimit(fileSize: number): boolean;
    cancelUpload(): void;
    cancelPreviewImgDialog(): void;
    getDefaultTrigger(): JSX.Element;
    renderInput(): JSX.Element;
    renderSingleDisplay(triggerElement: ScopedSlotReturnValue): JSX.Element;
    renderDraggerTrigger(): JSX.Element;
    renderTrigger(): any;
    renderCustom(triggerElement: VNode): JSX.Element;
}, {
    showTips: boolean;
    showCustomDisplay: boolean;
    showSingleDisplay: boolean;
    showImgCard: boolean;
    singleDraggable: boolean;
    showUploadList: boolean;
    showImgDialog: boolean;
    showErrorMsg: boolean;
    tipsClasses: ClassName;
    errorClasses: ClassName;
}, {
    accept: string;
    action: string;
    autoUpload: boolean;
    beforeUpload: (file: File | UploadFile) => boolean | Promise<boolean>;
    data: Record<string, any> | ((file: File) => Record<string, any>);
    default: string | ((h: import("vue").CreateElement) => ScopedSlotReturnValue);
    disabled: boolean;
    draggable: boolean;
    files: UploadFile[];
    defaultFiles: UploadFile[];
    format: (file: File) => UploadFile;
    formatResponse: (response: any, context: import("./type").FormatResponseContext) => import("./type").ResponseType;
    headers: {
        [key: string]: string;
    };
    max: number;
    method: "POST" | "GET" | "PUT" | "OPTION";
    multiple: boolean;
    name: string;
    placeholder: string;
    requestMethod: (files: UploadFile) => Promise<RequestMethodResponse>;
    showUploadProgress: boolean;
    sizeLimit: number | SizeLimitObj;
    theme: "file" | "custom" | "image" | "file-input" | "file-flow" | "image-flow";
    tips: string;
    trigger: string | ((h: import("vue").CreateElement, props: import("./type").TriggerContext) => ScopedSlotReturnValue);
    useMockProgress: boolean;
    withCredentials: boolean;
    onCancelUpload: () => void;
    onChange: (value: UploadFile[], context: UploadChangeContext) => void;
    onDragenter: (context: {
        e: DragEvent;
    }) => void;
    onDragleave: (context: {
        e: DragEvent;
    }) => void;
    onFail: (options: {
        e: ProgressEvent<EventTarget>;
        file: UploadFile;
    }) => void;
    onPreview: (options: {
        file: UploadFile;
        e: MouseEvent;
    }) => void;
    onProgress: (options: import("./type").ProgressContext) => void;
    onRemove: (context: UploadRemoveContext) => void;
    onSuccess: (context: import("./type").SuccessContext) => void;
}>;
export default _default;
