UNPKG

voxa

Version:

A fsm (state machine) framework for Alexa, Dialogflow, Facebook Messenger and Botframework apps using Node.js

14 lines (13 loc) 426 B
import { IBag, IVoxaEvent } from "./VoxaEvent"; export declare class Model { [key: string]: any; static deserialize(data: IBag, voxaEvent: IVoxaEvent): Promise<Model> | Model; state?: string; constructor(data?: any); serialize(): Promise<any>; } export interface IModel { new (data?: any): Model; deserialize(data: IBag, event: IVoxaEvent): Model | Promise<Model>; serialize(): Promise<any>; }