import * as i0 from '@angular/core'; import { ElementRef, OnInit, QueryList } from '@angular/core'; import { RadioControlDirective, RadioGroupControlDirective } from '@odx/angular/cdk/radio-group-control'; import * as rxjs from 'rxjs'; import * as i1 from '@odx/angular'; /** * ToggleButtonComponent represents an individual toggle button, akin to a radio button but styled distinctly. * It integrates with Angular's forms as part of a radio group control, allowing for keyboard navigation and * accessibility features. This component is designed to be used within a `ToggleButtonGroupComponent`. * * @template T - The type of the value handled by the toggle button. * * Extends RadioControlDirective to provide additional behavior. * * @see {RadioControlDirective} */ declare class ToggleButtonComponent extends RadioControlDirective { protected inputElement: ElementRef; readonly element: ElementRef; /** * Sets focus to the input element of the toggle button. */ focus(): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "odx-toggle-button", never, {}, {}, never, ["*"], true, never>; } /** * ToggleButtonGroupComponent acts as a container for a group of toggle buttons, * managing their state and focus within a group context. * * @template T - The type of the value handled by the toggle buttons. * * It extends the RadioGroupControlDirective, allowing it to control the selection and state * of contained toggle buttons similar to how radio buttons are managed. * * Has host directive DelegateFocusDirective. * * @see {RadioGroupControlDirective} * @see {DelegateFocusDirective} */ declare class ToggleButtonGroupComponent extends RadioGroupControlDirective implements OnInit { private readonly delegateFocusDirective; private readonly takeUntilDestroyed; protected activeElement$: rxjs.Observable; protected toggleButtons: QueryList; readonly element: i0.ElementRef; ngOnInit(): void; private getFirstToggleButton; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "odx-toggle-button-group", never, {}, {}, ["toggleButtons"], ["odx-toggle-button"], true, [{ directive: typeof i1.DelegateFocusDirective; inputs: {}; outputs: {}; }]>; } declare class ToggleButtonGroupModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ToggleButtonComponent, ToggleButtonGroupComponent, ToggleButtonGroupModule };