import { AssetMeta } from "../types.mjs"; import { AssetSvgProps } from "./props.mjs"; import { ForwardRefExoticComponent, RefAttributes } from "react"; //#region src/runtime/create-variant-svg-asset.d.ts /** Props for a variant asset: the shared SVG props plus a `variant` selector. */ type VariantSvgProps = AssetSvgProps & { /** Which variant to render. Defaults to the family's default variant when omitted. */ variant?: K; }; /** * A generated inline-SVG component for a family of numbered variants (e.g. the two "noir * hog" illustrations). Renders the default variant with no prop and switches on * `variant="…"`. Carries the base `.meta` and the ordered `.variants` keys as statics. */ interface VariantSvgAssetComponent extends ForwardRefExoticComponent & RefAttributes> { meta: AssetMeta; /** Available variant keys, in display order. */ variants: readonly K[]; } //#endregion export { VariantSvgAssetComponent, VariantSvgProps };