/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { HTMLAttributes, PropsWithChildren } from 'react'; import type { IconProps } from '../Icon'; export type ErrorMessageProps = { /** * An icon to display instead of the default icon. * Websites for the City of Amsterdam must use the default icon. * @default WarningIcon */ readonly icon?: IconProps['svg']; /** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */ readonly prefix?: string; } & Readonly>>; /** * Labels a validation error for a specific form field and explains how to resolve it. * * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-error-message--docs Error Message docs at Amsterdam Design System} */ export declare const ErrorMessage: import("react").ForwardRefExoticComponent<{ /** * An icon to display instead of the default icon. * Websites for the City of Amsterdam must use the default icon. * @default WarningIcon */ readonly icon?: IconProps["svg"]; /** An accessible phrase that screen readers announce before the error message. Should translate to something like ‘input error’. */ readonly prefix?: string; } & Readonly>> & import("react").RefAttributes>;