import * as _angular_core from '@angular/core';
import { QueryList, ElementRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import * as i1 from '@eui/components/shared';
import { BaseStatesDirective } from '@eui/components/shared';

/**
 * @description
 * Interactive star rating component for collecting user feedback and displaying rating values.
 * Implements ControlValueAccessor for seamless integration with Angular reactive and template-driven forms.
 * Supports keyboard navigation with arrow keys, Home, and End for accessibility.
 * Provides customizable number of stars and visual feedback for current rating state.
 * Commonly used for product reviews, feedback forms, and quality assessments.
 *
 * @usageNotes
 * ### Basic usage
 * ```html
 * <eui-rating [(rating)]="userRating"></eui-rating>
 * ```
 *
 * ### With reactive forms
 * ```typescript
 * ratingControl = new FormControl(3);
 * ```
 * ```html
 * <eui-rating [formControl]="ratingControl" [numberOfStars]="5"></eui-rating>
 * ```
 *
 * ### Disabled state
 * ```html
 * <eui-rating [rating]="4" [euiDisabled]="true"></eui-rating>
 * ```
 *
 * ### Accessibility
 * - Full keyboard navigation: Arrow keys to change rating, Home/End for first/last
 * - ARIA radiogroup role with proper labeling
 * - Each star is focusable and announces its value to screen readers
 * - Visual focus indicators for keyboard users
 *
 * ### Notes
 * - Click same star again to clear rating (set to 0)
 * - Only one star is focusable at a time (roving tabindex pattern)
 * - Emits `ratingChange` event on user interaction
 */
declare class EuiRatingComponent implements ControlValueAccessor {
    /**
     * Whether the toggle is disabled
     * @default false
     */
    euiDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /**
     * Current numbers of stars rating to display
     * @default 5
     */
    numberOfStars: _angular_core.InputSignalWithTransform<number, unknown>;
    /**
     * Current rating number
     * @default 0
     */
    rating: _angular_core.InputSignalWithTransform<number, unknown>;
    /**
     * Binds the aria-label attribute to the component.
     * @default 'eUI Rating'
     */
    ariaLabel: _angular_core.InputSignal<string>;
    /**
     * Event emitted when toggle state changes
     * @emits number - The new rating value
     */
    ratingChange: _angular_core.OutputEmitterRef<number>;
    ratingButtons: QueryList<ElementRef>;
    protected baseStatesDirective: BaseStatesDirective;
    protected internalRating: _angular_core.WritableSignal<number>;
    protected internalDisabled: _angular_core.WritableSignal<boolean>;
    protected cssClasses: _angular_core.Signal<string>;
    protected numbers: _angular_core.Signal<any[]>;
    constructor();
    /**
     * Implements ControlValueAccessor
     * Updates the toggle's checked state
     */
    writeValue(value: number): void;
    /**
     * Implements ControlValueAccessor
     * Updates the rating's disabled state
     */
    setDisabledState(isDisabled: boolean): void;
    /**
     * Handles focus out event
     * Notifies form control of touch event
     */
    onFocusOut(): void;
    /**
     * Implements ControlValueAccessor
     * Registers change handler
     * @todo Improve type definition or make generic
     */
    registerOnChange(fn: any): void;
    /**
     * Implements ControlValueAccessor
     * Registers touch handler
     * @todo Improve type definition or make generic
     */
    registerOnTouched(fn: any): void;
    /**
     * Actions applied upon a keydown event
     *
     * @param event The keyboard event
     * @param index The index of the current star button
     */
    protected onKeydown(event: KeyboardEvent, index: number): void;
    /**
     * Toggles the current state if not disabled
     * Emits the new state and notifies form control
     */
    protected onUpdate(rating: number): void;
    /**
     * Updates the checked state of the star button based on the index
     * @param index The index of the star button
     * @returns boolean - true if the index matches the rating, false otherwise
     */
    protected updateCheckedState(index: number): boolean;
    /**
     * Returns the tab index value based on the current rating and index
     * @param index The index of the star button
     * @returns number - 0 if the star is focusable, -1 otherwise
     */
    protected getTabIndexValue(index: number): number;
    private updateRating;
    private onChange;
    private onTouch;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<EuiRatingComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<EuiRatingComponent, "eui-rating", never, { "euiDisabled": { "alias": "euiDisabled"; "required": false; "isSignal": true; }; "numberOfStars": { "alias": "numberOfStars"; "required": false; "isSignal": true; }; "rating": { "alias": "rating"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "ratingChange": "ratingChange"; }, never, never, true, [{ directive: typeof i1.BaseStatesDirective; inputs: {}; outputs: {}; }]>;
}

declare const EUI_RATING: readonly [typeof EuiRatingComponent];

export { EUI_RATING, EuiRatingComponent };
//# sourceMappingURL=eui-components-eui-rating.d.ts.map
