import { LitElement, type CSSResultGroup, type PropertyValues, type TemplateResult } from "lit"; import { getFormValue } from "../utils/index.ts"; import { PinwheelItem } from "./item/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 Used to select options. * * @tag tapsi-pinwheel * * @slot - The default slot for the content. * * @fires {Event} change - Fires when the pinwheel selected state changes. (bubbles) */ export declare class Pinwheel extends BaseClass { /** @internal */ static readonly styles: CSSResultGroup; /** @internal */ static shadowRootOptions: ShadowRootInit; /** * Defines the minimum allowed value for pinwheel. * Use it when your items' values are sequential numbers. * * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuemin * * @prop {string} valueMin * @attr {string} valuemin * @default "" */ valueMin: string; /** * Defines the maximum allowed value for pinwheel. * Use it when your items' values are sequential numbers. * * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuemax * * @prop {string} valueMax * @attr {string} valuemax * @default "" */ valueMax: 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 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 false */ autofocus: boolean; private _spinArias; private _noTransition; private _root; private _container; private _isProgrammaticallyScrolling; constructor(); protected updated(changed: PropertyValues): void; protected firstUpdated(changed: PropertyValues): void; private _getScrollDistance; /** * The selected pinwheel item. */ get selectedItem(): PinwheelItem | null; /** * The value of the pinwheel. */ get value(): string; /** * Sets the scroll view on the provided item. * * @param item The item to set the view on. */ setViewOnItem(item: PinwheelItem): void; /** @internal */ focus(options?: FocusOptions): void; /** @internal */ blur(): void; private get _items(); private _selectFirstItem; private _emitValueChange; private _handleKeyDown; private _handleScroll; private _getClosestFrameNumber; /** @internal */ formDisabledCallback(disabled: boolean): void; /** @internal */ [getFormValue](): string; /** @internal */ formResetCallback(): void; /** @internal */ formStateRestoreCallback(state: string): void; protected render(): TemplateResult; } export {};