import { JsonSchema } from '@jsonforms/core'; import { ReactElement } from 'react'; import { JsonFormsDataValue } from './types'; /** * Builds the `error` prop for a single-value input where an empty value (`null` or `''`) is never a * valid entry (enum, oneOf, date, time, number, boolean). When the field is empty: a nullable field * is valid, so the option-mismatch errors are hidden; a non-nullable field is missing, so a single * "is a required property" error is shown. A non-empty value passes its errors through unchanged. * * @param value the current value; `null` or `''` counts as empty * @param error the rendered error nodes from `useCommonProps` * @param schema the control schema; a `type` that includes `'null'` marks the field nullable * @returns the `error` prop for the input */ export declare function useNullableErrorProps(value: JsonFormsDataValue, error: ReactElement[] | undefined, schema: JsonSchema): { error: ReactElement[] | string | undefined; };