import { BehaviorSubject } from 'rxjs';
import { ObjectSchema } from 'yup';
export declare class FormController {
    values: BehaviorSubject<any>;
    errors: BehaviorSubject<any>;
    private _schema;
    private _initialValues;
    private _values;
    private _errors;
    private _isValid;
    constructor(schema: ObjectSchema<any>);
    private processArrayError;
    private processRegularError;
    private setNestedError;
    private setError;
    validate(context?: any): Promise<boolean>;
    validateAndSubmit(submitHandler: (values: any) => void, context?: any): Promise<void>;
    setInitialValues(values: any): void;
    setValues(values: any): void;
    resetValues(): void;
    getInitialValues(): any;
    setFieldError(path: string, message: string): void;
    clearFieldError(path: string): void;
}
