import * as React from 'react'; import './style/notification.css'; export declare type NotificationPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'; export declare type IconType = 'success' | 'info' | 'error' | 'warning'; export interface NotificationConfigProps { top?: number; bottom?: number; duration?: number; placement?: NotificationPlacement; getContainer?: () => HTMLElement; closeIcon?: React.ReactNode; rtl?: boolean; } export interface ArgsProps { message: React.ReactNode; description?: React.ReactNode; footer?: React.ReactNode; key?: string; onClose?: () => void; duration?: number | null; placement?: NotificationPlacement; style?: React.CSSProperties; className?: string; readonly type?: IconType; emotion?: string; onClick?: () => void; top?: number; bottom?: number; getContainer?: () => HTMLElement; closeIcon?: React.ReactNode; } export interface NotificationInstance { success(args: ArgsProps): void; error(args: ArgsProps): void; info(args: ArgsProps): void; warning(args: ArgsProps): void; open(args: ArgsProps): void; } export interface NotificationApi extends NotificationInstance { close(key: string): void; config(options: NotificationConfigProps): void; destroy(): void; } declare const _default: NotificationApi; export default _default;