/// /** * 设备是否支持触摸事件 */ export declare function supportTouch(): boolean; export declare function uuid(): string; export declare function isMobile(): boolean; export declare function colorReverse(oldColor: any): string; export declare const isPureWhite: (color?: string) => boolean; export declare const isIos: () => boolean; export declare const addFocusToInputTypeElement: (node: any) => void; export declare const getPropertiesByAttributes: (keys?: any[]) => {}; export declare const defineElement: (name: any, element: any) => void; export declare const converterForPx: { fromAttribute: (value?: string) => string; }; export declare function shouldEnableFor(feature: boolean | string[] | ((pagePath: string, pageOptions: Record) => boolean), pagePath: string, pageOptions: Record): boolean | undefined; export declare function getPageConfig(config: Record | ((pagePath: string, pageOptions: Record) => Record), pagePath: string, pageOptions: Record): Record; export declare const getCurrentPageParams: (keys?: any[]) => Record; export declare const getCurrentPagePath: () => any; export declare const requestAnimationFrame: (callback: any) => number | NodeJS.Timeout; export declare function getQueryParams(url: any): {}; export declare const isUndefined: (param: any) => boolean; export declare const isFunction: (param: any) => boolean; export declare const isObject: (param: any) => boolean; export declare const isTypeOf: (param: any, type: any) => boolean; declare type NavItemType = number | string | ((page: string, pageOptions: Record) => number | string); export interface NavConfigType { statusBarHeight?: NavItemType; titleBarHeight?: NavItemType; } /** * 根据导航配置和页面路径获取导航属性 * @param {navConfig} nav - 导航配置对象 * @param {string} pagePath - 当前页面路径 * @param {string} pageOptions - 当前页面 query 对象 * @returns {Object} 包含状态栏高度和标题栏高度的对象 */ export declare function getNav(nav: NavConfigType, pagePath: string, pageOptions: Record): {}; export {};