UNPKG

sandeep-react-chatbotify

Version:

A modern React library for creating flexible and extensible chatbots.

15 lines 592 B
/// <reference types="react" /> import { Flow } from "../../types/Flow"; /** * Internal custom hook to handle paths in the chatbot conversation flow. */ export declare const usePathsInternal: () => { getCurrPath: () => string | null; getPrevPath: () => string | null; goToPath: (pathToGo: keyof Flow) => Promise<boolean>; blockAllowsAttachment: boolean; setBlockAllowsAttachment: import("react").Dispatch<import("react").SetStateAction<boolean>>; paths: string[]; replacePaths: (newPaths: Array<string>) => void; }; //# sourceMappingURL=usePathsInternal.d.ts.map