import React, { type AnchorHTMLAttributes, type ReactElement, type ReactNode } from "react"; import { type IconTextSize, type IconTextPos } from "./types"; export type IconTextProps = { /** 単体アイコンのとき(`prependIcon`/`appendIcon` 未指定時)。 */ icon?: ReactElement; size?: IconTextSize; /** 単体 `icon` の配置。両端アイコン指定時は無視される。 */ pos?: IconTextPos; /** テキスト左側のアイコン。`appendIcon` と同時指定可。その場合 `icon` / `pos` は無視。 */ prependIcon?: ReactElement; /** テキスト右側のアイコン。同上。 */ appendIcon?: ReactElement; /** * テキストとアイコンの共通デフォルト色(CSS カラー)。 * 非リンク時: 省略時は黒。`iconColor` / `textColor` で個別上書き可。 * リンク時: 共通色には使わず(プライマリが既定)。個別指定は `iconColor` / `textColor`。 */ color?: string; /** アイコン色のみ指定。省略時は `color`(非リンク)またはプライマリ(リンク)にフォールバック */ iconColor?: string; /** テキスト色のみ指定。省略時は `color`(非リンク)またはプライマリ(リンク)にフォールバック */ textColor?: string; children: ReactNode; } & Omit, "color">; export declare const IconText: ({ icon, size, pos, prependIcon, appendIcon, color, iconColor, textColor, children, ...rest }: IconTextProps) => React.JSX.Element;