UNPKG

react-chatbotify

Version:

A modern React library for creating flexible and extensible chatbots.

16 lines 735 B
import { Flow } from "../../types/Flow"; import { Block } from "../../types/Block"; /** * 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: (newPathsOrUpdater: Array<string> | ((currentPaths: Array<string>) => Array<string>)) => void; firePostProcessBlockEvent: (block: Block) => Promise<Block | null>; }; //# sourceMappingURL=usePathsInternal.d.ts.map