/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import ErrorBoundary from './ErrorBoundary'; export interface AlertProps { type?: 'success' | 'info' | 'warning' | 'error'; closable?: boolean; closeText?: React.ReactNode; message: React.ReactNode; description?: React.ReactNode; onClose?: React.MouseEventHandler; afterClose?: () => void; showIcon?: boolean; role?: string; style?: React.CSSProperties; prefixCls?: string; className?: string; banner?: boolean; icon?: React.ReactNode; action?: React.ReactNode; mintor?: boolean; onMouseEnter?: React.MouseEventHandler; onMouseLeave?: React.MouseEventHandler; onClick?: React.MouseEventHandler; messageStyle?: React.CSSProperties; } interface AlertInterface extends React.FC { ErrorBoundary: typeof ErrorBoundary; } declare const Alert: AlertInterface; export default Alert;