/*! * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { ExtendedHTMLElement } from '../../helper/dom'; export type StarValues = 1 | 2 | 3 | 4 | 5; export interface StarsProps { classNames?: string[]; attributes?: Record; label?: HTMLElement | ExtendedHTMLElement | string; description?: ExtendedHTMLElement; value?: string; onChange?: (value: string) => void; initStar?: StarValues; wrapperTestId?: string; optionTestId?: string; } export declare class Stars { private readonly starsContainer; render: ExtendedHTMLElement; constructor(props: StarsProps); setValue: (star: StarValues) => void; getValue: () => string; setEnabled: (enabled: boolean) => void; }