import type { TextRun } from '../models.js'; import { FontType, TextColor, TextSize, TextWeight } from '../enums.js'; import { ActionBuilder } from './ActionBuilder.js'; /** Fluent builder for {@link TextRun} inline elements. */ export declare class TextRunBuilder { private readonly run; /** Sets the text content. @param text The text content. @returns The builder instance for method chaining. */ withText(text: string): this; /** Sets the font size. @param size The text size. @returns The builder instance for method chaining. */ withSize(size: TextSize): this; /** Sets the font weight. @param weight The text weight. @returns The builder instance for method chaining. */ withWeight(weight: TextWeight): this; /** Sets the text color. @param color The text color. @returns The builder instance for method chaining. */ withColor(color: TextColor): this; /** Sets the font type. @param fontType The font type. @returns The builder instance for method chaining. */ withFontType(fontType: FontType): this; /** Sets whether the text is displayed with subtle styling. @param subtle True for subtle styling. @returns The builder instance for method chaining. */ withIsSubtle(subtle?: boolean): this; /** Sets whether the text is italicized. @param italic True to italicize. @returns The builder instance for method chaining. */ isItalic(italic?: boolean): this; /** Sets whether the text is struck through. @param strikethrough True to apply strikethrough. @returns The builder instance for method chaining. */ isStrikethrough(strikethrough?: boolean): this; /** Sets whether the text is underlined. @param underline True to underline. @returns The builder instance for method chaining. */ isUnderline(underline?: boolean): this; /** Sets whether the text is highlighted. @param highlight True to highlight. @returns The builder instance for method chaining. */ isHighlight(highlight?: boolean): this; /** Sets the action to invoke when the text run is selected. @param configure A callback to configure the ActionBuilder. @returns The builder instance for method chaining. */ withSelectAction(configure: (b: ActionBuilder) => void): this; /** Builds and returns the configured TextRun. @returns The configured TextRun instance. */ build(): TextRun; } //# sourceMappingURL=TextRunBuilder.d.ts.map