import * as _spartan_ng_brain_forms from '@spartan-ng/brain/forms'; import * as _angular_forms from '@angular/forms'; import { NgControl } from '@angular/forms'; import * as _angular_core from '@angular/core'; import { OnInit, DoCheck, Signal, InjectionToken, Type, ExistingProvider } from '@angular/core'; import { BooleanInput } from '@angular/cdk/coercion'; declare class BrnFieldControl implements OnInit, DoCheck { private readonly _injector; private readonly _errorStateMatcher; private readonly _parentForm; private readonly _parentFormGroup; private readonly _field; private readonly _destroyRef; private _labelable; private _parentFieldControl; private readonly _stateTracker; /** Sentinel value to differentiate "never checked" from "control is null". */ private _lastControl; /** Gets the AbstractControlDirective for this control. */ ngControl: NgControl | null; readonly controlState: _angular_core.Signal<_spartan_ng_brain_forms.ControlState | null>; readonly errors: _angular_core.Signal<_angular_forms.ValidationErrors | null>; readonly dirty: _angular_core.Signal; readonly invalid: _angular_core.Signal; readonly spartanInvalid: _angular_core.Signal; readonly touched: _angular_core.Signal; constructor(); ngOnInit(): void; ngDoCheck(): void; /** @returns true if the control reference changed */ private _syncTracker; private _hasFieldControlParent; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface BrnLabelable { labelableId: Signal; } declare const BrnLabelable: InjectionToken; declare function provideBrnLabelable(labelable: Type): ExistingProvider; declare function injectBrnLabelable(): BrnLabelable | null; declare class BrnField { private readonly _brnFieldControl; private readonly _labelable; /** Whether the field is invalid. Overrides the `data-invalid` attribute. */ readonly dataInvalid: _angular_core.InputSignalWithTransform; /** * Whether to force the field into an invalid state, regardless of the form control's state. * Overrides both the `data-invalid` and `data-matches-spartan-invalid` attributes. */ readonly forceInvalid: _angular_core.InputSignalWithTransform; protected readonly _invalid: _angular_core.Signal; protected readonly _spartanInvalid: _angular_core.Signal; protected readonly _dirty: _angular_core.Signal; protected readonly _touched: _angular_core.Signal; readonly labelableId: _angular_core.Signal; readonly brnFieldControl: _angular_core.Signal; readonly errors: _angular_core.Signal<_angular_forms.ValidationErrors | null>; readonly controlState: _angular_core.Signal<_spartan_ng_brain_forms.ControlState | null>; registerFieldControl(fieldControl: BrnFieldControl): void; registerLabelable(labelable: BrnLabelable): void; unregisterFieldControl(fieldControl: BrnFieldControl): void; unregisterLabelable(labelable: BrnLabelable): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class BrnFieldControlDescribedBy { readonly describedBy: _angular_core.InputSignal; private readonly _a11y; protected readonly _computedDescribedBy: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class BrnFieldA11yService { private readonly _descriptions; private readonly _errors; readonly describedBy: _angular_core.Signal; registerDescription(id: string): void; unregisterDescription(id: string): void; registerError(id: string): void; unregisterError(id: string): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare const BrnFieldImports: readonly [typeof BrnField, typeof BrnFieldControl, typeof BrnFieldControlDescribedBy]; export { BrnField, BrnFieldA11yService, BrnFieldControl, BrnFieldControlDescribedBy, BrnFieldImports, BrnLabelable, injectBrnLabelable, provideBrnLabelable };