// 任意样式单位转换工具 // 定义选项的类型 interface Px2RpxOptions { unitToConvert?: string; viewportWidth?: number; unitPrecision?: number; viewportUnit?: string; fontViewportUnit?: string; fullViewportWidth?: number; selectorBlackList?: any[]; propList?: string[]; minPixelValue?: number; mediaQuery?: boolean; replace?: boolean; landscape?: boolean; landscapeUnit?: string; landscapeWidth?: number; exclude?: any; include?: any; } // 定义 px2rpx 函数 declare function px2rpx(options?: Px2RpxOptions): any; // 导出函数 export = px2rpx;