import * as _angular_core from '@angular/core'; import { Type, ExistingProvider } from '@angular/core'; import { BooleanInput } from '@angular/cdk/coercion'; import { ControlValueAccessor } from '@angular/forms'; import * as _spartan_ng_brain_toggle_group from '@spartan-ng/brain/toggle-group'; declare class BrnToggleGroupItem { private static _uniqueId; /** Access the toggle group if available. */ protected readonly _group: _spartan_ng_brain_toggle_group.BrnToggleGroup | null; /** The id of the toggle. */ readonly id: _angular_core.InputSignal; /** The value this toggle represents. */ readonly value: _angular_core.InputSignal; /** Whether the toggle is disabled. */ readonly disabled: _angular_core.InputSignalWithTransform; /** Whether the toggle is disabled either from itself or from the group. */ protected readonly _disabled: _angular_core.Signal; /** The current state of the toggle when not used in a group. */ readonly state: _angular_core.ModelSignal<"on" | "off">; /** The type of the button. */ readonly type: _angular_core.InputSignal<"button" | "submit" | "reset">; /** * Accessibility label for screen readers. * Use when no visible label exists. */ readonly ariaLabel: _angular_core.InputSignal; /** Whether the toggle is in the on state. */ protected readonly _isOn: _angular_core.Signal; /** The current state that reflects the group state or the model state. */ protected readonly _state: _angular_core.Signal<"on" | "off">; toggle(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "button[brnToggleGroupItem]", ["brnToggleGroupItem"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, true, never>; } declare const BRN_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: { provide: _angular_core.InjectionToken; useExisting: _angular_core.Type; multi: boolean; }; declare class BrnButtonToggleChange { source: BrnToggleGroupItem; value: ToggleValue; constructor(source: BrnToggleGroupItem, value: ToggleValue); } declare class BrnToggleGroup implements ControlValueAccessor { /** The type of the toggle group. */ readonly type: _angular_core.InputSignal; /** Whether the toggle group allows multiple selections. */ protected readonly _multiple: _angular_core.Signal; /** Value of the toggle group. */ readonly valueInput: _angular_core.InputSignal>; readonly value: _angular_core.WritableSignal>; /** Emits when the value changes. */ readonly valueChange: _angular_core.OutputEmitterRef>; /** Whether no button toggles need to be selected. */ readonly nullable: _angular_core.InputSignalWithTransform; /** Whether the button toggle group is disabled. */ readonly disabled: _angular_core.InputSignalWithTransform; /** The disabled state. */ readonly disabledState: _angular_core.WritableSignal; /** Emit event when the group value changes. */ readonly change: _angular_core.OutputEmitterRef>; /** * The method to be called in order to update ngModel. */ private _onChange; /** onTouch function registered via registerOnTouch (ControlValueAccessor). */ protected onTouched: () => void; writeValue(value: ToggleValue): void; registerOnChange(fn: (value: ToggleValue) => void): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; /** * @internal * Determines whether a value can be set on the group. */ canDeselect(value: ToggleValue): boolean; /** * @internal * Selects a value. */ select(value: T, source: BrnToggleGroupItem): void; /** * @internal * Deselects a value. */ deselect(value: T, source: BrnToggleGroupItem): void; /** * @internal * Determines whether a value is selected. */ isSelected(value: T): boolean; /** Update the value of the group */ private emitSelectionChange; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[brnToggleGroup],brn-toggle-group", ["brnToggleGroup"], { "type": { "alias": "type"; "required": false; "isSignal": true; }; "valueInput": { "alias": "value"; "required": false; "isSignal": true; }; "nullable": { "alias": "nullable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "change": "change"; }, never, never, true, never>; } type ToggleValue = T | T[] | null | undefined; type ToggleType = 'single' | 'multiple'; declare function injectBrnToggleGroup(): BrnToggleGroup | null; declare function provideBrnToggleGroup(value: Type>): ExistingProvider; declare const BrnToggleGroupImports: readonly [typeof BrnToggleGroup, typeof BrnToggleGroupItem]; export { BRN_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, BrnButtonToggleChange, BrnToggleGroup, BrnToggleGroupImports, BrnToggleGroupItem, injectBrnToggleGroup, provideBrnToggleGroup }; export type { ToggleType, ToggleValue };