import { LitElement, type CSSResultGroup, type PropertyValues, type TemplateResult } from "lit"; import { getFormValue } from "../utils/index.ts"; declare const BaseClass: import("../utils/index.ts").MixinReturn<(abstract new (...args: any[]) => import("../utils/index.ts").WithElementInternals) & typeof LitElement & import("../utils/mixins/with-form-associated.ts").FormAssociatedConstructor, import("../utils/index.ts").FormAssociated>; /** * @summary A simple input component that allows users to increment or decrement a numeric value using the provided buttons. * * @tag tapsi-stepper * * @fires {Event} change - Fires when value changes. (bubbles) */ export declare class Stepper extends BaseClass { /** @internal */ static readonly styles: CSSResultGroup; /** @internal */ static shadowRootOptions: ShadowRootInit; private _value; /** * The unit of the value. * * @prop {string} unit * @attr {string} unit * @default "" */ unit: string; /** * The size of the input. * * @prop {"sm" | "md"} size * @attr {"sm" | "md"} size * @default "md" */ size: "sm" | "md"; /** * The current value of the input. * * @prop {string} value * @default "0" */ get value(): string; set value(newValue: string); /** * Defines the human-readable text alternative of value. * * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetext * * @prop {string} valueText * @attr {string} valuetext * @default "" */ valueText: string; /** * Defines a string value that can be used to name input. * * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label * * @prop {string} label * @attr {string} label * @default "" */ label: string; /** * Identifies the element (or elements) that labels the input. * * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby * * @prop {string} labelledBy * @attr {string} labelledby * @default "" */ labelledBy: string; /** * Indicates whether a user should be able to edit the input's value. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly * * @prop {boolean} readOnly * @attr {string} readonly * @default "" */ readOnly: boolean; /** * Defines the maximum value in the range of permitted values. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max * * @prop {string} [max="100"] * @attr {string} max * @default "100" */ max: string; /** * Defines the minimum value in the range of permitted values. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min * * @prop {string} min * @attr {string} min * @default "" */ min: string; /** * Returns or sets the element's step attribute, which works with min and max * to limit the increments/decrements at which the input value can be set. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step * * @prop {string} step * @attr {string} step * @default "1" */ step: string; /** * Indicates that the element should be focused on page load. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus * * @prop {boolean} autofocus * @attr {string} autofocus * @default "" */ autofocus: boolean; constructor(); /** @internal */ connectedCallback(): void; /** @internal */ disconnectedCallback(): void; protected firstUpdated(changed: PropertyValues): void; protected updated(changed: PropertyValues): void; /** * The input's value as a number. * * @prop {number} valueAsNumber * @default 0 */ get valueAsNumber(): number; set valueAsNumber(value: number); /** * Decrements the value of the input. * * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown * * @param {number} [stepDecrement] - The number of steps to decrement. */ stepDown(stepDecrement?: number): void; /** * Increments the value of the input. * * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp * * @param {number} [stepIncrement] - The number of steps to increment. */ stepUp(stepIncrement?: number): void; /** @internal */ focus(options?: FocusOptions): void; /** @internal */ blur(): void; /** @internal */ formDisabledCallback(disabled: boolean): void; /** @internal */ [getFormValue](): string; /** @internal */ formResetCallback(): void; /** @internal */ formStateRestoreCallback(state: string): void; private _handleKeyDown; private _handleIncrease; private _handleDecrease; private _emitValueChange; private _renderUnit; protected render(): TemplateResult; } export {};