import { CSSResultGroup, TemplateResult, LitElement } from 'lit'; import { SbbDateLike } from '../core/interfaces.js'; /** * * Combined with a native input, it displays the input's value as a formatted time. * * @event {CustomEvent} didChange - Deprecated. used for React. Will probably be removed once React 19 is available. * @event {CustomEvent} validationChange - Emits whenever the internal validation state changes. */ export declare class SbbTimeInputElement extends LitElement { static styles: CSSResultGroup; static readonly events: { readonly didChange: "didChange"; readonly validationChange: "validationChange"; }; /** Reference of the native input connected to the datepicker. */ set input(value: string | HTMLElement); get input(): string | HTMLElement | null; private _input; private _inputElement; /** * @deprecated only used for React. Will probably be removed once React 19 is available. */ private _didChange; /** Emits whenever the internal validation state changes. */ private _validationChange; private _statusContainer; private _abortController; private _language; connectedCallback(): void; disconnectedCallback(): void; /** Gets the input value with the correct date format. */ getValueAsDate(): Date | null; /** Set the input value to the correctly formatted value. */ setValueAsDate(date: SbbDateLike): void; private _findInputElement; private _registerInputElement; /** Applies the correct format to values and triggers event dispatch. */ private _updateValueAndEmitChange; /** * Updates `value` and `valueAsDate`. The direct update on the `_inputElement` is required * to force the input change when the typed value is the same of the current one. */ private _updateValue; /** Emits the change event. */ private _emitChange; /** Returns the right format for the `value` property. */ private _formatValue; /** * Returns the right format for the `valueAsDate` property: * sets the start date at 01.01.1970, then adds the typed hours/minutes. */ private _formatValueAsDate; /** Checks if values of hours and minutes are possible, to avoid non-existent times. */ private _isTimeValid; /** Validate input against the defined RegExps. */ private _parseInput; /** Only allow typing numbers and separator keys. */ private _preventCharInsert; private _updateAccessibilityMessage; protected render(): TemplateResult; } declare global { interface HTMLElementTagNameMap { 'sbb-time-input': SbbTimeInputElement; } } //# sourceMappingURL=time-input.d.ts.map