import type { ForwardRefComponent } from '@fluentui/react-utilities'; import type { RatingBaseProps } from '@fluentui/react-rating'; import type { RatingBaseState } from '@fluentui/react-rating'; import type { RatingContextValues as RatingContextValues_2 } from '@fluentui/react-rating'; import type { RatingItemBaseProps } from '@fluentui/react-rating'; import type { RatingItemBaseState } from '@fluentui/react-rating'; import { RatingItemSlots as RatingItemSlots_2 } from '@fluentui/react-rating'; import type { RatingSlots as RatingSlots_2 } from '@fluentui/react-rating'; import * as React_2 from 'react'; import { renderRating_unstable as renderRating } from '@fluentui/react-rating'; import { renderRatingItem_unstable as renderRatingItem } from '@fluentui/react-rating'; /** * A rating component for displaying star ratings. */ export declare const Rating: ForwardRefComponent; /** * Rating component context values */ declare type RatingContextValues = RatingContextValues_2; /** * A RatingItem component representing a single star/icon within a Rating. */ export declare const RatingItem: React_2.ForwardRefExoticComponent, "root"> & Omit<{ as?: "span" | undefined; } & Omit, HTMLSpanElement>, "children"> & { children?: any; }, "ref"> & { value?: number; } & React_2.RefAttributes>; /** * RatingItem component props */ export declare type RatingItemProps = RatingItemBaseProps; /** * RatingItem component slots */ export declare type RatingItemSlots = RatingItemSlots_2; /** * RatingItem component state */ export declare type RatingItemState = RatingItemBaseState & { root: { /** * Data attribute reflecting the appearance of the rating item. Value is 'filled', 'filled-half', or 'outline'. */ 'data-appearance'?: 'filled' | 'filled-half' | 'outline'; }; }; /** * Rating component props */ export declare type RatingProps = RatingBaseProps; /** * Rating component slots */ export declare type RatingSlots = RatingSlots_2; /** * Rating component state */ export declare type RatingState = RatingBaseState; export { renderRating } export { renderRatingItem } /** * Returns the state for a Rating component, given its props and ref. * The returned state can be modified with hooks before being passed to `renderRating`. */ export declare const useRating: (props: RatingProps, ref: React_2.Ref) => RatingState; export declare const useRatingContextValues: (state: RatingState) => RatingContextValues; /** * Returns the state for a RatingItem component, given its props and ref. * The returned state can be modified with hooks before being passed to `renderRatingItem`. */ export declare const useRatingItem: (props: RatingItemProps, ref: React_2.Ref) => RatingItemState; export { }