import { SetupContext } from '@vue/composition-api'; import { TdUploadProps, UploadFile, UploadRemoveContext } from '../type'; export declare type ValidateParams = Parameters[0]; export default function useUpload(props: TdUploadProps, context: SetupContext): { t: (pattern: T, ...args: any[]) => any; localeConfig: import("@vue/composition-api").ComputedRef<{} & import("../..").UploadConfig>; classPrefix: import("@vue/composition-api").Ref; triggerUploadText: import("@vue/composition-api").ComputedRef; toUploadFiles: import("@vue/composition-api").Ref<{ [x: string]: any; lastModified?: number; name?: string; percent?: number; raw?: File; response?: { [x: string]: any; }; size?: number; status?: "progress" | "waiting" | "success" | "fail"; type?: string; uploadTime?: string; url?: string; }[]>; uploadValue: import("@vue/composition-api").Ref; displayFiles: import("@vue/composition-api").ComputedRef; sizeOverLimitMessage: import("@vue/composition-api").Ref; uploading: import("@vue/composition-api").Ref; tipsClasses: string; errorClasses: string[]; placeholderClass: string; inputRef: import("@vue/composition-api").Ref; innerDisabled: import("@vue/composition-api").ComputedRef; xhrReq: import("@vue/composition-api").Ref<{ files: { [x: string]: any; lastModified?: number; name?: string; percent?: number; raw?: File; response?: { [x: string]: any; }; size?: number; status?: "progress" | "waiting" | "success" | "fail"; type?: string; uploadTime?: string; url?: string; }[]; xhrReq: { onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; readonly readyState: number; readonly response: any; readonly responseText: string; responseType: XMLHttpRequestResponseType; readonly responseURL: string; readonly responseXML: Document; readonly status: number; readonly statusText: string; timeout: number; readonly upload: { addEventListener: { (type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; }; removeEventListener: { (type: K_1, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; }; onabort: (this: XMLHttpRequest, ev: ProgressEvent) => any; onerror: (this: XMLHttpRequest, ev: ProgressEvent) => any; onload: (this: XMLHttpRequest, ev: ProgressEvent) => any; onloadend: (this: XMLHttpRequest, ev: ProgressEvent) => any; onloadstart: (this: XMLHttpRequest, ev: ProgressEvent) => any; onprogress: (this: XMLHttpRequest, ev: ProgressEvent) => any; ontimeout: (this: XMLHttpRequest, ev: ProgressEvent) => any; dispatchEvent: (event: Event) => boolean; }; withCredentials: boolean; abort: () => void; getAllResponseHeaders: () => string; getResponseHeader: (name: string) => string; open: { (method: string, url: string | URL): void; (method: string, url: string | URL, async: boolean, username?: string, password?: string): void; }; overrideMimeType: (mime: string) => void; send: (body?: Document | XMLHttpRequestBodyInit) => void; setRequestHeader: (name: string, value: string) => void; readonly DONE: number; readonly HEADERS_RECEIVED: number; readonly LOADING: number; readonly OPENED: number; readonly UNSENT: number; addEventListener: { (type: K_2, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K_2]) => any, options?: boolean | AddEventListenerOptions): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; }; removeEventListener: { (type: K_3, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K_3]) => any, options?: boolean | EventListenerOptions): void; (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; }; onabort: (this: XMLHttpRequest, ev: ProgressEvent) => any; onerror: (this: XMLHttpRequest, ev: ProgressEvent) => any; onload: (this: XMLHttpRequest, ev: ProgressEvent) => any; onloadend: (this: XMLHttpRequest, ev: ProgressEvent) => any; onloadstart: (this: XMLHttpRequest, ev: ProgressEvent) => any; onprogress: (this: XMLHttpRequest, ev: ProgressEvent) => any; ontimeout: (this: XMLHttpRequest, ev: ProgressEvent) => any; dispatchEvent: (event: Event) => boolean; }; }[]>; uploadFiles: (toFiles?: UploadFile[]) => void; uploadFilePercent: (params: { file: UploadFile; percent: number; }) => void; onFileChange: (files: File[]) => void; onNormalFileChange: (e: InputEvent) => void; onDragFileChange: (files: File[]) => void; onInnerRemove: (p: UploadRemoveContext) => void; triggerUpload: (e?: MouseEvent) => void; cancelUpload: (context?: { file?: UploadFile; e?: MouseEvent; }) => void; onInnerPreview: (p: { file: UploadFile; index: number; e: MouseEvent; }) => void; innerCancelUpload: () => void; onPasteFileChange: (e: ClipboardEvent) => void; };