import React from 'react';
import type { FormProviderProps as RcFormProviderProps } from '../components/rc-field-form/FormContext';
import type { ColProps } from '../grid';
import type { FormProps } from './form';
export interface FormContextProps {
    name?: string;
    colon?: boolean;
    labelCol?: ColProps;
    wrapperCol?: ColProps;
    disabled?: boolean;
    layout?: FormProps['layout'];
}
export interface FormItemContextProps {
    updateItemErrors: (name: string, errors: string[], originName: string) => void;
}
export interface FormItemPrefixContextProps {
    prefixCls: string;
    status?: 'success' | 'warning' | 'error' | 'validating' | '';
}
export interface FormProviderProps extends Omit<RcFormProviderProps, 'validateMessages'> {
    prefixCls?: string;
}
export declare const FormProvider: React.FC<FormProviderProps>;
export declare const FormContext: React.Context<FormContextProps>;
export declare const FormItemContext: React.Context<FormItemContextProps>;
export declare const FormItemPrefixContext: React.Context<FormItemPrefixContextProps>;
