import type { Px2RemOptions } from './px2rem'; export type { Px2RemOptions } from './px2rem'; /** * 增强的 css 函数,自动将模板字符串中的 px 值转换为 rem * * 使用方式: * ```ts * import { css } from '../style'; * * const styles = css` * width: 100%; * padding: 12px 24px; // 自动转换为 padding: 0.12rem 0.24rem; * font-size: 16px; // 自动转换为 font-size: 0.16rem; * `; * ``` * * 配置选项: * - rootValue: rem 基准值,默认 100(1rem = 100px) * - minPixelValue: 最小转换值,默认 2 * - exclude: 排除的属性列表 */ export interface CssWithRemOptions extends Px2RemOptions { /** 是否启用自动转换,默认 true */ enabled?: boolean; } /** * 创建增强的 css 函数包装器 * @param originalCss antd-style 的原始 css 函数 * @param options 配置选项 * @returns 增强的 css 函数 */ export declare const createCssWithRem: (originalCss: typeof import('antd-style').css, options?: CssWithRemOptions) => import("antd-style/lib/core").SerializeCSS; export declare const createKeyframesWithRem: (originalKeyframes: typeof import('antd-style').keyframes, options?: CssWithRemOptions) => { (template: TemplateStringsArray, ...args: import("@emotion/serialize").CSSInterpolation[]): string; (...args: import("@emotion/serialize").CSSInterpolation[]): string; };