import { d as BaseConfig, S as SmsPayload } from "../../../packem_shared/types.d-C7l7qdMG.js"; import { a as ProviderFactory, P as Provider } from "../../../packem_shared/provider.d-Dh32nRm9.js"; import { l as ReceiverOptions, R as Receiver } from "../../../packem_shared/types.d-4T7bNo4x.js"; import "../../../packem_shared/types.d-BXfGenMH.js"; interface TwilioConfig extends BaseConfig { /** Twilio Account SID. */ accountSid: string; /** Twilio Auth Token. */ authToken: string; /** Override the API base URL. */ endpoint?: string; /** Default sender phone number or Messaging Service SID. */ from?: string; /** Use `MessagingServiceSid` instead of `From` when `from` looks like a service SID. */ messagingServiceSid?: string; } /** * Twilio SMS/MMS provider. Edge-safe — uses `fetch` + Basic auth, no Node built-ins. * @see https://www.twilio.com/docs/sms/api/message-resource */ declare const twilioProvider$1: ProviderFactory; /** * Options for the Twilio inbound receiver (SMS and WhatsApp). */ interface TwilioReceiverOptions extends ReceiverOptions { /** The Twilio auth token, used to verify `X-Twilio-Signature`. */ authToken: string; /** * The outbound Twilio SMS provider used by `context.reply()`, which addresses the reply * back to the sender (re-applying the `whatsapp:` prefix for WhatsApp). Optional. */ provider?: Provider; /** * The public URL Twilio signed the request against. Twilio's signature covers the exact * webhook URL it was configured with, so behind a proxy or rewrite (where `request.url` * differs) set this to the configured URL. Defaults to `request.url`. */ url?: string; } /** * Creates a Twilio inbound receiver for incoming SMS and WhatsApp messages. Requests are * verified with Twilio's signature scheme (base64 HMAC-SHA1 over the request URL plus sorted * form parameters) before dispatch. * * A handler may return an {@link ../types.InboundReply}; its `text` is serialised into a TwiML * message element. Returning nothing acknowledges with an empty TwiML document. * @param options Verification config, the message handler and an optional reply provider. * @returns The inbound channel. */ declare const createTwilioReceiver: (options: TwilioReceiverOptions) => Receiver; /** @deprecated Renamed to `createTwilioProvider`; removed in the next major. */ declare const twilioProvider: typeof twilioProvider$1; export { type TwilioConfig, type TwilioReceiverOptions, twilioProvider$1 as createTwilioProvider, createTwilioReceiver, twilioProvider };