import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
import { QdFormOption, QdFormSwitchesConfiguration } from '../model/forms.interface';
import { QdFormsActionEmitterService } from '../shared/services/action-emitter.service';
import { QdSwitchesService } from './switches-service/switches.service';
import { QdEventBrokerService } from '../../core/services/event-broker.service';
import { QdSwitchInput } from '../model/options.interface';
import * as i0 from "@angular/core";
/**
 * **QdSwitches** component provides a FormElement.
 * The **QdSwitches** is a component that provides a form element for switches.<br />
 * It allows users to select multiple options from a list of options. It can be used with Quadrel Reactive Forms or with model binding.
 *
 * ####**Usage with Reactive Forms**
 *
 * ```ts
 * form = new QdFormGroup({
 *   switches: new QdFormControl([]) // at least an empty array to prevent runtime errors.
 * });
 * ```
 * ```html
 * <form [formGroup]="form">
 *   <qd-switches formControlName="switches" [config]="config"></qd-switches>
 * </form>
 * ```
 *
 * ####**Usage with Model Binding**
 * ```ts
 * values;
 * ```
 * ```html
 * <qd-switches [(values)]="values" [config]="config"></qd-switches>
 * ```
 */
export declare class QdSwitchesComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor {
    private readonly switchesService;
    private readonly changeDetectorRef;
    private readonly actionEmitterService;
    private readonly controlContainer;
    private readonly eventBrokerService;
    /**
     * The current form control name can be assigned here if you want to use Reactive Forms.
     */
    formControlName: string;
    /**
     * The form item values, if you are working with Model Binding.
     *
     * @example
     * <qd-switches [(values)]="values" [config]="config"></qd-switches>
     */
    values: string[];
    /**
     * The configuration for this form item
     *
     * @example
     * {
     *   label: { i18n: 'Qd-Forms Switches' },
     *   hint: { i18n: 'Helpertext' },
     *   options: [
     *     { i18n: 'i18n.qd.exampleFormField.goodsDeclaration.import', value: 'import' },
     *     { i18n: 'i18n.qd.exampleFormField.goodsDeclaration.export', value: 'export' },
     *     { i18n: 'i18n.qd.exampleFormField.goodsDeclaration.transit', value: 'transit' }
     *   ]
     * };
     */
    config: QdFormSwitchesConfiguration;
    /**
     * A static test ID for integration tests can be set. <br />
     * The value for the HTML attribute [data-test-id].
     */
    testId: string;
    /**
     * Emits event when the values change. Return values match the current values.
     */
    readonly valuesChange: EventEmitter<string[]>;
    /**
     * Emits event when the hint is clicked/tapped. `hintAction` must be set to `true` for this.
     */
    readonly clickHint: EventEmitter<any>;
    /**
     * Emits event when the readonly value is clicked/tapped. `readonlyAction ` must be set to `true` for this.
     */
    readonly clickReadonly: EventEmitter<any>;
    /**
     * Emits event when the viewonly value is clicked/tapped. `viewonlyAction ` must be set to `true` for this.
     */
    readonly clickViewonly: EventEmitter<any>;
    readonly: boolean;
    readonlyAction: boolean;
    viewonly: boolean;
    viewonlyAction: boolean;
    hintAction: boolean;
    disabled: boolean;
    get hasError(): boolean;
    get isVertical(): boolean;
    get hasHint(): boolean;
    get required(): boolean;
    control: AbstractControl;
    id: string;
    label: string;
    align: any;
    labelPosition: any;
    options: QdFormOption[];
    switchesValues: string[];
    switchesInputs: QdSwitchInput[];
    private _subs;
    private _onChange;
    private _onTouch;
    constructor(switchesService: QdSwitchesService, changeDetectorRef: ChangeDetectorRef, actionEmitterService: QdFormsActionEmitterService, controlContainer: ControlContainer, eventBrokerService: QdEventBrokerService);
    ngOnInit(): void;
    ngOnChanges(changes: SimpleChanges): void;
    ngOnDestroy(): void;
    registerOnChange(fn: (_: any) => void): void;
    registerOnTouched(fn: any): void;
    setDisabledState(disabled: boolean): void;
    writeValue(values: any): void;
    handleClick(item: any): void;
    get selectedValuesTranslated(): string[];
    private updateConfiguration;
    private setData;
    private updateData;
    private initOpModeSubscription;
    static ɵfac: i0.ɵɵFactoryDeclaration<QdSwitchesComponent, [null, null, null, { optional: true; host: true; skipSelf: true; }, { optional: true; }]>;
    static ɵcmp: i0.ɵɵComponentDeclaration<QdSwitchesComponent, "qd-switches", never, { "formControlName": { "alias": "formControlName"; "required": false; }; "values": { "alias": "values"; "required": false; }; "config": { "alias": "config"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "valuesChange": "valuesChange"; "clickHint": "clickHint"; "clickReadonly": "clickReadonly"; "clickViewonly": "clickViewonly"; }, never, never, false, never>;
}
//# sourceMappingURL=switches.component.d.ts.map