/** * [WHO]: Rating component for tokenized star scoring and preference feedback. * [FROM]: React, class-variance-authority, registry/lib/utils. * [TO]: sparkdesign package consumers; Showcase; CLI registry copies. * [HERE]: registry/basic/rating.tsx — interactive or read-only rating primitive. * * [PROTOCOL]: * 1. Keep this P3 header in sync when the public contract changes. * 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change. * 3. Follow design tokens and explicit type exports. */ import * as React from 'react'; import { type VariantProps } from 'class-variance-authority'; declare const ratingVariants: (props?: ({ size?: "sm" | "md" | "lg" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; type RatingPrecision = 1 | 0.5; export interface RatingProps extends Omit, 'onChange'>, VariantProps { value?: number; defaultValue?: number; onValueChange?: (value: number) => void; max?: number; precision?: RatingPrecision; readOnly?: boolean; disabled?: boolean; showValue?: boolean; label?: string; } declare const Rating: React.ForwardRefExoticComponent>; export { Rating, ratingVariants }; export type { RatingPrecision };