/**
 * CvssBadge type definitions
 * @countermeasure/web-components/security/cvss-badge
 */

export interface CvssBadgeConfig {
  /** Container element (or selector) the badge is mounted into. */
  container: HTMLElement | string
  /** CVSS base score in the `0.0`–`10.0` range. Drives severity color. */
  score: number
  /** CVSS specification version this score was calculated against. */
  version?: '3.0' | '3.1' | '4.0'
  /** Full CVSS vector string (e.g. `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`). */
  vector?: string
  /**
   * Render the vector string next to the score. Requires `vector` to be set.
   * @default false
   */
  showVector?: boolean
  /**
   * Visual size of the badge.
   * @default 'md'
   */
  size?: 'sm' | 'md' | 'lg'
  /** Additional CSS class names. */
  className?: string
}
