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 TelnyxConfig extends BaseConfig { /** Telnyx API key (v2). */ apiKey: string; /** Override the API base URL. */ endpoint?: string; /** Default sender phone number. */ from?: string; /** Messaging profile id (alternative to `from`). */ messagingProfileId?: string; } /** * Telnyx SMS/MMS provider (v2 API). Edge-safe — `fetch` + Bearer auth. * @see https://developers.telnyx.com/api/messaging/send-message */ declare const telnyxProvider$1: ProviderFactory; /** * Options for the Telnyx inbound receiver. */ interface TelnyxReceiverOptions extends ReceiverOptions { /** The outbound Telnyx SMS provider used by `context.reply()`. Optional. */ provider?: Provider; /** The account's Ed25519 public key (base64), from the Telnyx Mission Control portal. */ publicKey: string; } /** * Creates a Telnyx inbound receiver for incoming SMS/MMS. Requests are verified with Telnyx's * Ed25519 scheme — the `telnyx-signature-ed25519` header (base64) over `{timestamp}|{body}`, * checked against the account public key, with the `telnyx-timestamp` held to a 5-minute * replay window. * * Telnyx has no synchronous reply, so acknowledge and answer through `context.reply()` (or the * outbound Telnyx provider). * @param options Verification config, the message handler and an optional reply provider. * @returns The inbound channel. */ declare const createTelnyxReceiver: (options: TelnyxReceiverOptions) => Receiver; /** @deprecated Renamed to `createTelnyxProvider`; removed in the next major. */ declare const telnyxProvider: typeof telnyxProvider$1; export { type TelnyxConfig, type TelnyxReceiverOptions, telnyxProvider$1 as createTelnyxProvider, createTelnyxReceiver, telnyxProvider };