react-chatbotify
Version:
A modern React library for creating flexible and extensible chatbots.
16 lines • 675 B
TypeScript
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: (newPaths: Array<string>) => void;
firePostProcessBlockEvent: (block: Block) => Promise<Block | null>;
};
//# sourceMappingURL=usePathsInternal.d.ts.map