import { OnInit, EventEmitter } from '@angular/core'; import { FormGroup, FormGroupDirective } from '@angular/forms'; import { DescriptorForm } from '../../descriptor/descriptor-form'; import { FormService } from '../../services/form.service'; import * as i0 from "@angular/core"; export declare class VedraxFormComponent implements OnInit { private formService; formRef?: FormGroupDirective; /** * The descriptor form */ descriptor: DescriptorForm; submitLabel?: string; cancelLabel?: string; enableCancel?: boolean; /** * State describing if form has been submitted */ submitted: boolean; /** * On submit event */ onSubmit: EventEmitter; /** * On cancel event */ onCancel: EventEmitter; /** * The form object */ form: FormGroup; constructor(formService: FormService); ngOnInit(): void; /** * Emit an event with data when the form is valid * * @param dto */ submit(dto: any): void; /** * Emit an event on cancel */ cancel(): void; /** * reset form */ reset(): void; /** * set submitted to false */ end(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }