import { d as BaseConfig, b as ChatPayload } 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 MsTeamsConfig extends BaseConfig { /** Microsoft Teams Incoming Webhook URL. Required. */ webhookUrl: string; } /** * Microsoft Teams chat provider via Incoming Webhook. When `blocks` is provided it is * sent verbatim (e.g. an Adaptive Card / MessageCard), otherwise a plain MessageCard is * built from `text`. Edge-safe — `fetch` only. * @see https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using */ declare const msTeamsProvider$1: ProviderFactory; /** * Options for the Microsoft Teams inbound receiver (outgoing webhook). */ interface MsTeamsReceiverOptions extends ReceiverOptions { /** The outbound Teams chat provider used by `context.reply()`. Optional. */ provider?: Provider; /** * The security token (HMAC key) Teams issued when the outgoing webhook was created. It is * base64-decoded to key the HMAC that verifies the `Authorization` header. */ securityToken: string; } /** * Creates a Microsoft Teams inbound receiver for outgoing webhooks. Requests are verified with * Teams' HMAC scheme — base64 HMAC-SHA256 over the raw request body, keyed by the * base64-decoded security token, carried in the `Authorization` header as `HMAC` plus the * signature. * * A handler may return an {@link ../types.InboundReply}; its `text` is serialised into a Bot * Framework message activity in the HTTP response, which Teams renders as the reply. * @param options Verification config, the message handler and an optional reply provider. * @returns The inbound channel. */ declare const createMsTeamsReceiver: (options: MsTeamsReceiverOptions) => Receiver; /** @deprecated Renamed to `createMsTeamsProvider`; removed in the next major. */ declare const msTeamsProvider: typeof msTeamsProvider$1; export { type MsTeamsConfig, type MsTeamsReceiverOptions, msTeamsProvider$1 as createMsTeamsProvider, createMsTeamsReceiver, msTeamsProvider };