import { BaseComponent, type BaseComponentData } from './base.js'; import type { FlattenableArray } from '../utils/normalize.js'; import type { APITextDisplayComponent } from 'discord-api-types/v10'; import { ComponentType } from 'discord-api-types/v9'; interface RichTextFormat { format: number; language?: string; level?: number; link?: string; orderedItem?: number; unorderedItem?: number; } type TextNodeResolveable = string | number | boolean | TextDisplayComponent; interface RichTextStorage { content?: string; children?: TextDisplayComponent[]; } declare class TextDisplayComponent extends BaseComponent { private storage; private formatting; private marked; constructor(storage?: RichTextStorage, formatting?: RichTextFormat); get Type(): ComponentType.TextDisplay; /** * The formatted content of the text display */ get Content(): string; /** * Replaces the content of the text display * @param parts The new content of the text display */ content(...parts: FlattenableArray): this; /** * Marks the content as bold */ bold(): this; /** * Marks the content as italic */ italic(): this; /** * Marks the content as underline */ underline(): this; /** * Marks the content as strike-through */ strikeThrough(): this; /** * Marks the content as an inline block */ inlineBlock(): this; /** * Marks the content as a codeblock */ codeblock(language?: string): this; /** * Marks the content as a smaller */ small(): this; /** * Marks the content as a heading * * level: `1` = biggest, `2` = middle, `3` = smallest * * @param level The level of heading */ heading(level?: 1 | 2 | 3): this; /** * Marks the content as spoiler */ spoiler(): this; /** * Marks the content as quoted */ quote(): this; /** * Marks the content as a block quote */ blockQuote(): this; /** * Marks the content as a ordered list item * @param depth the indent level of the list item */ ordered(depth?: number): this; /** * Marks the content as a unordered list item * @param depth the indent level of the list item */ unordered(depth?: number): this; /** * Marks the content to be placeholder for a link * @param the link to mask */ link(link: string): this; clone(): this; toContentString(): string; toJSON(): APITextDisplayComponent; } /** * Create a TextDisplayComponent * @param parts The content of the text display */ export declare function text(...parts: FlattenableArray): TextDisplayComponent; export type { TextDisplayComponent }; //# sourceMappingURL=textDisplay.d.ts.map