import * as Discord from 'discord.js'; /** * A class for creating a thumbnail component */ export declare class V2Thumbnail { private id?; private media; private description?; private spoiler?; private readonly type; /** * Create a new thumbnail component * @param media - The media item to display */ constructor(media: Discord.APIUnfurledMediaItem); /** * Set the ID of the thumbnail * @param id - The numeric ID * @returns The thumbnail instance */ setId(id: number): this; /** * Set the description of the thumbnail * @param description - The text description * @returns The thumbnail instance */ setDescription(description: string): this; /** * Set whether the thumbnail should be marked as a spoiler * @param spoiler - Whether to mark as spoiler * @returns The thumbnail instance */ setSpoiler(spoiler: boolean): this; /** * Set the media for the thumbnail * @param media - The media item to display * @returns The thumbnail instance */ setThumbnail(media: Discord.APIUnfurledMediaItem): this; /** * Convert the thumbnail to a JSON object * @returns The JSON representation of the thumbnail */ toJSON(): Discord.APIThumbnailComponent; } /** * Helper function to create a thumbnail component * @param url - The URL of the image to display * @param options - Optional configuration for the thumbnail * @returns A thumbnail component ready to use in sections * * @example * ```typescript * // Simple thumbnail * const thumb = makeThumbnail("https://example.com/image.png"); * * // With description and spoiler * const thumb = makeThumbnail("https://example.com/image.png", { * description: "Cool image", * spoiler: true, * id: 123 * }); * * // Use in a section * const section = makeSection( * ["Title", "Description"], * makeThumbnail("https://example.com/image.png") * ); * ``` */ export declare function makeThumbnail(url: Discord.Snowflake, options?: { description?: Discord.Snowflake; spoiler?: boolean; id?: number; width?: number; height?: number; }): V2Thumbnail;