import * as i0 from '@angular/core'; import { OnInit, AfterViewInit, AfterContentInit, EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { IonicElementPartHelper } from '@kirbydesign/designsystem/helpers'; declare class ToggleComponent implements ControlValueAccessor, OnInit, AfterViewInit, AfterContentInit { private cdr; private elementRef; private ionicElementPartHelper; private ionToggleElement?; checked: boolean; disabled: boolean; get _isDisabled(): string; _labelText: string; checkedChange: EventEmitter; _justify: 'start' | 'end' | 'space-between'; _labelPlacement: 'end' | 'fixed' | 'stacked' | 'start'; _hasSlottedContent: boolean; _pressed: boolean; constructor(cdr: ChangeDetectorRef, elementRef: ElementRef, ionicElementPartHelper: IonicElementPartHelper); ngOnInit(): void; ngAfterViewInit(): void; ngAfterContentInit(): void; onCheckedChange(checked: boolean): void; _onActive(): void; _onInactive(): void; private _onChange; private _onTouched; /** * Sets the toggle's value. Part of the ControlValueAccessor interface * required to integrate with Angular's core forms API. * * @param value New value to be written to the model. */ writeValue(value: boolean): void; /** * Saves a callback function to be invoked when the toggle's value * changes from user input. Part of the ControlValueAccessor interface * required to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the value changes. */ registerOnChange(fn: any): void; /** * Saves a callback function to be invoked when the toggle is blurred * by the user. Part of the ControlValueAccessor interface required * to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the component has been touched. */ registerOnTouched(fn: any): void; /** * Disables the toggle. Part of the ControlValueAccessor interface required * to integrate with Angular's core forms API. * * @param isDisabled Sets whether the component is disabled. */ setDisabledState?(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { ToggleComponent }; //# sourceMappingURL=kirbydesign-designsystem-toggle.d.ts.map