import { Properties } from 'csstype'; export declare function removeInvalidStyleFormValue(styleForm?: any): any; /** * Convert WeApps common style to css styles(React.CSSProperties) * toRem/toRpx/toRpx 三者互斥 @deprecated * 应使用 defaultUnit 来声明 */ export declare function processCommonStyle2CSSProperties(commonStyle?: any, options?: { /** * 默认 px/无单位 转 rem * @deprecated */ toRem?: boolean; /** * 默认 px/无单位 转为rpx * @deprecated */ toRpx?: boolean; /** * px/无单位情况下 处理为何单位 * rem | rpx | px * 优先级高于以上 */ defaultUnit?: 'rem' | 'px' | 'rpx'; /** * 是否使用 calc(xx px / `${rpxCalcRoot}`) 来模拟rpx * 小程序不需要转 */ rpxCalcRoot?: string; ignoreSelf?: boolean; addPXUnit?: boolean; }): Properties; interface ITranslateStyleOptions { looseError?: boolean; rpxCalcRoot?: string; } /** * @deprecated */ export declare function processCSSProperties2Rem(style?: Properties, options?: ITranslateStyleOptions): Properties; export declare function processCSSPropertiesUnit(style: Properties, type: 'px' | 'rem' | 'rpx', options?: ITranslateStyleOptions): {}; export {}; //# sourceMappingURL=style.d.ts.map