import type { MouseEvent, ReactNode } from 'react'; import React from 'react'; type ToasterType = 'info' | 'success' | 'warning' | 'error'; interface Props { /** * Depending on the passed type, the color is determined * * @param {ToasterType} info Uses #007d91 color code as border & icon color * @param {ToasterType} success Uses #e80c0c color code as border & icon color * @param {ToasterType} warning Uses #00b201 color code as border & icon color * @param {ToasterType} error Uses #ff7800 color code as border & icon color * * @default 'info' */ type: ToasterType; /** * Content of the toaster */ children?: ReactNode; /** * Allows to pass a custom className */ className?: string; /** * Label to show for the close button in the content */ closeLabel?: string; /** * Allows to pass testid string for testing purposes */ 'data-testid'?: string; /** * Allows to dismiss the toaster programmatically * * @default false */ dismissed?: boolean; /** * On close button click callback */ onClickCloseButton?: (e: MouseEvent) => void; } declare const Toaster: ({ type, "data-testid": dataTestId, closeLabel, ...props }: Props) => React.JSX.Element | null; /** @component */ export default Toaster;