UNPKG

react-toast-notify-ks

Version:

toast notification library for React

16 lines 501 B
import { Toast, ToastOptions } from '../types'; declare class ToastManager { private static instance; private toasts; private subscribers; private maxToasts; private constructor(); static getInstance(): ToastManager; subscribe(callback: (toasts: Toast[]) => void): () => void; private notify; show(options: ToastOptions): void; remove(id: string): void; } declare const _default: ToastManager; export default _default; //# sourceMappingURL=ToastManager.d.ts.map