UNPKG

sandeep-react-chatbotify

Version:

A modern React library for creating flexible and extensible chatbots.

14 lines 818 B
import { Flow } from "../../types/Flow"; import { Params } from "../../types/Params"; /** * Handles processing of transition in current block. * * @param messages messages containing current conversation with the bot * @param flow conversation flow for the bot * @param path path associated with the current block * @param params contains parameters that can be used/passed into attributes * @param goToPath: function to go to specified path * @param setTimeoutId sets the timeout id for the transition attribute if it is interruptable */ export declare const processTransition: (flow: Flow, path: keyof Flow, params: Params, goToPath: (pathToGo: string) => Promise<boolean>, setTimeoutId: (timeoutId: ReturnType<typeof setTimeout>) => void) => Promise<void>; //# sourceMappingURL=TransitionProcessor.d.ts.map