UNPKG

bottender

Version:

A framework for building conversational user interfaces.

20 lines 596 B
import Context from '../context/Context'; import { Action } from '../types'; import { RoutePredicate } from '../router'; import WhatsappContext from './WhatsappContext'; declare type Route = <C extends Context>(action: Action<WhatsappContext, any>) => { predicate: RoutePredicate<C>; action: Action<WhatsappContext, any>; }; declare type Whatsapp = Route & { any: Route; message: Route; media: Route; received: Route; sent: Route; delivered: Route; read: Route; }; declare const whatsapp: Whatsapp; export default whatsapp; //# sourceMappingURL=routes.d.ts.map