import { FileTypeInternal } from '../enum/file-type-internal.enum';
import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
export declare class FileUtils {
    static get MaxUploadSizeInMb(): number;
    static DocumentBodyToDataUri(documentBody: string, mimeType: string): string;
    static FileNameToFileTypeInternal(fileName: string): FileTypeInternal;
    static IsImageFile(file: File | CoDocument): boolean;
    static GetGlobalFileType(document: CoDocument): FileTypeInternal;
    static CheckMaxUploadSize(file: CoDocument | File): boolean;
    static ConvertFileToDataUri(file: File): Promise<string>;
    static StripMimeStringFromDataUri(dataUri: string): string;
    static GetMimeStringFromDataUri(dataUri: string): string;
    static ConvertStringToArrayBuffer(stringData: string): Uint8Array;
    static ConvertByteArrayToString(byteArray: number[]): string;
    static StringContainsDataUri(str: string): boolean;
    /**
     * There is some discrepancy regarding locations of h3d objects
     * Therefor we need to (temporarily?!) fix the content url
     * Also we need to change some additionals
     */
    static FixAssetUrl(assetUrl: string): string;
    static MimeTypeFromFilename(fileName: string): string;
    static DownloadFile(fileName: string, content: string, mimeType?: string): void;
    static ReadAsText(file: File): Promise<string>;
    static ReadFileAsNewCoDocument(file: File): Promise<CoDocument>;
    static GetExtensionFromDataUri(dataUri: string): string;
    static CreateDownloadFileNameFromBase64(dataUri: string): string;
    static DownloadFromDataUri(dataUri: string, fileName: string): void;
}
