import { HawkSearchComponents, RatingComponentConfig } from '../../../configuration'; import { RatingComponentModel } from '../../../models'; import { BaseComponent } from '../../base.component'; /** * The Rating component is used to display a visual representation of ratings for a particular product. * * ## Tag * The tag for this component is ``. * * ## Attributes * | Name | Type | Default Value | Required | * | :- | :- | :- | :- | * | rating | `number` | | Yes * * These attributes are used to position the tooltip based on the size and scroll position of the active window. The `hawksearch-tooltip` attribute should be present on an element containing both the element the tooltip is attached to (to display on hover) and the element containing the tooltip content, which should have a `hawksearch-tooltip-content` attribute. * * ## Handlebars Helpers * | Name | Rating | Star Number * | :- | :- | :- | * | ratingIcon | `number` | `number` | * * This helper function returns the icon name to display for a given rating and star number (1-5) * * ## Default Template * The following is the default Handlebars template for this component. To create a custom template, it is recommended to use this as a starting point. * {@embed ./rating.component.hbs} * * @category General */ export declare class RatingComponent extends BaseComponent { protected componentName: keyof HawkSearchComponents; protected defaultHtml: string; protected bindFromEvent: boolean; protected registerHelpers(): void; private get rating(); protected renderContent(): boolean; protected getContentModel(): RatingComponentModel; protected onRender(): void; }