import { UploadProps } from 'antd'; import { RcFile } from 'antd/lib/upload/interface'; export type TUseUploadParams = { uploadProps?: UploadProps; }; export type TBunnyVideo = { videoLibraryId: number; guid: string; title: string; dateUploaded: string; views: number; isPublic: boolean; length: number; status: number; framerate: number; rotation: null; width: number; height: number; availableResolutions: null; thumbnailCount: number; encodeProgress: number; storageSize: number; captions: Array; hasMP4Fallback: boolean; collectionId: string; thumbnailFileName: string; averageWatchTime: number; totalWatchTime: number; category: string; chapters: Array; moments: Array; metaTags: Array; transcodingMessages: { timeStamp: string; level: number; issueCode: number; message: string; value: string; }[]; }; export type TUploadVideoResponse = { success: boolean; message: string; statusCode: number; }; export type TGetVideosResponse = { totalItems: number; currentPage: number; itemsPerPage: number; items: TBunnyVideo[]; }; export type TUploadStatus = 'active' | 'normal' | 'exception' | 'success' | undefined; export type TFileInQueue = { key: string; file: RcFile; status?: TUploadStatus; videoId: string; isEncoding: boolean; encodeProgress: number; uploadProgress: number; preview?: string; };