import { EventEmitter, OnInit } from '@angular/core';
import { FormArray, FormGroup, ValidatorFn } from '@angular/forms';
import { OrderFormFieldInterface, OrderFormFieldOptionInterface } from '@vendasta/core/marketplace-apps';
import { ControlType } from '../field-base';
export declare class FieldBuilderComponent implements OnInit {
    orderFormFieldGroup: FormGroup;
    supportedFieldTypes: FormFieldInterface[];
    removeField: EventEmitter<string>;
    showValidators: boolean;
    showSuffixes: boolean;
    static createDropDownOption(option: OrderFormFieldOptionInterface, required: boolean): FormGroup;
    static createDropDownOptions(options: OrderFormFieldOptionInterface[]): FormArray;
    static createOrderFormFieldGroup(orderFormField: OrderFormFieldInterface): FormGroup;
    ngOnInit(): void;
    initForm(): void;
    getOptionsArray(): FormArray;
    getCurrentFieldInterface(): string;
    removeOption(index: number): void;
    addOption(): void;
    getFormValues(): OrderFormFieldInterface;
}
export declare function regexValidator(): ValidatorFn;
export declare function numberValidator(): ValidatorFn;
export interface FormFieldInterface {
    id: ControlType;
    name: string;
}
export declare const FORM_FIELDS: FormFieldInterface[];
export declare function getFieldInterface(formFieldId: string): FormFieldInterface;
export declare function getFormFieldInterfaceFromId(id: ControlType): FormFieldInterface;
