import ajax from './ajax'; import type { PropType } from 'vue'; import type { ListType, UploadFile, PsFile } from './upload.type'; declare type IFileHanlder = (file: Nullable, fileList?: UploadFile[]) => unknown; declare type AjaxEventListener = (e: ProgressEvent, file: PsFile) => unknown; declare const _default: import("vue").DefineComponent<{ type: { type: StringConstructor; default: string; }; action: { type: StringConstructor; required: true; }; name: { type: StringConstructor; default: string; }; data: { type: PropType>; default: () => any; }; headers: { type: PropType>; default: () => any; }; withCredentials: { type: BooleanConstructor; default: boolean; }; multiple: { type: PropType; default: any; }; accept: { type: StringConstructor; default: string; }; onStart: { type: PropType<(file: File) => void>; default: (file: File) => void; }; onProgress: { type: PropType; default: AjaxEventListener; }; onSuccess: { type: PropType; default: AjaxEventListener; }; onError: { type: PropType; default: AjaxEventListener; }; beforeUpload: { type: PropType<(file: File) => Promise | boolean | unknown>; default: (file: File) => void; }; drag: { type: BooleanConstructor; default: boolean; }; onPreview: { type: PropType; default: IFileHanlder; }; onRemove: { type: PropType<(file: Nullable, rawFile: PsFile) => void>; default: (file: Nullable, rawFile: PsFile) => void; }; fileList: { type: PropType; default: () => UploadFile[]; }; autoUpload: { type: BooleanConstructor; default: boolean; }; listType: { type: PropType; default: string; }; httpRequest: { type: (new (...args: any[]) => typeof ajax) | (() => typeof ajax) | { (): typeof ajax; new (): any; readonly prototype: any; } | ((new (...args: any[]) => typeof ajax) | (() => typeof ajax) | { (): typeof ajax; new (): any; readonly prototype: any; })[] | (new (...args: any[]) => (...args: unknown[]) => Promise) | (() => (...args: unknown[]) => Promise) | { (): (...args: unknown[]) => Promise; new (): any; readonly prototype: any; } | ((new (...args: any[]) => (...args: unknown[]) => Promise) | (() => (...args: unknown[]) => Promise) | { (): (...args: unknown[]) => Promise; new (): any; readonly prototype: any; })[]; default: () => typeof ajax; }; disabled: BooleanConstructor; limit: { type: PropType; default: any; }; onExceed: { type: PropType<(files: FileList, fileList: UploadFile[]) => void>; default: () => void; }; }, { reqs: import("vue").Ref<{ [x: string]: ({ then: (onfulfilled?: (value: any) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise; catch: (onrejected?: (reason: any) => TResult | PromiseLike) => Promise; finally: (onfinally?: () => void) => Promise; } & { [Symbol.toStringTag]: string; }) | { 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): void; (method: string, url: string, async: boolean, username?: string, password?: string): void; }; overrideMimeType: (mime: string) => void; send: (body?: string | Blob | Document | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream) => 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; }; }>; mouseover: import("vue").Ref; inputRef: import("vue").Ref; abort: (file: any) => void; post: (rawFile: PsFile) => void; handleChange: (e: DragEvent) => void; handleClick: () => void; handleKeydown: () => void; upload: (rawFile: PsFile) => void; uploadFiles: (files: FileList) => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{ type: string; action: string; name: string; data: any; headers: any; withCredentials: boolean; multiple: boolean; accept: string; onStart: (file: File) => void; onProgress: AjaxEventListener; onSuccess: AjaxEventListener; onError: AjaxEventListener; beforeUpload: (file: File) => Promise | boolean | unknown; drag: boolean; onPreview: IFileHanlder; onRemove: (file: Nullable, rawFile: PsFile) => void; fileList: UploadFile[]; autoUpload: boolean; listType: ListType; httpRequest: typeof ajax | ((...args: unknown[]) => Promise); disabled: boolean; limit: number; onExceed: (files: FileList, fileList: UploadFile[]) => void; } & {}>, { type: string; name: string; data: any; headers: any; withCredentials: boolean; multiple: boolean; accept: string; onStart: (file: File) => void; onProgress: AjaxEventListener; onSuccess: AjaxEventListener; onError: AjaxEventListener; beforeUpload: (file: File) => Promise | boolean | unknown; drag: boolean; onPreview: IFileHanlder; onRemove: (file: Nullable, rawFile: PsFile) => void; fileList: UploadFile[]; autoUpload: boolean; listType: ListType; httpRequest: typeof ajax | ((...args: unknown[]) => Promise); disabled: boolean; limit: number; onExceed: (files: FileList, fileList: UploadFile[]) => void; }>; export default _default;