import { CustomField, ExtendedFieldsDataMap, Translate } from '@wix/bex-core';
import type { OnCustomFieldChange } from '../../components/CustomFieldsWidget/OnCustomFieldChange';
import { BaseInputRef } from '../../fields';
import { CustomFieldsWidgetState } from './CustomFieldsWidgetState';
export interface CustomFieldsFormStateParams {
    namespace: string;
    customFieldsWidgetState: CustomFieldsWidgetState;
    translate: Translate;
}
export declare class CustomFieldsFormState {
    readonly _namespace: string;
    readonly _customFieldsWidgetState: CustomFieldsWidgetState;
    _fields: CustomField[];
    _extendedFieldsDataMap: import("mobx").ObservableMap<string, any>;
    _initialValues: {
        [x: string]: any;
    };
    _translate: Translate;
    _inputRefs: {
        [fieldId: string]: BaseInputRef;
    };
    constructor(params: CustomFieldsFormStateParams);
    _getFullyQualifiedFieldId(originalId: string): string;
    get fields(): CustomField[];
    get writeableFields(): CustomField[];
    get _isUserFieldsNamespace(): boolean;
    init(): () => void;
    setValue<T>({ id, value, onChange, }: {
        id: string;
        value: T;
        onChange?: OnCustomFieldChange;
    }): void;
    getInitialValue(id: string): any;
    setInputRef(id: string, input: BaseInputRef): void;
    setNewFields(fields: CustomField[]): void;
    _adjustExtendedFields(): void;
    validate(): {
        isValid: boolean;
        extendedFields?: ExtendedFieldsDataMap;
    };
    get isDirty(): boolean;
    get appName(): string;
    get values(): {
        [k: string]: any;
    };
}
//# sourceMappingURL=CustomFieldsFormState.d.ts.map