import { EventEmitter } from '../../stencil-public-runtime'; import { InputSwitchType, InputSwitchSizeType } from './meta/types'; import { MdsInputSwitchEventDetail } from './meta/event-detail'; import { TypographyInfoType, TypographyReadType, TypographyVariants } from "../../type/typography"; /** * @slot - Put text string or elements here * @category forms */ export declare class MdsInputSwitch { internals: ElementInternals; private formDisabled; host: HTMLMdsInputSwitchElement; private km; private label; private loadChecked; private knobSliding; hasText: boolean; private t; /** * Sets or returns whether a checkbox should automatically * get focus when the page loads */ readonly autofocus: boolean; /** * Specifies that an `` element should be pre-selected * when the page loads (for `type="checkbox"` or `type="radio"`) */ checked?: boolean; /** * Sets or returns whether a checkbox is disabled, or not */ disabled?: boolean; /** * Sets if the type switch mode shows explicit icons */ explicit?: boolean; /** * The checked icon displayed */ readonly icon: string; /** * Sets or returns the indeterminate state of the checkbox */ indeterminate?: boolean; /** * Specifies the name of an `` element */ readonly name: string; /** * Specifies the size for the switch toggle, it works only if attribute 'type' is set to 'switch' */ readonly size: InputSwitchSizeType; /** * Specifies switch type: switch (default), checkbox and radio */ readonly type: InputSwitchType; /** * Specifies the font typography of the element */ readonly typography?: TypographyInfoType | TypographyReadType; /** * Specifies the variant for `typography` */ readonly variant?: TypographyVariants; /** * Specifies the value of the input element */ value?: string; /** * Emits when the value changes */ changeEvent: EventEmitter; /** * Unchecks the other radios of the group, as a native radio does: the same name in the same * form and the same tree. A radio without a name is a group of its own. */ private uncheckSiblings; /** Submits the value while checked and enabled, nothing otherwise, as a native input. */ private updateFormValue; private handleInputOnChange; /** * The knob has landed, or its slide was cut short by hiding the switch: either way it rests in * the place of its state. A quick second toggle cancels the first slide for the opposite one, * which still has to run. */ private handleKnobSlideEnd; private checkFocusElement; protected disabledChanged(newValue?: boolean): void; /** * The form value follows every change of checked, by the user or by code; a radio checked * unchecks the others of its group, which clear their own form value. */ protected checkedChanged(newValue?: boolean, oldValue?: boolean): void; protected valueChanged(): void; protected explicitChanged(newValue?: boolean): void; formDisabledCallback(disabled: boolean): void; private isDisabled; /** Like a native checkbox or radio, a form reset brings back the checked state of load. */ formResetCallback(): void; componentWillLoad(): void; componentDidLoad(): void; render(): any; }