///
///
import { EventEmitter } from "events";
interface Options {
lifetime?: number;
isOpen?: boolean;
hasTimeout?: boolean;
disableIdenticalMessages?: boolean;
}
interface Notification {
message: string | React.ReactNode;
eventId?: string;
options?: Options;
}
declare class NotificationManager extends EventEmitter {
listNotify: {
id: string;
eventId: string;
type: string;
offset: number;
message: string | React.ReactNode;
options?: Options;
}[];
constructor();
create(notify: any): void;
success({ message, eventId, options }: Notification): void;
warning({ message, eventId, options }: Notification): void;
danger({ message, eventId, options }: Notification): void;
note({ message, eventId, options }: Notification): void;
remove(notification: any): void;
removeAllNotifications(): void;
emitChange(): void;
addChangeListener(callback: any): void;
removeChangeListener(callback: any): void;
private calculateLifetime;
}
declare const _default: NotificationManager;
export default _default;