import { DestroyRef } from '@angular/core'; import { MatRadioChange } from '@angular/material/radio'; import { ControlValueAccessorDirective } from '../control-value-accessor.directive'; import * as i0 from "@angular/core"; /** * Radio Component for selecting a single option from a list of options. * * Supports both Reactive Forms and Template-driven forms. * * Inputs: * - `options`: Accepts an array of objects used as the selection list. * - `displayedLabel`: Property name from the option object to display in the UI (default: `'description'`). * - `key`: Property name from the option object used as the value (default: `'value'`). * - `label`: Defines the label text shown above the radio buttons. * - `isReadOnly`: Disables interaction and renders the component in a read-only display mode. * - `mandatory`: Hides the "optional" label visually. Does not add validation. * - `required`: Hides the "optional" label and also adds Angular's required validator. * - `tooltip`: Displays a tooltip beside the label. * * Emits: * - The selected value is emitted as an object with `key` and `value` properties: * ```ts * { key: option[key], value: option[displayedLabel] } * ``` * * Example usage: * ```html * * * ``` */ export declare class RadioComponent extends ControlValueAccessorDirective { options: Array>; displayedLabel: string; key: string; destroyRef: DestroyRef; ngOnInit(): void; onChange(event: MatRadioChange): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "app-radio", never, { "options": { "alias": "options"; "required": false; }; "displayedLabel": { "alias": "displayedLabel"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, {}, never, never, true, never>; }