import { Rule } from './types';
export declare type FormValues = {
    [name: string]: any;
};
export declare type FormErrors = {
    [name: string]: string[];
};
declare type FormListener = (name: string) => void;
export default class FormInstance {
    private readonly initValues;
    private values;
    private rules;
    private errors;
    private listeners;
    constructor(initValues?: FormValues);
    getFieldValues(): FormValues;
    getFieldValue(name: string): any;
    setFieldValue(name: string, val: any): void;
    setFieldValues(values?: FormValues): void;
    getFiledErrors(): FormErrors;
    getFieldError(name: string): string | undefined;
    setFieldError(name: string, errors: string[]): void;
    setFiledRules(name: string, rules: Rule[]): void;
    resetFields(): void;
    validateField(name: string): void;
    validateFields(): void;
    subscribe(listener: FormListener): () => void;
    notify(name: string): void;
}
export {};
