import { ReactNode } from 'react';
export declare type FormContextProps = {
    getValue: (name: string, def?: any) => any;
    setValue: (name: string, value: any) => void;
    getErrors: (name: string) => {
        [key: string]: any;
    };
    setRequiredField: (name: string, required: boolean) => void;
    registerField: (name: string, field: {
        focus: () => void;
    }) => void;
    unregisterField: (name: string) => void;
    getRequiredMark: () => ReactNode;
};
declare const FormContext: import("react").Context<FormContextProps | undefined>;
export default FormContext;
