import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
import { QdFormOption, QdFormRadioButtonsConfiguration } from '../model/forms.interface';
import { QdFormRadioButtonsOptions } from '../model/radio-buttons';
import { QdFormsActionEmitterService } from '../shared/services/action-emitter.service';
import { QdRadioButtonsService } from './radio-buttons-service/radio-buttons.service';
import { QdEventBrokerService } from '../../core/services/event-broker.service';
import { QdFormResolvedOption } from '../model/form-options-resolver';
import * as i0 from "@angular/core";
/**
 * The **QdRadioButtons** is a component that provides a form element for radio buttons.<br />
 * It allows users to select one option 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({
 *   radioButtons: new QdFormControl()
 * });
 * ```
 * ```html
 * <form [formGroup]="form">
 *   <qd-radio-buttons [formControlName]="radioButtons" [config]="config"></qd-radio-buttons>
 * </form>
 * ```
 *
 * ####**Usage with Model Binding**
 * ```ts
 * value;
 * ```
 * ```html
 * <qd-radio-buttons [(value)]="value" [config]="config"></qd-radio-buttons>
 * ```
 */
export declare class QdRadioButtonsComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor {
    private readonly radioButtonsService;
    private readonly actionEmitterService;
    private readonly controlContainer;
    private readonly ngZone;
    private readonly eventBrokerService;
    /**
     * The current form item value, if you are working with Model Binding.
     *
     * @example
     * <qd-radio-buttons [(value)]="value" [config]="config"></qd-radio-buttons>
     */
    value: string;
    /**
     * The configuration for this form item
     *
     * @example
     * {
     *   label: { i18n: 'Qd-Forms Radio Buttons' },
     *   align: 'horizontal',
     *   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: QdFormRadioButtonsConfiguration;
    /**
     * The form control name can be assigned here if you want to use Reactive Forms.
     */
    formControlName: string;
    /**
     * 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 value has changed. Return value matches the current value.
     */
    readonly valueChange: EventEmitter<string>;
    /**
     * Emits event when the hint is clicked/tapped. `hintAction` must be set to `true` for this.
     */
    readonly clickHint: EventEmitter<any>;
    readonly clickReadonly: EventEmitter<any>;
    readonly clickViewonly: EventEmitter<any>;
    readonly: boolean;
    viewonly: boolean;
    hintAction: boolean;
    readonlyAction: boolean;
    viewonlyAction: boolean;
    disabled: boolean;
    qdRadioButtons: boolean;
    get alignIsVertical(): boolean;
    get alignIsHorizontal(): boolean;
    get hasError(): boolean;
    get hasHint(): boolean;
    get required(): boolean;
    get activeOptionAsList(): QdFormOption[];
    label: string;
    align: 'vertical' | 'horizontal';
    filter: boolean;
    options: QdFormOption[];
    isLabelDisabled: boolean;
    id: string;
    filterRadioButtons: string;
    radioButtonsListForView: QdFormRadioButtonsOptions;
    control: AbstractControl;
    private _subs;
    private _onChange;
    private _onTouch;
    constructor(radioButtonsService: QdRadioButtonsService, actionEmitterService: QdFormsActionEmitterService, controlContainer: ControlContainer, ngZone: NgZone, eventBrokerService: QdEventBrokerService);
    ngOnInit(): void;
    ngOnChanges(changes: SimpleChanges): void;
    ngOnDestroy(): void;
    registerOnChange(fn: (_: any) => void): void;
    registerOnTouched(fn: any): void;
    setDisabledState(disabled: boolean): void;
    writeValue(value: any): void;
    getOptionId(index: any, option: QdFormResolvedOption): string;
    handleClick(value: any): void;
    changeValue($event: any): void;
    private updateConfiguration;
    private initRadioButtonList;
    private setInitialValue;
    private initOpModeSubscription;
    static ɵfac: i0.ɵɵFactoryDeclaration<QdRadioButtonsComponent, [null, null, { optional: true; host: true; skipSelf: true; }, null, { optional: true; }]>;
    static ɵcmp: i0.ɵɵComponentDeclaration<QdRadioButtonsComponent, "qd-radio-buttons", never, { "value": { "alias": "value"; "required": false; }; "config": { "alias": "config"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "valueChange": "valueChange"; "clickHint": "clickHint"; "clickReadonly": "clickReadonly"; "clickViewonly": "clickViewonly"; }, never, never, false, never>;
}
//# sourceMappingURL=radio-buttons.component.d.ts.map