import { EventEmitter } from '../../stencil-public-runtime';
import { FormControlState } from '../../utils/form-control';
/**
* @component seki-slider
* @description An input where the user selects a value from within a given range.
* Features a track, range indicator, and draggable thumb with full keyboard and mouse support.
* @example
*
*
*
*/
export declare class SekiSlider {
el: HTMLElement;
internals: ElementInternals;
private trackEl?;
private thumbEl?;
private isDragging;
private formControl?;
/**
* Minimum value of the slider.
*/
min: number;
/**
* Maximum value of the slider.
*/
max: number;
/**
* Step increment for the slider.
*/
step: number;
/**
* Current value. In HTML this attribute is the *initial* value (as with
* ``) and the component keeps it in step with
* dragging. Assigning the property at any time drives the value, so a host
* framework can still fully control the slider — including vetoing a drag by
* writing the previous value back in its `sekiInput`/`sekiChange` handler.
*/
value?: number;
/**
* Initial value for uncontrolled mode. Ignored if value prop is provided.
*/
defaultValue?: number;
/**
* Disables all interactions when true.
*/
disabled: boolean;
/**
* Orientation of the slider.
*/
orientation: 'horizontal' | 'vertical';
/**
* Form field name for form integration.
*/
name?: string;
/**
* Accessible label for screen readers.
*/
ariaLabel?: string;
/**
* ID of element describing this slider.
*/
ariaDescribedby?: string;
/**
* Text that describes this control. Set by `seki-field` from its description
* (and error) slot, because an `aria-describedby` id cannot cross the shadow
* boundary to the inner element (#358).
*/
ariaDescription?: string;
/** Marks the control invalid for assistive technology. Set by `seki-field` (#358). */
ariaInvalid?: string;
/**
* Internal value for uncontrolled mode.
*/
internalValue: number;
/**
* Emitted when value changes during interaction.
*/
sekiInput: EventEmitter<{
value: number;
}>;
/**
* Emitted when value changes after interaction ends.
*/
sekiChange: EventEmitter<{
value: number;
}>;
componentWillLoad(): void;
formResetCallback(): void;
formDisabledCallback(disabled: boolean): void;
formStateRestoreCallback(state: FormControlState): void;
/**
* Mirror an externally-assigned `value` onto the rendered value. This is what
* keeps controlled usage working: a consumer writing `el.value = n` (or writing
* the old value back to reject a drag) always wins.
*/
handleValueChange(newValue: number | undefined): void;
handleDisabledChange(): void;
/**
* Mirror the current value into the associated form via ElementInternals.
* Replaces the previous hidden input, which lived inside the shadow root and
* therefore never participated in form submission.
*/
private syncFormValue;
private get currentValue();
/**
* Clamp value to min/max range and round to step
*/
private clampValue;
/**
* Calculate percentage of value within range
*/
private get percentage();
/**
* Update value from a position (mouse/touch)
*/
private updateValueFromPosition;
/**
* Set value and emit events
*/
private setValue;
/**
* Emit change event (called when interaction ends)
*/
private emitChange;
/**
* Handle mouse down on track or thumb
*/
private handleMouseDown;
/**
* Handle mouse move during drag
*/
private handleMouseMove;
/**
* Handle mouse up to end drag
*/
private handleMouseUp;
/**
* Handle touch start
*/
private handleTouchStart;
/**
* Handle touch move during drag
*/
private handleTouchMove;
/**
* Handle touch end
*/
private handleTouchEnd;
/**
* Handle keyboard navigation
*/
handleKeyDown(event: KeyboardEvent): void;
/**
* Clean up event listeners on disconnect
*/
disconnectedCallback(): void;
render(): any;
}