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 VonageConfig extends BaseConfig { /** Vonage (Nexmo) API key. */ apiKey: string; /** Vonage (Nexmo) API secret. */ apiSecret: string; /** Override the API base URL. */ endpoint?: string; /** Default sender id or phone number. */ from?: string; } /** * Vonage (Nexmo) SMS provider. Edge-safe — `fetch` + form auth. * @see https://developer.vonage.com/en/api/sms */ declare const vonageProvider$1: ProviderFactory; /** * Options for the Vonage inbound receiver. */ interface VonageReceiverOptions extends ReceiverOptions { /** The outbound Vonage SMS provider used by `context.reply()`. Optional. */ provider?: Provider; /** The account signature secret (verifies the `Authorization: Bearer` JWT). */ signatureSecret: string; } /** * Creates a Vonage inbound receiver for the Messages API. Requests carry an HS256 JWT in the * `Authorization: Bearer` header, signed with the account signature secret; the JWT's * `payload_hash` claim (SHA-256 of the raw body) binds it to this request. Both the signature * and `payload_hash` are checked, along with the token's validity window, before dispatch. * * Vonage has no synchronous reply; acknowledge and answer via `context.reply()`. * @param options Verification config, the message handler and an optional reply provider. * @returns The inbound channel. */ declare const createVonageReceiver: (options: VonageReceiverOptions) => Receiver; /** @deprecated Renamed to `createVonageProvider`; removed in the next major. */ declare const vonageProvider: typeof vonageProvider$1; export { type VonageConfig, type VonageReceiverOptions, vonageProvider$1 as createVonageProvider, createVonageReceiver, vonageProvider };