import { type FC, RefObject } from 'react'; export type ErrorSummaryHeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; export interface ErrorMessage { text: string; target: RefObject | string; } export interface ErrorSummaryProps { className?: string; /** * @default h2 */ headingTag?: ErrorSummaryHeadingTag; /** * Array of objects with a `text` attribute containing the error message and a `target` * referencing the target input that will get the focus when clicking the error. The * target can either be the id of the element or a component ref. */ messages: ErrorMessage[]; } export declare const ErrorSummary: FC;