import { Twilio } from "twilio"; import { BaseAccount, MessengerClient } from "./MessengerClient"; export interface TwilioAccount extends BaseAccount { options: { /** * Default sender phone number */ defaultSender: string; }; } export declare class TwilioClient extends MessengerClient { constructor(); /** * Sends a SMS using one of the registered accounts. * * @param accountName Account name * @param to Recipient phone number * @param body SMS content * @param options.from Twilio phone number */ sendSms(accountName: string, to: string, body: string, { from }?: { from?: string; }): Promise; /** * Adds an account to send email with. * * @param name Account name * @param accountSid Twilio account sid * @param authToken Twilio auth token * @param defaultSender Default number to send SMS */ addAccount(name: string, accountSid: string, authToken: string, defaultSender: string): void; protected _createAccount(name: string, accountSid: string, authToken: string, defaultSender: string): { name: string; client: import("twilio/lib/rest/Twilio"); options: { defaultSender: string; }; }; private sendMessage; }