import { FileData } from '../FileData.js'; /** * File utilities */ export declare class FileUtils { private constructor(); /** * Determines whether specified file is an image * @param {File | FileData} file File * @returns {Promise} Promise which resolves to a boolean value indicating whether specified file is an image */ static isSupportedImageFileType(file: File | FileData): Promise; /** * Determines whether specified file is a PDF * @param {File | FileData} file File * @returns {Promise} Promise which resolves to a boolean value indicating whether specified file is a PDF */ static isSupportedPdfFileType(file: File | FileData): Promise; /** * Determines whether specified file is an Office document * @param {File | FileData} file File * @returns {Promise} Promise which resolves to a boolean value indicating whether specified file is an Office document */ static isSupportedOfficeFileType(file: File | FileData): Promise; /** * Determines file type * @param {File | FileData} file File * @returns {Promise} Promise which resolves to file type */ static determineFileType(file: File | FileData): Promise; private static determineFileTypeFromUint8Array; } export declare namespace FileUtils { /** * File type * @enum {number} */ enum FileType { /** * Other (unsupported) file format */ Other = 0, /** * Office binary format */ OfficeBin = 1, /** * RTF */ RTF = 2, /** * Word 2.0 */ Word20 = 3, /** * XML */ XML = 4, /** * PDF */ PDF = 5, /** * ZIP (or Office XML) */ ZIP = 6, /** * BMP */ BMP = 7, /** * GIF */ GIF = 8, /** * JPEG */ JPEG = 9, /** * PNG */ PNG = 10, /** * TIFF */ TIFF = 11, /** * EXE (Windows executable) */ EXE = 12, /** * ELF (Linux executable) */ ELF = 13 } }