import type { AdaptiveCard, AdaptiveAction, AdaptiveElement } from '../models.js'; import { VerticalAlignment } from '../enums.js'; import { TextBlockBuilder } from './TextBlockBuilder.js'; import { ImageBuilder } from './ImageBuilder.js'; import { ContainerBuilder } from './ContainerBuilder.js'; import { ColumnSetBuilder } from './ColumnSetBuilder.js'; import { FactSetBuilder } from './FactSetBuilder.js'; import { RichTextBlockBuilder } from './RichTextBlockBuilder.js'; import { ActionSetBuilder } from './ActionSetBuilder.js'; import { MediaBuilder } from './MediaBuilder.js'; import { ImageSetBuilder } from './ImageSetBuilder.js'; import { TableBuilder } from './TableBuilder.js'; import { ActionBuilder } from './ActionBuilder.js'; import { BackgroundImageBuilder } from './BackgroundImageBuilder.js'; import { RefreshBuilder } from './RefreshBuilder.js'; import { AuthenticationBuilder } from './AuthenticationBuilder.js'; import { InputTextBuilder } from './inputs/InputTextBuilder.js'; import { InputNumberBuilder } from './inputs/InputNumberBuilder.js'; import { InputDateBuilder } from './inputs/InputDateBuilder.js'; import { InputTimeBuilder } from './inputs/InputTimeBuilder.js'; import { InputToggleBuilder } from './inputs/InputToggleBuilder.js'; import { InputChoiceSetBuilder } from './inputs/InputChoiceSetBuilder.js'; import { TeamsCardPropertiesBuilder } from './TeamsCardPropertiesBuilder.js'; /** Fluent builder for creating {@link AdaptiveCard} instances. */ export declare class AdaptiveCardBuilder { private static readonly SCHEMA_URLS; private readonly card; private teamsCardTypedSet; private teamsCardRawSet; /** Creates a new AdaptiveCardBuilder instance. @returns A new AdaptiveCardBuilder. */ static create(): AdaptiveCardBuilder; /** Sets the Adaptive Cards schema version and updates the schema URL automatically. @param version The version string, e.g. `'1.5'`. @returns The builder instance for method chaining. */ withVersion(version: string): this; /** Overrides the schema URL. @param schema The schema URL, or `undefined` to remove it. @returns The builder instance for method chaining. */ withSchema(schema: string | undefined): this; /** Sets the fallback text shown when the card cannot be rendered. @param fallbackText The fallback text. @returns The builder instance for method chaining. */ withFallbackText(fallbackText: string): this; /** Sets the text that a screen reader should speak for the card. @param speak The spoken text. @returns The builder instance for method chaining. */ withSpeak(speak: string): this; /** Sets the locale for the card (e.g. `'en-US'`). @param lang The BCP-47 language tag. @returns The builder instance for method chaining. */ withLang(lang: string): this; /** Sets the right-to-left text direction. @param rtl True to enable RTL. @returns The builder instance for method chaining. */ withRtl(rtl?: boolean): this; /** Sets the minimum height of the card. @param minHeight The minimum height (e.g. `'100px'`). @returns The builder instance for method chaining. */ withMinHeight(minHeight: string): this; /** Sets the vertical alignment of the card body content. @param alignment The vertical alignment. @returns The builder instance for method chaining. */ withVerticalContentAlignment(alignment: VerticalAlignment): this; /** Configures the background image of the card via a builder callback. @param configure A callback to configure the BackgroundImageBuilder. @returns The builder instance for method chaining. */ withBackgroundImage(configure: (b: BackgroundImageBuilder) => void): this; /** Sets the action to invoke when the card is selected. @param action The select action. @returns The builder instance for method chaining. */ withSelectAction(action: AdaptiveAction): this; /** Sets the card metadata (e.g. the web URL for deep linking). @param webUrl The web URL for the card. @returns The builder instance for method chaining. */ withMetadata(webUrl: string): this; /** Adds a TextBlock element. @param configure A callback to configure the TextBlockBuilder. @returns The builder instance for method chaining. */ addTextBlock(configure: (b: TextBlockBuilder) => void): this; /** Adds an Image element. @param configure A callback to configure the ImageBuilder. @returns The builder instance for method chaining. */ addImage(configure: (b: ImageBuilder) => void): this; /** Adds a Container element. @param configure A callback to configure the ContainerBuilder. @returns The builder instance for method chaining. */ addContainer(configure: (b: ContainerBuilder) => void): this; /** Adds a ColumnSet element. @param configure A callback to configure the ColumnSetBuilder. @returns The builder instance for method chaining. */ addColumnSet(configure: (b: ColumnSetBuilder) => void): this; /** Adds a FactSet element. @param configure A callback to configure the FactSetBuilder. @returns The builder instance for method chaining. */ addFactSet(configure: (b: FactSetBuilder) => void): this; /** Adds a RichTextBlock element. @param configure A callback to configure the RichTextBlockBuilder. @returns The builder instance for method chaining. */ addRichTextBlock(configure: (b: RichTextBlockBuilder) => void): this; /** Adds an ActionSet element. @param configure A callback to configure the ActionSetBuilder. @returns The builder instance for method chaining. */ addActionSet(configure: (b: ActionSetBuilder) => void): this; /** Adds a Media element. @param configure A callback to configure the MediaBuilder. @returns The builder instance for method chaining. */ addMedia(configure: (b: MediaBuilder) => void): this; /** Adds an ImageSet element. @param configure A callback to configure the ImageSetBuilder. @returns The builder instance for method chaining. */ addImageSet(configure: (b: ImageSetBuilder) => void): this; /** Adds a Table element. @param configure A callback to configure the TableBuilder. @returns The builder instance for method chaining. */ addTable(configure: (b: TableBuilder) => void): this; /** Adds an Input.Text element. @param configure A callback to configure the InputTextBuilder. @returns The builder instance for method chaining. */ addInputText(configure: (b: InputTextBuilder) => void): this; /** Adds an Input.Number element. @param configure A callback to configure the InputNumberBuilder. @returns The builder instance for method chaining. */ addInputNumber(configure: (b: InputNumberBuilder) => void): this; /** Adds an Input.Date element. @param configure A callback to configure the InputDateBuilder. @returns The builder instance for method chaining. */ addInputDate(configure: (b: InputDateBuilder) => void): this; /** Adds an Input.Time element. @param configure A callback to configure the InputTimeBuilder. @returns The builder instance for method chaining. */ addInputTime(configure: (b: InputTimeBuilder) => void): this; /** Adds an Input.Toggle element. @param configure A callback to configure the InputToggleBuilder. @returns The builder instance for method chaining. */ addInputToggle(configure: (b: InputToggleBuilder) => void): this; /** Adds an Input.ChoiceSet element. @param configure A callback to configure the InputChoiceSetBuilder. @returns The builder instance for method chaining. */ addInputChoiceSet(configure: (b: InputChoiceSetBuilder) => void): this; /** Add a pre-built element directly to the card body. */ addElement(element: AdaptiveElement): this; /** Adds an action to the card's action bar. @param configure A callback to configure the ActionBuilder. @returns The builder instance for method chaining. */ addAction(configure: (b: ActionBuilder) => void): this; /** Configures the automatic refresh settings. @param configure A callback to configure the RefreshBuilder. @returns The builder instance for method chaining. */ withRefresh(configure: (b: RefreshBuilder) => void): this; /** Configures authentication for the card. @param configure A callback to configure the AuthenticationBuilder. @returns The builder instance for method chaining. */ withAuthentication(configure: (b: AuthenticationBuilder) => void): this; /** Configures Microsoft Teams–specific card properties (width, mentions, etc.). @param configure A callback to configure the TeamsCardPropertiesBuilder. @returns The builder instance for method chaining. @throws Error if withTeamsCardRaw was already called. */ withTeamsCard(configure: (b: TeamsCardPropertiesBuilder) => void): this; /** Sets the Teams msteams card property from a raw object (escape hatch). @param value The raw TeamsCardProperties object. @returns The builder instance for method chaining. @throws Error if withTeamsCard was already called. */ withTeamsCardRaw(value: Record): this; /** Builds and returns the configured AdaptiveCard. @returns The configured AdaptiveCard instance. */ build(): AdaptiveCard; private pushBody; } //# sourceMappingURL=AdaptiveCardBuilder.d.ts.map