import { NvAlertMods } from './types.ts'; import { FC, MouseEvent, ReactNode } from "react"; interface NvAlertProps { /** The color of the component. */ color: NvAlertMods; /** If true, the component will be rendered. The component could be dismissed even if props is true, because of the timeout. */ isOpen?: boolean; /** Callback fired when the component requests to be closed. When provided, a close icon button is displayed that triggers the callback when clicked. */ dismiss?: (e: MouseEvent) => void; /** The duration before component will be dismissed automatically, in milliseconds. If undefined or 0 component will not be dismissed automatically. */ timeout?: number; /** The additional CSS class for the wrapper element. */ className?: string; /** The content of the component. */ children: ReactNode; } /** * Functional component for rendering an alert with customizable color, dismiss functionality, and timeout. * @param {NvAlertMods} color The color of the alert (default is PRIMARY). * @param {function} dismiss Function to dismiss the alert. * @param {boolean} isOpen Flag indicating if the alert is visible. * @param {number} timeout Time in milliseconds before the alert automatically dismisses (default is 0). * @param {string} className - The additional CSS class for the wrapper element. * @param children The content to be displayed within the alert. * @returns The rendered alert component. */ declare const NvAlert: FC; export default NvAlert;