/** * CSS-in-JS rem 转换配置 * * 此配置与 smallfish.config.ts 中的 px2rem 配置保持一致 * 用于统一管理 rem 转换的基准值和规则 */ export interface RemConfig { /** rem 基准值,默认 100(即 1rem = 100px,移动端常见配置) */ rootValue: number; /** 最小转换值,小于此值的 px 不转换,默认 2 */ minPixelValue: number; /** 是否启用自动转换,默认 true */ enabled: boolean; /** 排除的属性列表,这些属性的 px 值不会被转换 */ exclude: string[]; } /** * 默认配置 * 与 smallfish.config.ts 中的 hd.px2rem 配置保持一致 */ export declare const DEFAULT_REM_CONFIG: RemConfig; /** * 获取 rem 配置 * 可以通过环境变量或运行时配置覆盖默认值 */ export declare const getRemConfig: () => RemConfig; /** * 非 px 属性列表 * 这些属性通常使用数字而不是 px 单位,不应该转换 */ export declare const NON_PX_PROPERTIES: Set; /** * 尺寸属性列表 * 这些属性通常使用 px 单位,应该转换为 rem */ export declare const SIZE_PROPERTIES: Set;