import { QueryList, AfterContentInit, ChangeDetectorRef, AfterContentChecked, AfterViewInit } from '@angular/core'; import { GhFormFieldControl } from './form-field-control'; /** Hint text to be shown underneath the form field control. */ export declare class GhHint { /** Whether to align the hint label at the start or end of the line. */ align: 'start' | 'end'; /** Unique ID for the hint. Used for the aria-describedby on the form field control. */ id: string; } export declare class GhLabel { } /** Single error message to be shown underneath the form field. */ export declare class GhError { id: string; } export declare class GhFormField implements AfterContentInit, AfterContentChecked, AfterViewInit { private _changeDetectorRef; /** Text for the form field hint. */ hintLabel: string; _hintLabelId: string; /** State of the gh-error animations. */ _errorAnimationState: '' | 'enter' | 'enter-delayed'; _labelChild: GhLabel; _hintChildren: QueryList; _errorChildren: QueryList; _control: GhFormFieldControl; private _hintLabel; private _displayedError; constructor(_changeDetectorRef: ChangeDetectorRef); ngAfterContentInit(): void; ngAfterContentChecked(): void; ngAfterViewInit(): void; /** Determines whether a class from the NgControl should be forwarded to the host element. */ _shouldForward(prop: string): boolean; /** Determines whether to display errors or not. */ _getDisplayedError(): boolean; /** Throws an error if the form field's control is missing. */ private _validateControlChild(); /** Does any extra processing that is required when handling the hints. */ private _processHints(); /** * Ensure that there is a maximum of one of each `` alignment specified, with the * attribute being considered as `align="start"`. */ private _validateHints(); /** * Sets the list of element IDs that describe the child control. This allows the control to update * its `aria-describedby` attribute accordingly. */ private _syncDescribedByIds(); private _updateAnimationState(); }