import * as i0 from '@angular/core'; import { InjectionToken, OnInit, EventEmitter, ChangeDetectorRef, AfterContentInit, QueryList } from '@angular/core'; import { ControlValueAccessor, NgForm, FormGroupDirective, NgControl } from '@angular/forms'; import { FocusKeyManager } from '@angular/cdk/a11y'; import { CanUpdateErrorStateCtor, ErrorStateMatcher } from 'novo-elements/elements/common'; import { NovoFieldControl } from 'novo-elements/elements/field'; import * as i3 from '@angular/common'; import * as i4 from 'novo-elements/elements/button'; interface RadioGroup { name: string; value: T; disabled: boolean; appearance: 'vertical' | 'horizontal'; } type ComponentType = new (...args: any[]) => T; declare const NOVO_RADIO_GROUP: InjectionToken>>; declare class NovoRadioElement implements ControlValueAccessor, OnInit { radioGroup: RadioGroup; private ref; private _uniqueId; private _value; _checked: boolean; id: string; name: string; tabindex: number; vertical: boolean; label: string; button: boolean; theme: string; size: string; icon: string; color: string; disabled: boolean; change: EventEmitter; blur: EventEmitter; focus: EventEmitter; get checked(): boolean; set checked(value: boolean); get value(): boolean | string; set value(value: boolean | string); constructor(radioGroup: RadioGroup, ref: ChangeDetectorRef); ngOnInit(): void; _onInputChange(event: Event): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; private onChangeCallback; private onTouchedCallback; setDisabledState(disabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NovoRadioGroupBase { _defaultErrorStateMatcher: ErrorStateMatcher; _parentForm: NgForm; _parentFormGroup: FormGroupDirective; ngControl: NgControl; constructor(_defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl); } declare const NovoRadioGroupMixins: CanUpdateErrorStateCtor & typeof NovoRadioGroupBase; declare class NovoRadioGroup extends NovoRadioGroupMixins implements NovoFieldControl, ControlValueAccessor, AfterContentInit { private _uniqueId; /** The aria-describedby attribute on the chip list for improved a11y. */ _ariaDescribedby: string; /** Tab index for the chip list. */ _tabIndex: number; /** User defined tab index. */ _userTabIndex: number | null; /** The FocusKeyManager which handles focus. */ _keyManager: FocusKeyManager; readonly controlType: string; /** @docs-private Implemented as part of NovoFieldControl. */ lastKeyValue: string; /** @docs-private Implemented as part of NovoFieldControl.*/ lastCaretPosition: number | null; id: string; tabindex: number; /** An object used to control when error messages are shown. */ errorStateMatcher: ErrorStateMatcher; change: EventEmitter; blur: EventEmitter; _radios: QueryList; get appearance(): any; set appearance(value: any); get value(): any; set value(value: any); get name(): string; set name(value: string); get disabled(): boolean; set disabled(value: boolean); /** * Implemented as part of NovoFieldControl. * @docs-private */ get required(): boolean; set required(value: boolean); /** Implemented as part of NovoFieldControl. */ get placeholder(): string; set placeholder(value: string); get selected(): NovoRadioElement; protected _name: string; protected _value: boolean; protected _selected: NovoRadioElement; protected _required: boolean; protected _disabled: boolean; protected _placeholder: string; protected _appearance: 'horizontal' | 'vertical'; ngAfterContentInit(): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; private onChangeCallback; private onTouchedCallback; private _updateRadioButtonAppearance; private _updateRadioButtonNames; private _updateRadioButtonDisabled; private _updateSelectedRadioFromValue; /** Whether any radio buttons has focus. */ get focused(): boolean; /** Implemented as part of NovoFieldControl. */ get empty(): boolean; /** Implemented as part of NovoFieldControl. */ get shouldLabelFloat(): boolean; /** Implemented as part of NovoFieldControl. */ setDescribedByIds(ids: string[]): void; /** Implemented as part of NovoFieldControl. */ onContainerClick(event: MouseEvent): void; /** * Focuses the first non-disabled chip in this chip list, or the associated input when there * are no eligible chips. */ focus(options?: FocusOptions): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NovoRadioModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NOVO_RADIO_GROUP, NovoRadioElement, NovoRadioGroup, NovoRadioModule }; export type { ComponentType, RadioGroup };