import React from 'react'; type FlashMessageVariantKeys = 'success' | 'info' | 'warning' | 'error'; export interface FlashMessageProps { /** * Flash message variant to use */ variant?: FlashMessageVariantKeys; /** * Hide icon associated with variant */ isIconHidden?: boolean; /** * onClick handler to handle clicking on close icon */ onClick?: (event: React.MouseEvent) => void; testId?: string; /** * Text to be displayed in the flash message */ text?: string; /** * alternative way to display text in the flash message */ children?: React.ReactNode; } declare const FlashMessage: ({ variant, isIconHidden, onClick, testId, text, children, ...otherProps }: FlashMessageProps) => JSX.Element; export default FlashMessage;