import * as React from 'react'; import { IDiv } from '../../interfaces'; import { intent } from './Alert.types'; interface AlertProps extends IDiv { /** * When closable props is true, show clickable cross icon on top-right side of alert component. * When you clicked to this icon, alert will unmount. * @default false */ closable?: boolean; /** * When alert type is custom, you can define icon name here */ customIcon?: string; /** * Alert message */ message?: React.ReactNode; /** * Alert description */ description?: React.ReactNode; /** * Type of intent define alert's type. It changes border and background color and alert's icon. */ intent?: intent; /** * Callback function when click on close icon */ onClose?: (e: any) => void; /** * Additional className on alert wrapper */ className?: string; } interface AlertStates { isClosed?: boolean; } export declare class Alert extends React.PureComponent { static defaultProps: { closable: boolean; }; constructor(props: AlertProps); handleClose: (e: any) => void; render(): JSX.Element; } export {};