import { EventEmitter } from "../../stencil-public-runtime"; import { StzhAmountChangeEvent } from "../../index"; import { StzhAmountLocalizedText } from "./stzh-amount.localization"; export declare class StzhAmount { /** The lowest allowed amount (can be negative). */ minValue: number; /** The highest allowed amount. */ maxValue: number; /** The lowest amount as option in the dropdown. Needs to be set to initially display a dropdown. */ minValueDropdown: number | null; /** The highest amount as option in the dropdown. Needs to be set to initially display a dropdown. */ maxValueDropdown: number | null; private _showDropdown; private _dropdownOptions; /** The initial value of the amount element */ value: string; /** The step the amount can be increased or decreased */ step: number; /** Name of the element (hidden select element in case of dropdown) */ name: string; /** Size variant */ size: "default" | "small"; /** Whether the amount component is disabled */ disabled: boolean; /** Popover placement for the dropdown (if applicable) */ popoverPlacement: "bottom" | "bottom-end" | "bottom-center" | "top" | "top-end" | "top-center"; /** Label */ label: string; /** Whether label is hidden. */ labelHidden: boolean; /** Invalid status */ invalid: boolean; /** Required status */ required: boolean; /** Whether clearable button is showing for the input field (does not apply to dropdown) */ clearable: boolean; /** Hide `(optional)` label (or use `required` inside form to hide it) */ hideOptional: boolean; /** Description placed below the amount */ description: string; /** Long description message appearing in a popover */ descriptionLong: string; /** One or multiple error message(s) */ error: string | string[]; /** Id of the element which describes the input */ a11yDescribedby: string; /** Translation strings. */ localization: StzhAmountLocalizedText; minMaxValueDropdownWatcher(): void; /** Amount change event */ stzhChange: EventEmitter; element: HTMLStzhAmountElement; private readonly uid; private input; private onRootFocus; /** Fill the dropdown with options according to maxValueDropdown & minValueDropdown. */ private setDropdownOptions; private get dropdownItemPlusValue(); /** Handling dropdown changes (switch to input stepper if the plus option is selected in the dropdown). */ private onDropdownChange; /** Handling the minus button. */ private onInputMinusStepClick; /** Handling the plus button. */ private onInputPlusStepClick; /** Handling manual value change of the stepper input. */ private onStepperInputChange; /** Making sure, that the value is rounded correctly according to the step */ private roundToStep; componentWillLoad(): Promise; private renderDropdown; private renderInputStepper; render(): any; }