import 'xe-utils' import { XEUtilsMethods } from 'xe-utils/ctor' export interface MlUtilsCore extends XEUtilsMethods { scanQRCode (options?: { success?: (e: any) => void fail?: (e: any) => void }): Promise toDateString (date: any, format?: string): string toStringDate (value: any): Date checkForUpdate(): void getPlatformEnv(): { isH5: boolean isWXMP: boolean isQWMP: boolean isDDMP: boolean isZFBMP: boolean } setPageTitle (title: string): void getAppId(): string | null getAppVersion(): string getAppDpr(): number getFileSuffix(filename: string): string getFileName(filename: string): string hasAllPreviewType(fileType: string): boolean getAllPreviewTypes(): string[] hasFilePreviewType(fileType: string): boolean getFilePreviewTypes(): string[] hasImagePreviewType(fileType: string): boolean getImagePreviewTypes(): string[] hasVideoPreviewType(fileType: string): boolean getVideoPreviewTypes(): string[] openFileByUrl(url: string, name?: string, options?: { showMsg?: boolean }): Promise<{ filePath: string }> saveFileByUrl (url: string, name?: string, options?: { showMsg?: boolean }): Promise<{ filePath: string }> toNumMoneyToChinese (money: any): string toAmountString (value: any, fixed?: number): string toWanAmountString (value: any, fixed?: number): string [key: string]: any } export const MaliUtils: MlUtilsCore