import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; export interface RatingChangeEvent { /** * Browser event */ originalEvent: Event; /** * Selected option value */ value: number; } export interface RatingProps { /** * Value of the rating. */ modelValue?: number | undefined; /** * Name of the element. */ name?: string | undefined; /** * When present, it specifies that the element should be disabled. */ disabled?: boolean | undefined; /** * When present, it specifies that component is read-only. */ readonly?: boolean | undefined; /** * Number of stars. * Default value is 5. */ stars?: number | undefined; /** * When specified a cancel icon is displayed to allow clearing the value. * Default value is true. */ cancel?: boolean | undefined; } export interface RatingSlots { } export declare type RatingEmits = { /** * Emitted when the value changes. * @param {number} value - New value. */ 'update:modelValue': (value: number) => void; /** * Callback to invoke when a suggestion is selected. * @param {RatingChangeEvent} event - Custom change event. */ 'change': (event: RatingChangeEvent) => void; } declare class Rating extends ClassComponent { } declare module '@vue/runtime-core' { interface GlobalComponents { Rating: GlobalComponentConstructor } } /** * * Rating component is a star based selection input. * * Demos: * * - [Rating](https://www.primefaces.org/primevue/showcase/#/rating) * */ export default Rating;