@aws-amplify/interactions
Version:
Interactions category of aws-amplify
25 lines (24 loc) • 1.11 kB
TypeScript
import { InteractionsOptions, InteractionsProvider, InteractionsMessage, InteractionsResponse } from './types';
export declare class InteractionsClass {
private _options;
private _pluggables;
/**
* Initialize PubSub with AWS configurations
*
* @param {InteractionsOptions} options - Configuration object for Interactions
*/
constructor(options?: InteractionsOptions);
getModuleName(): string;
/**
*
* @param {InteractionsOptions} options - Configuration object for Interactions
* @return {InteractionsOptions} - The current configuration
*/
configure(options: InteractionsOptions): InteractionsOptions;
addPluggable(pluggable: InteractionsProvider): void;
send(botname: string, message: string): Promise<InteractionsResponse>;
send(botname: string, message: InteractionsMessage): Promise<InteractionsResponse>;
send(botname: string, message: object): Promise<InteractionsResponse>;
onComplete(botname: string, callback: (err: any, confirmation: any) => void): void;
}
export declare const Interactions: InteractionsClass;