import React from "react"; import { TagProps } from "../../../__internal__/utils/helpers/tags"; export interface ValidationMessageProps extends TagProps { /** * If true, displays error styling. If passed as a valid string, displays error styling * and the message as children. */ error?: boolean | string; /** Id of the component, to be used for accessibility purposes */ id?: string; /** * If true, displays warning styling. If passed as a valid string, displays warning styling * and the message as children. */ warning?: boolean | string; /** Size of the validation message font */ size?: "small" | "medium" | "large"; } declare const ValidationMessage: ({ error, id, warning, "data-element": dataElement, "data-role": dataRole, size, }: ValidationMessageProps) => React.JSX.Element | null; export default ValidationMessage;