import { ClassNameOrFunction, RenderProps } from './utils'; import { DOMProps, GlobalDOMAttributes, ValidationResult } from '@react-types/shared'; import React from 'react'; export declare const FieldErrorContext: React.Context; export interface FieldErrorRenderProps extends ValidationResult { } export interface FieldErrorProps extends RenderProps, DOMProps, GlobalDOMAttributes { /** * The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state. * @default 'react-aria-FieldError' */ className?: ClassNameOrFunction; /** * The HTML element type to render. Defaults to `'span'`. * Set to `'div'` when using block-level children (e.g. `
    `) to avoid invalid HTML. * @default 'span' */ elementType?: string; } /** * A FieldError displays validation errors for a form field. */ export declare const FieldError: React.ForwardRefExoticComponent>;