import { FocusMonitor } from '@angular/cdk/a11y'; import { NumberInput, BooleanInput } from '@angular/cdk/coercion'; import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, EventEmitter, QueryList, ElementRef, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i2 from '@aposin/ng-aquila/icon'; import { IconSize } from '@aposin/ng-aquila/icon'; import * as i1 from '@angular/common'; declare class NxRatingComponent implements ControlValueAccessor, AfterViewInit, OnDestroy { private readonly _cdr; private readonly _focusMonitor; /** @docs-private */ readonly radioGroupName: string; getRadioInputId(index: number): string; /** @docs-private */ readonly radioInputIds: string[]; set size(newSize: IconSize); get size(): IconSize; private _size; /** Sets the selected rating 1 - 5. */ set value(newValue: NumberInput); get value(): number; private _value; private _hover; /** Whether the rating component should be disabled. */ set disabled(newValue: BooleanInput); get disabled(): boolean; private _disabled; /** Whether the negative colors be used. */ set negative(newValue: BooleanInput); get negative(): boolean; private _negative; /** Sets the label painted at the start of the rating component. */ set startLabel(newValue: string); get startLabel(): string; private _startLabel; /** Sets the label painted at the end of the rating component. */ set endLabel(newValue: string); get endLabel(): string; private _endLabel; /** * @deprecated use ariaRatingLabels instead. Will be deleted with version 20 * Sets an array of custom aria-label attributes for each of the stars in the component. */ set ariaLabel(newAriaLabels: string[]); get ariaLabel(): string[]; /** * Sets an array of custom aria-label attributes for the individual ratings. * @arg newAriaLabels - Array of strings with length=5 that includes the label for the individual rating icons */ set ariaRatingLabels(newAriaLabels: string[]); get ariaRatingLabels(): string[]; private _ariaRatingLabels; set ariaRatingGroupLabel(ariaLabel: string | null); get ariaRatingGroupLabel(): string | null; private _ariaRatingGroupLabel; set iconColor(color: string); get iconColor(): string; private _iconColor; /** An event is dispatched each time when the rating changes. */ readonly valueChange: EventEmitter; /** @docs-private */ radioInputs: QueryList; private onTouchedCallback; private onChangeCallback; constructor(_cdr: ChangeDetectorRef, _focusMonitor: FocusMonitor); ngAfterViewInit(): void; ngOnDestroy(): void; /** Whether the given rating is selected. */ isSelected(index: number): boolean; isVisuallyChecked(rating: number): boolean; /** Allows to set the rating. */ setSelection(value: number): void; /** @docs-private */ handleKeyUp(event: KeyboardEvent, rating: number): void; writeValue(value: number): void; registerOnChange(callback: (option: any) => any): void; registerOnTouched(callback: () => void): void; setDisabledState(isDisabled: boolean): void; /** @docs-private */ getAriaLabel(rating: number): string; /** @docs-private */ getIconName(rating: number): string; /** @docs-private */ setHover(rating: number): void; handleChange(ratingValue: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NxRatingModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NxRatingComponent, NxRatingModule };