import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core'; import { FormService } from './providers/form.service'; import { FormGroup } from './models/FormGroup'; import { ControlContainer } from './interfaces/ControlContainer'; export declare const formProvider: any; export declare class FormComponent extends ControlContainer implements OnInit, OnChanges, AfterViewInit, OnDestroy { private _formSvs; private _elRef; /** * @description * Tracks the `FormGroup` bound to this containers. */ form: FormGroup; mediaType: String; /** * @description * Emits an event when the form submission has been triggered. */ submit: EventEmitter<{}>; /** * @description * Emits an event when the form submission has been triggered and the form is invalid. */ error: EventEmitter<{}>; private _contentVcRef; controlTemplate: TemplateRef; default_template: Boolean; controlNameTree: any; constructor(_formSvs: FormService, _elRef: ElementRef, cd: ChangeDetectorRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** * @description * Returns the `FormGroup` bound to whole module. */ readonly root: FormGroup; /** * @description * Returns an array representing the path to this group. Because this containers * always lives at the top level of a form, it always an empty array. */ readonly path: string[]; private _checkFormPresent; private _extractControlTree; private _extractControlType; }