UNPKG

react-toast-notify-ks

Version:

toast notification library for React

15 lines 465 B
import { ReactNode } from 'react'; import { Toast, ToastOptions } from '../types'; interface ToastState { toasts: Toast[]; } export declare const ToastProvider: ({ children }: { children: ReactNode; }) => import("react/jsx-runtime").JSX.Element; export declare const useToastContext: () => { state: ToastState; addToast: (options: ToastOptions) => void; removeToast: (id: string) => void; }; export {}; //# sourceMappingURL=ToastContext.d.ts.map