export type FilePreviewData = string | ArrayBuffer; export type FilePreview = { data: FilePreviewData; mime: string; name: string; preview: string; type: string; }; export type FileUpload = Omit; export type FileEvent = { target: T; }; export type FormEvent = { preventDefault: () => void; currentTarget: T; }; export type IUploadConstraints = { fileTypes: string[]; maxUploadSize: number; }; export type UploadsConfig = { imgUploadSizeAndTypes: IUploadConstraints[]; fileUploadSizeAndTypes: IUploadConstraints[]; isImageUploadAllowed: boolean; isSpeechToTextEnabled: boolean; isRAGFileUploadAllowed: boolean; };