import React, { CSSProperties, HTMLAttributes, ReactNode } from 'react'; import { WithRef } from '../utils/type'; export declare type AlertType = 'default' | 'info' | 'error' | 'success' | 'warning'; export declare type AlertClosableObject = { icon?: ReactNode; onClose?(): void; }; export declare type AlertClosable = boolean | AlertClosableObject; export declare type AlertProps = { /** 左侧 icon */ icon?: ReactNode; type?: AlertType; message: ReactNode; desc?: ReactNode; /** * 是否可关闭 & 自定义关闭按钮和 onClose * * 如果为 `true` 则会用默认的关闭图标 * * @default undefined */ closable?: AlertClosable; className?: string; style?: CSSProperties; /** * 根元素的 html 属性 */ rootHtmlProps?: WithRef, HTMLDivElement>; }; export default function Alert(props: AlertProps): React.JSX.Element | null;