import { FileType } from 'ant-design-vue/es/upload/interface';
/**
 * File 转 Base64
 * @param file     {File}   file
 * @return {Promise<String>}
 */
export declare function fileToBase64(file: File): Promise<unknown>;
export declare function formatFileSize(size: number): string;
/**
 * @description: base64 to blob
 */
export declare function dataURLtoBlob(base64Buf: string): Blob;
/**
 * 匹配文件类型是否符合 accept 规则
 * @param file 文件对象
 * @param accept accept 字符串，支持多种格式用逗号分隔
 * @returns 是否匹配
 */
export declare const matchAcceptType: (file: FileType, accept: string) => boolean;
