UNPKG

sandeep-react-chatbotify

Version:

A modern React library for creating flexible and extensible chatbots.

18 lines 585 B
import { Dispatch, SetStateAction } from "react"; import { Toast } from "../types/Toast"; /** * Creates the useToastsContext() hook to manage toasts. */ type ToastsContextType = { toasts: Toast[]; setToasts: Dispatch<SetStateAction<Toast[]>>; }; declare const useToastsContext: () => ToastsContextType; /** * Creates provider to wrap the chatbot container. */ declare const ToastsProvider: ({ children }: { children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element; export { useToastsContext, ToastsProvider }; //# sourceMappingURL=ToastsContext.d.ts.map