import { FC, ReactNode } from 'react'; import { IconTypes } from '../icon/Icon'; export type AlertType = 'default' | 'primary' | 'info' | 'error' | 'warn' | 'success'; export interface Props { children: ReactNode; /** Overrides the type prop to become type "error" */ error?: boolean; /** Puts an icon to the left on the alert content */ icon?: IconTypes; /** Sets a label above the content of the alert */ label?: string; onDismiss?: () => void; /** Sets the type of alert ('default', 'error', 'warn', 'success') */ type?: AlertType; } declare const Alert: FC; export default Alert;