import { EventEmitter } from "../../stencil-public-runtime"; import { StzhLocaleComponent, StzhRatingBlurEvent, StzhRatingChangeEvent, StzhRatingFocusEvent } from "../../index"; /** * @slot description - Slot for description * @slot description-long - Slot for long description (in popover) * @slot error - Slot for error */ export declare class StzhRating { /** Translation strings */ localization: StzhLocaleComponent; /** Initial rating value (min. 0, max. 5) */ value: number; /** Disabled */ disabled: boolean; /** Readonly */ readonly: boolean; /** Invalid status */ invalid: boolean; /** Required status */ required: boolean; /** Hide `(optional)` label (or use `required` inside form to hide it) */ hideOptional: boolean; /** Form name (hidden input) */ name: string; /** Label (or use default slot) */ label: string; /** * For Adobe Analytics. * Will be rendered as value of `s-object-id` attribute on the rating items. * Default value will be taken from `label` prop. */ analyticsId: string; /** Whether label should be visually hidden */ labelHidden: boolean; /** Description message (use description slot as alternative) */ description: string; /** Long description message appearing in a popover */ descriptionLong: string; /** One or multiple error message */ error: string | string[]; private _error; /** Size variant */ size: "default" | "small"; /** Extra aria-describedby id(s) */ a11yDescribedby: string; /** Hover index (preview) */ private hoverIndex; /** Roving tabindex: which item is tabbable; null = only container */ private tabbableIndex; /** True if interaction by keyboard */ private userKeyFocused; element: HTMLElement; /** Change event */ stzhChange: EventEmitter; /** Focus event */ stzhFocus: EventEmitter; /** Blur event */ stzhBlur: EventEmitter; handleFocusOut(ev: FocusEvent): void; handleFocusIn(ev: FocusEvent): void; private readonly uid; private containerEl?; private ratingButtons; errorWatcher(newValue: string | string[]): void; componentWillLoad(): Promise; private clampRatingValue; setValue(ratingValue: number): Promise; /** Visual value (hover preview included) */ private get displayValue(); private onMouseEnter; private onMouseLeave; private onClick; private setTabbableAndFocus; private handleStep; private onContainerKeyDown; private onRatingItemKeyDown; private get errorUsed(); render(): any; }