import { BaseComponent, type BaseComponentData, type CanSpoiler, type HasDescription, type HasUrl } from './base.js'; import { ComponentType, type APIThumbnailComponent } from 'discord-api-types/v10'; interface ThumbnailData extends BaseComponentData { url: string; description?: string; spoiler?: boolean; } declare class ThumbnailComponent extends BaseComponent implements CanSpoiler, HasDescription, HasUrl { constructor(data: ThumbnailData); get Type(): ComponentType.Thumbnail; /** * The url of the thumbnail */ get Url(): string; get Description(): string | undefined; get IsSpoiler(): boolean | undefined; /** * Sets the thumbnail URL. * * The value can be either: * - A url to image resource * - An attachment URL in the format `attachment://` * * @example * thumbnailComponent.file('attachment://my_image.png') * * @param url The url of the thumbnail. */ url(url: string): this; description(description: string): this; spoiler(spoiler?: boolean): this; clone(): this; toJSON(): APIThumbnailComponent; } /** * Create a ThumbnailComponent * The value can be either: * - A url to image resource * - An attachment URL in the format `attachment://` * * @example * thumbnailComponent.file('attachment://my_image.png') * * @param url The url of the thumbnail. */ export declare function thumbnail(url: string): ThumbnailComponent; export type { ThumbnailComponent }; //# sourceMappingURL=thumbnail.d.ts.map