import { TeamsAdaptiveCard, TeamsCardAttachment, TeamsCardElement, TeamsSubmitAction, TeamsSubmitData } from "./types.js"; //#region src/teams/constants.d.ts /** The Adaptive Card schema version emitted by {@link toAdaptiveCard}: the Teams desktop/web cap (mobile clients cap at 1.2). */ export declare const AC_VERSION = "1.5"; /** The `$schema` URL stamped on every emitted card. */ export declare const ADAPTIVE_CARD_SCHEMA = "http://adaptivecards.io/schemas/adaptive-card.json"; /** The `contentType` stamped on every emitted attachment. */ export declare const ATTACHMENT_CONTENT_TYPE = "application/vnd.microsoft.card.adaptive"; /** The maximum number of attachments produced from a root-level Carousel. */ export declare const CAROUSEL_ATTACHMENT_CAP = 10; /** The maximum number of primary-mode actions in one ActionSet; extras are set to secondary mode instead of being dropped. */ export declare const PRIMARY_ACTION_CAP = 6; /** The maximum number of data rows in a Table. */ export declare const TABLE_ROW_CAP = 100; /** The maximum number of columns in a Table. */ export declare const TABLE_COLUMN_CAP = 20; /** The maximum number of choices in a Select or RadioGroup. */ export declare const CHOICE_OPTION_CAP = 100; /** The soft byte-count budget for a serialized card, past which a warning notes Teams' 100 KB bot message limit (the card is never truncated to fit it). */ export declare const PAYLOAD_SOFT_CAP = 80000; /** Measures the wire size of `value` in UTF-8 bytes rather than UTF-16 code units. */ export declare function utf8ByteLength(value: string): number; /** Builds the fixed-shape Adaptive Card envelope around a converted body. */ export declare function buildCard(body: TeamsCardElement[]): TeamsAdaptiveCard; /** Wraps a card as a bot-framework message attachment. */ export declare function buildAttachment(card: TeamsAdaptiveCard): TeamsCardAttachment; /** * Nests an IR action under an `aui` key so `decodeSubmitData` can invert it * back out of the merged `activity.value` object a Teams bot receives, * alongside whatever other named inputs shared the card. */ export declare function buildSubmitData(action: unknown): TeamsSubmitData; /** Builds an Action.Submit carrying `action` in the `aui` envelope. */ export declare function buildSubmitAction(title: string, action: unknown, mode?: "secondary"): TeamsSubmitAction; //#endregion //# sourceMappingURL=constants.d.ts.map