import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { RatingContext, RatingItemDescriptor } from "../../composables/createRating/index.mjs"; import { MaybeRefOrGetter, Ref, ShallowRef } from "vue"; //#region src/components/Rating/RatingRoot.vue.d.ts interface RatingRootContext extends RatingContext { /** Form field name */ readonly name?: string; /** Hovered value (UI concern) */ hoveredValue: ShallowRef; /** Whether user is hovering */ isHovering: Readonly>; /** Whether interaction is disabled */ isDisabled: Readonly>; /** Whether rating is readonly */ isReadonly: Readonly>; } interface RatingRootProps extends AtomProps { /** Current rating */ modelValue?: number; /** Total items (default: 5) */ size?: number; /** Enable 0.5 increments */ half?: boolean; /** Disable interaction */ disabled?: boolean | MaybeRefOrGetter; /** Show value, prevent changes */ readonly?: boolean | MaybeRefOrGetter; /** Accessible name for the slider */ ariaLabel?: string; /** ID of element that labels this slider */ ariaLabelledby?: string; /** Form field name — triggers hidden input */ name?: string; /** Namespace for context provision */ namespace?: string; } interface RatingRootSlotProps { /** Current rating value */ value: number; /** Array of rating items */ items: RatingItemDescriptor[]; /** Whether user is hovering */ isHovering: boolean; /** Whether rating is disabled */ isDisabled: boolean; /** Whether rating is readonly */ isReadonly: boolean; /** Pre-computed attributes for binding */ attrs: { 'role': 'slider'; 'tabindex': 0 | -1; 'aria-valuenow': number; 'aria-valuemin': 0; 'aria-valuemax': number; 'aria-valuetext': string; 'aria-label': string | undefined; 'aria-labelledby': string | undefined; 'aria-disabled': boolean; 'aria-readonly': true | undefined; 'data-disabled': true | undefined; 'data-readonly': true | undefined; 'data-hovering': true | undefined; 'onKeydown': (e: KeyboardEvent) => void; 'onPointerleave': () => void; }; } declare const useRatingRoot: (key: string, defaultValue?: RatingRootContext | undefined) => RatingRootContext, provideRatingRoot: (key: string, context: RatingRootContext, app?: import("vue").App) => RatingRootContext; declare const _default: typeof __VLS_export; declare const __VLS_export: __VLS_WithSlots any; "update:model-value": (value: number) => any; }, string, import("vue").PublicProps, Readonly & Readonly<{ "onUpdate:modelValue"?: ((value: number) => any) | undefined; "onUpdate:model-value"?: ((value: number) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { default: (props: RatingRootSlotProps) => any; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion export { RatingRootContext, RatingRootProps, RatingRootSlotProps, _default as default, provideRatingRoot, useRatingRoot };