import { Color } from '@ionic/core'; /** * Metadata for the rating component. */ export interface RatingMetadata { /** Current rating value */ value: number; /** Maximum rating value */ max?: number; /** Icon name for filled state */ icon?: string; /** Icon name for empty state */ iconEmpty?: string; /** Icon name for half state */ iconHalf?: string; /** Allow half values */ allowHalf?: boolean; /** Readonly mode */ readonly?: boolean; /** Disabled state */ disabled?: boolean; /** Rating color */ color?: Color; /** Empty icon color */ emptyColor?: Color; /** Size variant */ size?: 'small' | 'medium' | 'large'; /** Show numeric value */ showValue?: boolean; /** Unique token identifier */ token?: string; } /** * Event emitted when rating changes. */ export interface RatingChangeEvent { /** New rating value */ value: number; /** Previous rating value */ previousValue: number; }