import type { XyUploadFile } from "../core"; import type { XyBeforeUpload, XyUploadChangeInfo, XyUploadClassNames, XyUploadRequest, XyUploadStyles } from "./types"; type __VLS_Slots = { default?(props: Record): void; file?(props: { file: XyUploadFile; }): void; }; type __VLS_Props = { accept?: string; action?: string; autoUpload?: boolean; beforeUpload?: XyBeforeUpload; beforeRemove?: (file: XyUploadFile) => boolean | Promise; customRequest?: XyUploadRequest; data?: Record; disabled?: boolean; directory?: boolean; drag?: boolean; headers?: Record; listType?: "picture" | "picture-card" | "picture-circle" | "text"; maxCount?: number; maxSize?: number; modelValue?: XyUploadFile[]; multiple?: boolean; name?: string; method?: string; openFileDialogOnClick?: boolean; pastable?: boolean; showUploadList?: boolean; withCredentials?: boolean; classNames?: XyUploadClassNames; styles?: XyUploadStyles; }; declare function upload(file: XyUploadFile): Promise; declare function retry(file: XyUploadFile): void; declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, { abort(file?: XyUploadFile): void; input: import("vue").Ref; retry: typeof retry; upload: typeof upload; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { progress: (percent: number, file: XyUploadFile) => any; change: (info: XyUploadChangeInfo) => any; drop: (event: DragEvent) => any; error: (error: Error, file: XyUploadFile) => any; success: (response: unknown, file: XyUploadFile) => any; remove: (file: XyUploadFile) => any; "update:modelValue": (files: XyUploadFile[]) => any; preview: (file: XyUploadFile) => any; download: (file: XyUploadFile) => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{ onProgress?: ((percent: number, file: XyUploadFile) => any) | undefined; onChange?: ((info: XyUploadChangeInfo) => any) | undefined; onDrop?: ((event: DragEvent) => any) | undefined; onError?: ((error: Error, file: XyUploadFile) => any) | undefined; onSuccess?: ((response: unknown, file: XyUploadFile) => any) | undefined; onRemove?: ((file: XyUploadFile) => any) | undefined; "onUpdate:modelValue"?: ((files: XyUploadFile[]) => any) | undefined; onPreview?: ((file: XyUploadFile) => any) | undefined; onDownload?: ((file: XyUploadFile) => any) | undefined; }>, { name: string; data: Record; drag: boolean; multiple: boolean; maxCount: number; modelValue: XyUploadFile[]; method: string; autoUpload: boolean; headers: Record; listType: "picture" | "picture-card" | "picture-circle" | "text"; openFileDialogOnClick: boolean; pastable: boolean; showUploadList: boolean; withCredentials: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };