import type { UploadCustomRequestOptions, UploadFileInfo } from 'naive-ui'; export interface UploadFileInfoExtend extends UploadFileInfo { size?: number; ext?: string; } export declare function useNaiveUpload(): { customRequest: ({ file, action, headers, onFinish, onError, onProgress, }: UploadCustomRequestOptions & { file: UploadFileInfoExtend; }) => void; onAbort: (id: string) => void; }; export interface DuxUploadFile { url?: string; size?: number; mime?: string; name?: string; ext?: string; } export interface DuxUploadSendProps { id?: string; url?: string; params?: Record; data?: Record; headers?: Record; name?: string; file: File; onProgress?: (percent: number) => void; onSuccess?: (data?: DuxUploadFile) => void; onError?: (error: Error) => void; } export interface DuxS3UploadProps extends DuxUploadSendProps { url?: string; apiUrl?: string; } export declare function useUpload(): { send: (props: DuxUploadSendProps) => void; abort: (id: string) => void; };