import * as React from "react"; import { ConfigConsumerProps } from "../Config"; declare type AlertType = "info" | "error" | "success" | "warn"; interface Iprops { /** * 类型 可选 "info" | "error" | "success" | "warn" * * @default "info" **/ type?: AlertType | string; /** * 样式前缀 * * @default "lg" **/ prefixCls?: string; /** * 警告提示内容 * * @default "" **/ message?: React.ReactNode; /** * 是否显示辅助图标 * * @default false **/ hasIcon?: boolean; /** * 警告提示的辅助性文字介绍 * * @default **/ description?: string; /** * 是否显示关闭按钮 * * @default false **/ hasClose?: boolean; /** * 关闭时触发的回调函数钮 * * @default **/ onClose?: (e: MouseEvent) => void; /** * 自定义关闭按钮 * * @default **/ renderClose?: boolean | Function; } interface Istate { showAlert: boolean; } export default class Alert extends React.PureComponent { static defaultProps: { type: string; }; constructor(props: any); closeAlert: (e: any) => void; renderClose: (prefixCls: any) => any; renderAlert: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element | null; render(): JSX.Element; } export {};