UNPKG

535 BTypeScriptView Raw
1import { InteractionsOptions } from './Interactions';
2import { InteractionsResponse } from './Response';
3export interface InteractionsProvider {
4 configure(config: InteractionsOptions): InteractionsOptions;
5 getCategory(): string;
6 getProviderName(): string;
7 sendMessage(botname: string, message: string | Object): Promise<object>;
8 onComplete(botname: string, callback: (err: any, confirmation: InteractionsResponse) => void): any;
9}
10export interface InteractionsProviders {
11 [key: string]: InteractionsProvider;
12}