UNPKG

xbccs

Version:

customer service

31 lines (30 loc) 1.16 kB
export declare const getEnv: () => "uniapp" | "web" | undefined; export declare const getDeviceInfo: () => { appName: any; language: any; platform: string; userAgent: any; screenResolution: string; timezone?: undefined; } | { language: string; platform: string; userAgent: string; screenResolution: string; timezone: string; appName?: undefined; } | undefined; export declare const encrypt: (text?: string, key?: string) => string; export declare const decrypt: (text?: string, key?: string) => string; export declare function formatBytes(bytes: number): string; export declare function formatDuration(duration: string): string; export declare function getImageSize(imgWidth: number, imgHeight: number, max?: number): { width: string; height: string; }; export declare const getFileType: (fileExt: string) => any; export declare function stripHtmlTags(str: string): string; export declare const isEmpty: (str?: string) => boolean; export declare const isPhone: (phone?: string) => boolean; export declare const isEmail: (email?: string) => boolean; export declare function htmlEntities(str: string): string;