react-chatbotify
Version:
A modern React library for creating flexible and extensible chatbots.
10 lines • 386 B
TypeScript
/**
* External custom hook for managing toasts.
*/
export declare const useToasts: () => {
showToast: (content: string | JSX.Element, timeout?: number) => Promise<string | null>;
dismissToast: (id: string) => Promise<string | null>;
toasts: import("..").Toast[];
replaceToasts: (newToasts: Array<import("..").Toast>) => void;
};
//# sourceMappingURL=useToasts.d.ts.map