/*! Strand UI | MIT License | dillingerstaffing.com */ import type { JSX } from "preact"; export type StarRatingSize = "sm" | "md" | "lg"; export interface StarRatingProps extends Omit, "onChange" | "role" | "aria-label" | "size"> { /** 0 through count; 0 is unset. */ value: number; /** Called with the new value, 1 through count, or 0 when allowClear re-selects the current star. */ onChange?: (value: number) => void; /** Number of stars. */ count?: number; /** Selecting the current star again clears the rating. */ allowClear?: boolean; size?: StarRatingSize; /** Renders as an image named "{value} of {count} stars"; no controls. */ readOnly?: boolean; /** Accessible name for the group. */ ariaLabel: string; className?: string; } /** * Star rating control: each star is a radio; arrows, Home and End move the rating. * * @example * */ export declare function StarRating({ value, onChange, count, allowClear, size, readOnly, ariaLabel, className, ...rest }: StarRatingProps): JSX.Element; //# sourceMappingURL=StarRating.d.ts.map