import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit'; import { SbbElement } from '../core/base-elements.ts'; import { FormRestoreReason, FormRestoreState } from '../core/mixins.ts'; declare const SbbSliderElement_base: import('../core/mixins.ts').AbstractConstructor & import('../core/mixins.ts').AbstractConstructor & import('../core/mixins.ts').AbstractConstructor & typeof SbbElement; /** * It displays an input knob that can be moved in a range. * * @slot prefix - Use this slot to render an icon on the left side of the input. * @slot suffix - Use this slot to render an icon on the right side of the input. * @event {InputEvent} input - The input event fires when the value has been changed as a direct result of a user action. */ export declare class SbbSliderElement extends SbbSliderElement_base { static readonly elementName: string; static readonly role = "slider"; static styles: CSSResultGroup; static readonly events: { readonly didChange: "didChange"; }; /** * Value of the form element. * If no value is provided, default is the middle point between min and max. */ set value(value: string | null); get value(): string; private _value; /** Numeric value for the inner HTMLInputElement. */ set valueAsNumber(value: number | null); get valueAsNumber(): number | null; /** Minimum acceptable value for the inner HTMLInputElement. */ set min(value: string); get min(): string; private _min; /** Maximum acceptable value for the inner HTMLInputElement. */ set max(value: string); get max(): string; private _max; /** Name of the icon at component's start, which will be forward to the nested `sbb-icon`. */ accessor startIcon: string; /** Name of the icon at component's end, which will be forward to the nested `sbb-icon`. */ accessor endIcon: string; /** * Form type of element. * @default 'range' */ get type(): string; /** Reference to the inner HTMLInputElement with type='range'. */ private _rangeInput; constructor(); protected willUpdate(changedProperties: PropertyValues): void; /** * The reset value is the attribute value (the setup value). If not present, calculates the default. * @internal */ formResetCallback(): void; /** * @internal */ formStateRestoreCallback(state: FormRestoreState | null, _reason: FormRestoreReason): void; /** * If no value is provided, default is the middle point between min and max * (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#value) */ private _defaultValue; private _isValidNumber; /** * Restrains the value between the min and max */ private _boundBetweenMinMax; private _valueFraction; private _handleKeydown; /** Emits the change event. */ private _dispatchChangeEvent; protected render(): TemplateResult; } declare global { interface HTMLElementTagNameMap { 'sbb-slider': SbbSliderElement; } } export {}; //# sourceMappingURL=slider.component.d.ts.map