import { ElementRef, EventEmitter, Renderer2, DoCheck } from '@angular/core'; import { ControlValueAccessor, NgForm, FormGroupDirective, NgControl } from '@angular/forms'; import { HcFormControlComponent } from '../form-field/hc-form-control.component'; export declare class ToggleSwitchChangeEvent { source: ToggleSwitchComponent; checked: boolean; constructor(source: ToggleSwitchComponent, checked: boolean); } export declare class ToggleSwitchComponent extends HcFormControlComponent implements ControlValueAccessor, DoCheck { private _renderer; private _elementRef; _ngControl: NgControl; private _uniqueId; private _form; private _checked; private _tabIndex; _componentId: string; focused: boolean; /** Value attribute of the native toggle switch */ value: string; /** Unique id for the toggle switch element. If none is supplied, one will be auto-generated. */ id: string; /** Sets unique name used in a form */ name: string | null; /** Event emitted whenever the state changes */ change: EventEmitter; _toggleSwitchInput: ElementRef; _toggleSwitchOverlay: ElementRef; readonly _getHostId: string; readonly _getToggleSwitchCheckedClass: boolean; readonly _getToggleSwitchDisabledClass: boolean; readonly _getToggleSwitchFocusedClass: boolean; _onKeyDown(event: KeyboardEvent): void; /** Whether the toggle switch is required. */ required: boolean; /** Whether the toggle switch is disabled. */ disabled: boolean; /** Whether the toggle switch is checked. */ checked: boolean; /** TabIndex attribute of native toggle switch */ tabIndex: number; readonly _inputId: string; private _onChangeFunc; private _onTouchFunc; constructor(tabindex: string, _renderer: Renderer2, _elementRef: ElementRef, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _ngControl: NgControl); writeValue(value: any): void; registerOnChange(fn: (value: any) => void): void; registerOnTouched(fn: () => any): void; setDisabledState(disabledVal: boolean): void; /** Toggles the current checked state of the toggle switch */ toggle(): void; _clickEvent(event: Event): void; _labelClickEvent(event: Event): void; _focusEvent(): void; _onBlur(): void; _stopChangeEvent(event: Event): void; private _emitChangeEvent; ngDoCheck(): void; private setHostClass; private _hcClassify; private _updateErrorState; }