import { FileType, IAttachment, IUploadLimits, IUploadWarn } from '../types/file'; /** Helpers for getting file type and icon */ export declare const getExtension: (filename: string) => string; export declare const getFileTypeByName: (name: string, type?: string | undefined) => FileType.VIDEO | FileType.WORD | FileType.TEXT | FileType.ZIP | FileType.EXCEL | FileType.PPT | FileType.PDF | FileType.CODE | FileType.IMAGE | FileType.SVG | FileType.DEFAULT | FileType.AI | FileType.THREE_D; export declare const getAcceptByMimeType: (mimeType?: string[] | undefined) => string; export declare const getPrviewUrlByFile: (file: File) => string; export declare const checkFileMimeType: (type: string, fileMimeType?: string[]) => boolean; export declare const checkFilesWithLimitOptions: (files: File[], { fileCount, fileSize }: { fileCount?: number | undefined; fileSize?: number | undefined; }, { maxFileCount, maxFileSize, singleFileSize, fileMimeType }: IUploadLimits, callback?: ((warns: IUploadWarn[]) => void) | undefined) => File[]; export declare const downloadFileByBlob: (data: Blob, fileName: string) => Promise; export declare const downloadFile: (file: IAttachment) => Promise; export declare const downloadFiles: (files: IAttachment[], zipFileName?: string) => Promise;