sandeep-react-chatbotify
Version:
A modern React library for creating flexible and extensible chatbots.
24 lines • 1.45 kB
TypeScript
import { Params } from "../../types/Params";
import { Flow } from "../../types/Flow";
/**
* Handles the preprocessing within a block.
*
* @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 setTextAreaDisabled sets the state of the textarea for user input
* @param setTextAreaSensitiveMode sets the sensitive mode of the textarea for user input
* @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 preProcessBlock: (flow: Flow, path: keyof Flow, params: Params, setTextAreaDisabled: (inputDisabled: boolean) => void, setTextAreaSensitiveMode: (inputDisabled: boolean) => void, goToPath: (pathToGo: string) => Promise<boolean>, setTimeoutId: (timeoutId: ReturnType<typeof setTimeout>) => void) => Promise<void>;
/**
* Handles the postprocessing within a block.
*
* @param flow conversation flow for the bot
* @param path path associated with the current block
* @param params contains utilities that can be used/passed into attributes
* @param goToPath: function to go to specified path
*/
export declare const postProcessBlock: (flow: Flow, path: keyof Flow, params: Params, goToPath: (pathToGo: string) => Promise<boolean>) => Promise<boolean>;
//# sourceMappingURL=BlockService.d.ts.map