import * as React from "react"; export type RatingProps = { value?: number; defaultValue?: number; onValueChange?: (value: number) => void; /** Number of symbols. This library's older name for antd's `count`; both are accepted. */ max?: number; /** antd `count` — number of symbols. Default 5. */ count?: number; /** * antd `allowHalf` — a symbol can be half-filled, so the scale is 0.5 … count in steps of 0.5. * The keyboard steps by a half too, and each symbol becomes TWO hit areas (leading / trailing). */ allowHalf?: boolean; /** * antd `allowClear` — choosing the value that is already chosen clears it back to 0. On by * default in antd; off here, because a rating inside a form is usually required and a silent * reset on a second click reads as a lost answer. */ allowClear?: boolean; /** * antd `character` — what a symbol IS. A node for every symbol, or a function of the 1-based * index for a scale whose symbols differ (A/B/C, 松竹梅, a heart for the top step). */ character?: React.ReactNode | ((index: number) => React.ReactNode); /** * antd `tooltips` — a label per step, in order. It is folded into each symbol's ACCESSIBLE NAME * rather than shown only on hover: a `title` attribute is invisible to a keyboard and to touch, * and the whole point of the prop is to say what "3 of 5" means. */ tooltips?: readonly string[]; readOnly?: boolean; disabled?: boolean; name?: string; className?: string; "aria-label"?: string; }; export declare const Rating: React.ForwardRefExoticComponent>;