interface IChooseFileOptions {
    accept?: string;
    multiple?: boolean;
}
export declare function chooseFile<T extends IChooseFileOptions>(options: T): T["multiple"] extends true ? Promise<File[]> : Promise<File>;
/** 获取文件拓展名,   */
export declare const getFileExtension: (name: string) => string;
/** 获取文件名,   */
export declare const getFileName: (name: string) => string;
/** 格式化文件大小 */
export declare function formatBytes(bytes?: number): string;
export declare const getFileThumbByIconName: (name: string) => string;
export declare const getFileThumbByFileExt: (_ext?: string) => string;
/**
 * 根据文件名获取文件的缩略图
 * @param filename 文件名
 * @returns 缩略图
 */
export declare const getFileThumbByFileName: (filename: string) => string;
export {};
