react-chatbotify
Version:
A modern React library for creating flexible and extensible chatbots.
11 lines • 446 B
TypeScript
/**
* External custom hook for managing paths in the chatbot conversation flow.
*/
export declare const usePaths: () => {
getCurrPath: () => string | null;
getPrevPath: () => string | null;
goToPath: (pathToGo: keyof import("..").Flow) => Promise<boolean>;
paths: string[];
replacePaths: (newPathsOrUpdater: Array<string> | ((currentPaths: Array<string>) => Array<string>)) => void;
};
//# sourceMappingURL=usePaths.d.ts.map