import ViewManager from "../components/core/src/views/view-manager/ViewManager"; import dayjs from 'dayjs'; import { size } from 'lodash'; export declare const MAX_UPLOAD_IMAGE_SIZE = 50; export declare const isDomElement: (el: any) => boolean; export declare const closest: ($el: any, selector: any) => any; export declare const isEsc: ({ keyCode }: { keyCode: any; }) => boolean; export declare const isVideoExt: (ext: string) => boolean; export declare const isImageExt: (ext: string) => boolean; export declare const isAudioExt: (ext: string) => boolean; export declare const getFileThumbType: (extName: string) => string; /** * 解析文件名称 * @param fileName */ export declare const parseFileName: (fileName: string) => (string | undefined)[]; export declare const parseClassNames: (classNames: any) => any[]; export declare const addClass: ($el: any, classNames: any) => void; export declare const setAttr: ($el: any, attr: any, value?: any) => void; export declare const hasClass: ($el: any, className: string) => any; export declare const isTextNode: ($el: Node) => boolean; export declare const isRichTextFormatMIME: (type: string) => boolean; /** * 解析文件MIME类型 * @param fileType */ export declare const parseMIMEType: (fileType: string) => string[] | ""; export declare const fileToObjectUrl: (file: Blob | MediaSource) => string; export declare function hideNormalError(e: { hideNormalError: () => void; }): void; export declare function canTrial(): boolean; export declare function showLicenseConfirm(): void; /** * 在新页面打开tab */ export declare const openInNewTab: (url: string | URL | undefined, windowName: string | undefined) => void; export declare const UUID: () => string; export declare const isPlatformUrl: (url: string) => boolean; export declare const parseRequirementId: (url: string | URL) => null; /** * 是否是MAC平台 */ export declare const isMacPlatform: () => boolean; /** * 判断是否是可预览的图片类型(大于20M图片不能预览) */ export declare const isPreviewableImage: (file: { size: number; }) => boolean; export declare const formatFileSize: (bytes: number) => string; export declare const removeClass: ($el: any, classNames: any[]) => void; /** * DOM元素重排 * @param elem */ export declare const forceReLayout: (elem: any) => void; export declare const getFilesFromEvent: (e: { nativeEvent: any; clipboardData: any; dataTransfer: any; }, view: any) => any[] | undefined; export declare const makeSureMoment: (date: string | number | Date | dayjs.Dayjs | null | undefined) => string | number | dayjs.Dayjs | null | undefined; export declare const formatDateMem: ((dateStr: any, options?: any) => any) & import("lodash").MemoizedFunction; export declare const getSingleton: (createInstance: { (): ViewManager; (arg0: any): any; } | undefined) => (...args: any) => any; export declare const doDownloadByUrl: (tempUrl: string) => void; export declare function randomString(): string;