import * as _angular_core from '@angular/core'; import { OnDestroy, ElementRef, Type, ExistingProvider } from '@angular/core'; import * as _spartan_ng_brain_radio_group from '@spartan-ng/brain/radio-group'; import { BooleanInput } from '@angular/cdk/coercion'; import * as _spartan_ng_brain_forms from '@spartan-ng/brain/forms'; import { ChangeFn, TouchFn } from '@spartan-ng/brain/forms'; import * as _angular_cdk_bidi from '@angular/cdk/bidi'; import { ControlValueAccessor } from '@angular/forms'; import * as i1 from '@spartan-ng/brain/field'; declare class BrnRadioChange { source: BrnRadio; value: T; constructor(source: BrnRadio, value: T); } declare class BrnRadio implements OnDestroy { private static _nextUniqueId; private readonly _focusMonitor; private readonly _elementRef; protected readonly _radioGroup: _spartan_ng_brain_radio_group.BrnRadioGroup; /** * Whether the radio button is disabled. */ readonly disabled: _angular_core.InputSignalWithTransform; /** * Whether the radio button is disabled or the radio group is disabled. */ protected readonly _disabledState: _angular_core.Signal; /** * Whether the radio button is checked. */ protected readonly _checked: _angular_core.Signal; /** * The unique ID for the radio button input. If none is supplied, it will be auto-generated. */ readonly id: _angular_core.InputSignal; readonly ariaLabel: _angular_core.InputSignal; readonly ariaLabelledby: _angular_core.InputSignal; readonly ariaDescribedby: _angular_core.InputSignal; /** * The value this radio button represents. */ readonly value: _angular_core.InputSignal; /** * Styles applied to the visually hidden native input element. Bound via `[style]` so they apply * through the CSSOM and are not blocked by a strict Content-Security-Policy. */ readonly inputStyles: _angular_core.InputSignal; /** * Whether the radio button is required. */ readonly required: _angular_core.InputSignalWithTransform; /** * Event emitted when the checked state of this radio button changes. */ readonly change: _angular_core.OutputEmitterRef>; protected readonly _hostId: _angular_core.Signal; protected readonly _inputId: _angular_core.Signal; protected readonly _inputElement: _angular_core.Signal>; constructor(); ngOnDestroy(): void; /** Dispatch change event with current value. */ private emitChangeEvent; protected onInputClick(event: Event): void; protected onInputInteraction(event: Event): void; /** Triggered when the user clicks on the touch target. */ protected onTouchTargetClick(event: Event): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵcmp: _angular_core.ɵɵComponentDeclaration, "brn-radio", ["brnRadio"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "inputStyles": { "alias": "inputStyles"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "change": "change"; }, never, ["[target],[indicator]", "*"], true, never>; } declare const BRN_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: { provide: _angular_core.InjectionToken; useExisting: _angular_core.Type; multi: boolean; }; declare class BrnRadioGroup implements ControlValueAccessor { private readonly _dir; private readonly _fieldControl; private static _nextUniqueId; protected onChange: ChangeFn; protected onTouched: TouchFn; readonly name: _angular_core.InputSignal; /** * The value of the selected radio button. */ readonly valueInput: _angular_core.InputSignal; readonly value: _angular_core.WritableSignal; /** Emits when the value changes. */ readonly valueChange: _angular_core.OutputEmitterRef; /** * Whether the radio group is disabled. */ readonly disabled: _angular_core.InputSignalWithTransform; /** * Whether the radio group should be required. */ readonly required: _angular_core.InputSignalWithTransform; /** * The direction of the radio group. */ readonly direction: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>; /** * Event emitted when the group value changes. */ readonly change: _angular_core.OutputEmitterRef>; /** * The internal disabled state of the radio group. * @internal */ readonly disabledState: _angular_core.WritableSignal; readonly controlState: _angular_core.Signal<_spartan_ng_brain_forms.ControlState | null> | undefined; /** * Manual override for aria-invalid, e.g. for server-side validation errors. * When not set, it follows the error state matcher. */ readonly ariaInvalidInput: _angular_core.InputSignalWithTransform; protected readonly _invalid: _angular_core.Signal; protected readonly _spartanInvalid: _angular_core.Signal; /** aria-invalid follows the same state that drives the visible error: the consumer override, else the matcher result. */ protected readonly _ariaInvalid: _angular_core.Signal; protected readonly _dirty: _angular_core.Signal; protected readonly _touched: _angular_core.Signal; /** * Access the radio buttons within the group. * @internal */ readonly radioButtons: _angular_core.Signal[]>; writeValue(value: T): void; registerOnChange(fn: ChangeFn): void; registerOnTouched(fn: TouchFn): void; setDisabledState(isDisabled: boolean): void; /** * Select a radio button. * @internal */ select(radioButton: BrnRadio, value: T): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[brnRadioGroup]", ["brnRadioGroup"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "valueInput": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "ariaInvalidInput": { "alias": "aria-invalid"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["radioButtons"], never, true, [{ directive: typeof i1.BrnFieldControl; inputs: {}; outputs: {}; }]>; } declare function provideBrnRadioGroupToken(directive: Type>): ExistingProvider; declare function injectBrnRadioGroup(): BrnRadioGroup; declare const BrnRadioGroupImports: readonly [typeof BrnRadioGroup, typeof BrnRadio]; export { BRN_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, BrnRadio, BrnRadioChange, BrnRadioGroup, BrnRadioGroupImports, injectBrnRadioGroup, provideBrnRadioGroupToken };