import * as Discord from 'discord.js'; /** * A class for creating a text display component */ export declare class V2TextDisplay { private id?; private content; private readonly type; /** * Create a new text display component * @param content - The text content to display */ constructor(content: Discord.Snowflake); /** * Set the ID of the text display * @param id - The numeric ID * @returns The text display instance */ setId(id: number): this; /** * Set the content of the text display * @param content - The text content to display (supports markdown) * @returns The text display instance */ setContent(content: Discord.Snowflake): this; /** * Convert the text display to a JSON object * @returns The JSON representation of the text display */ toJSON(): Discord.APITextDisplayComponent; } /** * Helper function to create a text display component * @param content - The text content to display (supports markdown) * @param id - Optional numeric ID for the component * @returns A TextDisplayBuilder instance ready to use in sections * * @example * ```typescript * // Simple text * const text = makeTextDisplay("Hello World"); * * // With markdown * const title = makeTextDisplay("**Bold Title**"); * * // With ID * const text = makeTextDisplay("Content", 123); * ``` */ export declare function makeTextDisplay(content: Discord.Snowflake, id?: number): Discord.TextDisplayBuilder;