1 | import { InteractionsOptions } from './Interactions';
|
2 | import { InteractionsResponse } from './Response';
|
3 | export 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 | }
|
10 | export interface InteractionsProviders {
|
11 | [key: string]: InteractionsProvider;
|
12 | }
|