import * as React from 'react'; interface UseFieldErrorParameters { id: string | undefined; rendered: boolean; formError: string | string[] | null; } export declare function useFieldError(params: UseFieldErrorParameters): { getErrorProps: (externalProps?: {}) => import("../../utils/types").WithBaseUIEvent, HTMLSpanElement>, "ref"> & { ref?: ((instance: HTMLSpanElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject | null | undefined; }>; }; export {};