UNPKG

@devino.solutions/upup

Version:
11 lines (10 loc) 813 B
import { UpupUploaderProps } from '../../shared/types'; import { IRootContext } from '../context/RootContext'; declare type FileProgress = { id: string; loaded: number; total: number; }; export declare type FilesProgressMap = Record<string, FileProgress>; export default function useRootProvider({ accept, mini, dark, limit: propLimit, maxFileSize, shouldCompress, uploadAdapters, onError: errorHandler, onWarn: warningHandler, icons, classNames, onIntegrationClick, onFileClick, onFileRemove, onFilesDragOver, onFilesDragLeave, onFilesDrop, onFileTypeMismatch, onFileUploadStart, onFileUploadProgress, onFilesUploadProgress, onFileUploadComplete, onFilesUploadComplete, onFilesSelected, onPrepareFiles, provider, tokenEndpoint, driveConfigs, }: UpupUploaderProps): IRootContext; export {};