import type { TextBlock, AdaptiveAction, AdaptiveElement } from '../models.js'; import { FontType, HorizontalAlignment, Spacing, TextBlockStyle, TextColor, TextSize, TextWeight } from '../enums.js'; /** Fluent builder for {@link TextBlock} elements. */ export declare class TextBlockBuilder { private readonly block; /** Sets the unique identifier. @param id The unique identifier. @returns The builder instance for method chaining. */ withId(id: string): this; /** Sets the text to display. @param text The text content. @returns The builder instance for method chaining. */ withText(text: string): this; /** Sets the size of the text. @param size The text size. @returns The builder instance for method chaining. */ withSize(size: TextSize): this; /** Sets the weight of the text. @param weight The text weight. @returns The builder instance for method chaining. */ withWeight(weight: TextWeight): this; /** Sets the color of the text. @param color The text color. @returns The builder instance for method chaining. */ withColor(color: TextColor): this; /** Sets whether the text displays with subtle styling. @param isSubtle True for subtle styling. @returns The builder instance for method chaining. */ withIsSubtle(isSubtle?: boolean): this; /** Sets whether the text should wrap. @param wrap True to allow text wrapping, false to clip. @returns The builder instance for method chaining. */ withWrap(wrap: boolean): this; /** Sets the maximum number of lines to display. @param maxLines The maximum number of lines. @returns The builder instance for method chaining. */ withMaxLines(maxLines: number): this; /** Sets the horizontal alignment of the text. @param alignment The horizontal alignment. @returns The builder instance for method chaining. */ withHorizontalAlignment(alignment: HorizontalAlignment): this; /** Sets the font type. @param fontType The font type. @returns The builder instance for method chaining. */ withFontType(fontType: FontType): this; /** Sets the style of the text block. @param style The text block style. @returns The builder instance for method chaining. */ withStyle(style: TextBlockStyle): this; /** Sets the action to invoke when the element is selected. @param action The select action. @returns The builder instance for method chaining. */ withSelectAction(action: AdaptiveAction): this; /** Sets the spacing above the element. @param spacing The spacing value. @returns The builder instance for method chaining. */ withSpacing(spacing: Spacing): this; /** Sets whether a separator line is displayed above the element. @param separator True to show a separator. @returns The builder instance for method chaining. */ withSeparator(separator: boolean): this; /** Sets whether the element is visible. @param isVisible True to show the element. @returns The builder instance for method chaining. */ withIsVisible(isVisible: boolean): this; /** Sets the height of the element. @param height The height ('auto' or 'stretch'). @returns The builder instance for method chaining. */ withHeight(height: string): this; /** Sets the fallback behavior when the element is unsupported. @param fallback The fallback value ('drop' or an element). @returns The builder instance for method chaining. */ withFallback(fallback: 'drop' | AdaptiveElement): this; /** Sets the feature requirements for the element. @param key The feature name. @param version The minimum required version. @returns The builder instance for method chaining. */ withRequires(key: string, version: string): this; /** Sets whether the text should be rendered right-to-left. @param rtl True for right-to-left rendering. @returns The builder instance for method chaining. */ withRtl(rtl: boolean): this; /** Builds and returns the configured TextBlock. @returns The configured TextBlock instance. */ build(): TextBlock; } //# sourceMappingURL=TextBlockBuilder.d.ts.map