/** Autogenerated by public2business schematic. DO NOT CHANGE! */ import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, ElementRef, InjectionToken, OnDestroy, QueryList } from '@angular/core'; import { NgControl } from '@angular/forms'; import { SbbFormFieldControl } from '@sbb-esta/angular-core/forms'; import { SbbError } from './error'; import { SbbLabel } from './label'; /** * Injection token that can be used to inject an instances of `SbbFormField`. It serves * as alternative token to the actual `SbbFormField` class which would cause unnecessary * retention of the `SbbFormField` class and its component metadata. */ export declare const SBB_FORM_FIELD: InjectionToken; export declare class SbbFormField implements AfterContentInit, AfterContentChecked, OnDestroy { _elementRef: ElementRef; private _changeDetectorRef; /** The label text for the input. */ label?: string; private _destroyed; readonly _labelId: string; _controlNonStatic: SbbFormFieldControl; _controlStatic: SbbFormFieldControl; get _control(): SbbFormFieldControl; set _control(value: SbbFormFieldControl); private _explicitFormFieldControl; _labelChildNonStatic: SbbLabel; _labelChildStatic: SbbLabel; _errorChildren: QueryList; constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef); /** * Gets the id of the label element. If no label is present, returns `null`. */ getLabelId(): string | null; ngAfterContentInit(): void; ngAfterContentChecked(): void; ngOnDestroy(): void; /** Determines whether a class from the NgControl should be forwarded to the host element. */ _shouldForward(prop: keyof NgControl): boolean; _hasLabel(): boolean; _hasErrors(): boolean; /** * Sets the list of element IDs that describe the child control. This allows the control to update * its `aria-describedby` attribute accordingly. */ private _syncDescribedByIds; /** Throws an error if the form field's control is missing. */ protected _validateControlChild(): void; static ngAcceptInputType_mode: 'default' | 'short' | 'medium' | 'long' | string | null | undefined; }