import type { SeverityColors } from '@digdir/designsystemet-types'; import type { HTMLAttributes } from 'react'; import type { DefaultProps } from '../../types'; import type { MergeRight } from '../../utilities'; export type ValidationMessageProps = MergeRight & HTMLAttributes, { /** * Sets color and icon. * @default 'danger' */ 'data-color'?: SeverityColors; /** * Change the default rendered element for the one passed as a child, merging their props and behavior. * @default false */ asChild?: boolean; }>; /** * Use `ValidationMessage` to display validation text * * @example * This is a danger validation message */ export declare const ValidationMessage: import("react").ForwardRefExoticComponent & HTMLAttributes, "data-color" | "asChild"> & { /** * Sets color and icon. * @default 'danger' */ 'data-color'?: SeverityColors; /** * Change the default rendered element for the one passed as a child, merging their props and behavior. * @default false */ asChild?: boolean; } & import("react").RefAttributes>; //# sourceMappingURL=validation-message.d.ts.map