import * as React from 'react';
import type { FieldError } from 'react-hook-form';
type FormFieldContextValue = {
    name: string;
    error?: FieldError;
};
type FormItemContextValue = {
    id: string;
};
export declare const FormFieldContext: React.Context<FormFieldContextValue | null>;
export declare const FormItemContext: React.Context<FormItemContextValue | null>;
export declare const useFormField: () => {
    name: string;
    error: FieldError | undefined;
    formItemId: string;
    formDescriptionId: string;
    formMessageId: string;
};
export {};
