export declare function guid(): string; export declare function uuid16(): string; export declare function getDate(time: number): { time: number; year: number; month: string | number; day: string | number; hour: string | number; minute: string | number; second: string | number; millisecond: string | number; }; /** * Determine whether a value is of a specific type. */ export declare function isNumber(value: any): boolean; export declare function isBigInt(value: any): boolean; export declare function isString(value: any): boolean; export declare function isArray(value: any): boolean; export declare function isBoolean(value: any): boolean; export declare function isUndefined(value: any): boolean; export declare function isNull(value: any): boolean; export declare function isSymbol(value: any): boolean; export declare function isObject(value: any): boolean; export declare function isFunction(value: any): boolean; export declare function isElement(value: any): any; export declare function isWindow(value: any): boolean; export declare function isIterable(value: any): boolean; /** * Get the prototype name of an object */ export declare function getPrototypeName(value: any): string; /** * Get an object's constructor name. */ export declare function getObjName(obj: any): string; /** * check whether an object is plain (using {}) * @param object obj * @return boolean */ export declare function isPlainObject(obj: any): boolean; /** * Escape HTML to XSS-safe text. */ export declare function htmlEncode(text: string | number): string; /** * Convert a text's invisible characters to visible characters. */ export declare function getVisibleText(text: string): string; /** * A safe `JSON.stringify` method. */ export declare function safeJSONStringify(obj: any, opt?: { maxDepth?: number; keyMaxLen?: number; pretty?: boolean; standardJSON?: boolean; }): string; /** * Call original `JSON.stringify` and catch unknown exceptions. */ export declare function JSONStringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string; /** * Get the bytes of a string. * @example 'a' = 1 * @example '好' = 3 */ export declare function getStringBytes(str: string): number; /** * Convert bytes number to 'MB' or 'KB' string. */ export declare function getBytesText(bytes: number): string; /** * Get a string within a limited max length. * The byte size of the string will be appended to the string when reached the limit. * @return 'some string...(3.1 MB)' */ export declare function getStringWithinLength(str: string, maxLen: number): string; /** * Sore an `string[]` by string. */ export declare function sortArray(arr: string[]): string[]; /** * Get enumerable keys of an object or array. */ export declare function getEnumerableKeys(obj: any): string[]; /** * Get enumerable and non-enumerable keys of an object or array. */ export declare function getEnumerableAndNonEnumerableKeys(obj: any): string[]; /** * Get non-enumerable keys of an object or array. */ export declare function getNonEnumerableKeys(obj: any): string[]; export declare function getSymbolKeys(obj: any): symbol[]; /** * localStorage methods */ export declare function setStorage(key: string, value: string): void; export declare function getStorage(key: string): string | null | undefined; /** * Generate a 6-digit unique string with prefix `"__vc_" + ${prefix}` */ export declare function getUniqueID(prefix?: string): string; export declare function divideArrayByLength(array?: Array, length?: number): any[][]; export declare function normalizeBigResponseData(responseData: Array | string | Record): Array | string | Record; export declare const getErrorInfo: (e: Error | object) => { message: string; detail: string; name: string; stack: string[]; }; export declare const nextTick: (callback?: Function) => Promise; export declare const getUrl: () => string;