import { SVGProps } from 'react'; /** Naive Icons 所有图标的通用 Props(继承原生 SVG 属性) */ interface IconProps extends SVGProps { /** 图标尺寸,宽高相等,默认 24。接受 null 以支持 `size={cond ? 32 : null}` 写法 */ size?: number | string | null; /** 描边颜色,默认墨色 #2A2A2A */ color?: string; /** 描边宽度,默认 3.5(相对 48x48 画布) */ strokeWidth?: number | string; /** 填充色,默认 none */ fill?: string; /** 无障碍标题 */ title?: string; } /** * 把语义化属性映射为原生 SVG 属性,供所有图标组件共享。 * width / height 优先于 size,没传的那一边回落到 size(size={32} width={64} → 64 × 32)。 */ declare function normalizeIconProps(props: IconProps): SVGProps; export { type IconProps as I, normalizeIconProps as n };