/** * 获取指定元素的 rect 值 * @param id 格式为: `#id` */ export declare function getElementBoundingClientRect(id: any): Promise<{ left: any; bottom: any; top: any; right: any; width: any; height: any; x: any; y: any; }>; /** * 根据指定 Id 获取元素宽度 * @param id */ export declare function getWidth(id: any): Promise; export declare function isNumber(num: any): boolean; /** * 是否为字符串 * @param str */ export declare function isString(str: any): boolean; export declare const isStrictWechatMiniProgram: boolean; export declare const isStrictMiniApp: boolean; /** * 简单实现 lodash.get 的取值方式 * eg: a[3].b -> a.3.b * @param source * @param path * @param defaultValue */ export declare function get(source: any, path: any, defaultValue?: string): any; export declare function guid(prefix?: string): string; export declare function useGuid(prefix?: string): string;