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 MessageBirdConfig extends BaseConfig { /** MessageBird (Bird) access key. */ accessKey: string; /** Override the API base URL. */ endpoint?: string; /** Default originator (sender id or number). */ from?: string; } /** * MessageBird (Bird) SMS provider. Sends to many recipients in one call. * @see https://docs.bird.com/api/sms-messaging */ declare const messageBirdProvider$1: ProviderFactory; /** * Options for the MessageBird inbound receiver. */ interface MessageBirdReceiverOptions extends ReceiverOptions { /** The outbound MessageBird SMS provider used by `context.reply()`. Optional. */ provider?: Provider; /** The webhook signing key from the MessageBird dashboard (verifies the JWT signature). */ signingKey: string; /** * The public URL MessageBird signed (the `url_hash` claim covers the full URL). Set this * when `request.url` differs from the configured webhook URL (proxy/rewrite). Defaults to * `request.url`. */ url?: string; } /** * Creates a MessageBird inbound receiver. Requests are verified with MessageBird's * `messagebird-signature-jwt` scheme: an HS256 JWT signed with the signing key whose claims * bind the request — `iss` (`MessageBird`), `jti`, `exp`, `url_hash` (SHA-256 of the full URL) * and `payload_hash` (SHA-256 of the body) — each of which is checked before dispatch. * * MessageBird 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 createMessageBirdReceiver: (options: MessageBirdReceiverOptions) => Receiver; /** @deprecated Renamed to `createMessageBirdProvider`; removed in the next major. */ declare const messageBirdProvider: typeof messageBirdProvider$1; export { type MessageBirdConfig, type MessageBirdReceiverOptions, messageBirdProvider$1 as createMessageBirdProvider, createMessageBirdReceiver, messageBirdProvider };