import * as React from 'react'; import { NotificationType } from '../Notifications/types'; import { StandardProps } from '../../common'; export interface NotificationProps extends StandardProps { /** * Sets the type of the notification. */ type?: NotificationType; /** * Sets the title of the notification message. */ title?: string; /** * Optionally provides a custom way for rendering an action control. * If `closeable` is set to `true`, clicking on the action element will also trigger an `onClose` event. */ actionRenderer?(): React.ReactChild; /** * Event fired when the close action triggered. Return `false` if don't * want notification to self-close after event was played. */ onClose?(e: React.MouseEvent): boolean | void; /** * Sets if the notification can be closed or not. * @default true */ closeable?: boolean; } export interface NotificationState { closed: boolean; } export interface StyledNotificationProps { closed: boolean; type: NotificationType; } /** * The Notification component for rendering an inline notification message. */ export declare class Notification extends React.Component { constructor(props: NotificationProps); static defaultProps: { closeable: boolean; }; private onCloseHandler; render(): JSX.Element; static inner: { readonly StyledNotification: any; readonly IconContainer: any; readonly StyledIcon: any; readonly ContentContainer: any; readonly StyledTitle: any; readonly StyledContent: any; readonly ActionContainer: any; readonly ContentWrapper: any; readonly CloseButton: any; }; }