import { StyleOptions, StrictStyleOptions } from 'botframework-webchat-api'; import { AdaptiveCard, GlobalSettings, HorizontalAlignment, HostConfig, OpenUrlAction, TextSize, TextWeight, SerializationContext, Version } from 'adaptivecards'; /** * Adaptive Cards styling */ type StrictAdaptiveCardsStyleOptions = { /** Adaptive Cards: Specify the maximum schema version supported by the Adaptive Card serializer. */ adaptiveCardsParserMaxVersion: string | undefined; /** * Adaptive Cards styling for 'emphasis' container style */ cardEmphasisBackgroundColor: string | undefined; /** * Adaptive Cards: background color of Adaptive Cards button with status of 'aria-pressed' */ cardPushButtonBackgroundColor: string | undefined; /** * Adaptive Cards: text color of Adaptive Cards button with status of 'aria-pressed' */ cardPushButtonTextColor: string | undefined; /** * Cards: Rich Cards * Enable title (and subtitle) wrapping */ richCardWrapTitle: boolean | undefined; /** * Cards: Rich Cards * When `true`, omits `style: 'heading'` from the title so the rendered TextBlock has no * `role="heading"` / `aria-level`. Defaults to `false` (existing behavior keeps the heading * style; see issue #4327). */ richCardTitleOmitHeadingRole: boolean | undefined; }; type AdaptiveCardsStyleOptions = Partial; type FullBundleStyleOptions = StyleOptions & AdaptiveCardsStyleOptions; type StrictFullBundleStyleOptions = StrictStyleOptions & StrictAdaptiveCardsStyleOptions; type AdaptiveCardsPackage = { AdaptiveCard: typeof AdaptiveCard; GlobalSettings: typeof GlobalSettings; HorizontalAlignment: typeof HorizontalAlignment; HostConfig: typeof HostConfig; OpenUrlAction: typeof OpenUrlAction; TextSize: typeof TextSize; TextWeight: typeof TextWeight; SerializationContext: typeof SerializationContext; Version: typeof Version; }; export type { AdaptiveCardsPackage as A, FullBundleStyleOptions as F, StrictFullBundleStyleOptions as S, AdaptiveCardsStyleOptions as a };