import { type RootElementType } from './types.js'; export declare const isObject: (o: unknown) => boolean; /** * Round off the last decimal place * @param num input for fixed * @param precision We keep how many places behind the decimal point */ export declare const toFixed: (num: number, precision: number) => number; /** * The properties that should not change from px to rem Values need to be exact matches. * @param prop The declaration's property name. e.g. margin, font-size, ... * @param blackList Values need to be exact matches. * @returns true indicates should not change unit; otherwise enabled current convert loop. */ export declare const blacklistedProp: (prop: string, blackList?: Array) => boolean; /** * The properties that can change from px to rem * Default is an empty array that means disable the white list and enable all properties. * @param prop The declaration's property name. e.g. margin, font-size, ... * @param whiteList Values need to be exact matches. * @returns true indicates enabled all properties. otherwise false. */ export declare const passedWhiteListProp: (prop: string, whiteList?: Array) => boolean; /** * The selectors to ignore and leave as px * @example * If value is string, it checks to see if selector contains the string. * ['body'] will match .body-class * If value is regexp, it checks to see if the selector matches the regexp. * [/^body$/] will match body but not .body * @param selector * @param selectorBlackList The selectors to ignore and leave as px * @returns true indicates should not change unit; otherwise enabled current convert loop. */ export declare const blacklistedSelector: (selector: string, selectorBlackList?: Array) => boolean; /** * @example * const input = 'h1 { margin: 0 0 00.5px 16px; border-width: 001px; font-size: 32px; font-family: "16px"; }'; * const output = 'h1 { margin: 0 0 .5px 0.16rem; border-width: 1px; font-size: 0.32rem; font-family: "16px"; }'; * @param identifier single property will be ignored * @param unit 'px' or 'rpx' or 'px|rpx' */ export declare const handleIgnoreIdentifierRegex: (identifier: string, unit: string) => RegExp; /** * Create an replacer for style decleration value string . */ export declare const createPxReplace: (rootValue: RootElementType, unitPrecision: number, minPixelValue: number, unit: string, identifier?: string) => ((...args: string[]) => string);