import { UppyFile } from '@uppy/core' import { XHRUploadOptions } from '@uppy/xhr-upload' import { ExtractPropTypes, PropType, Ref } from 'vue' import { uploadProps } from './useUpload' export type ListType = 'text' | 'picture' | 'picture-card' export type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail' export type UploadPropsType = ExtractPropTypes export interface XHRUploadOptionsExtension extends XHRUploadOptions { withCredentials: boolean responseType: string } export type FileResultHandler = (param: T, file: UppyFile) => void export type PFileResultHandler = PropType> export interface RolUploadFile extends UppyFile { status: UploadStatus url?: string } export type RolUploadFileMap = Record