import type { AppBskyEmbedDefs } from "@atcute/bluesky"; /** * Data used to construct an EmbedImage class. * @see EmbedImage */ export interface ImageData { cid: string; alt?: string; mimeType: string; size?: number | undefined; aspectRatio?: AppBskyEmbedDefs.AspectRatio | undefined; /** The URL of the image's thumbnail. */ thumb?: string | undefined; /** The URL of the full-size image. */ fullsize?: string | undefined; } /** * Represents an image embedded in a post. */ export declare class EmbedImage { /** The image's CID. */ cid: string; /** The image's alt text. */ alt: string; /** The image's MIME type. */ mimeType: string; /** Image size in bytes. */ size?: number; /** The image's aspect ratio. */ aspectRatio?: AppBskyEmbedDefs.AspectRatio; /** The URL of the image's thumbnail located at the Bluesky CDN. */ private _thumbUrl?; /** The URL of the full-size image located at the Bluesky CDN. */ private _fullsizeUrl?; /** * @param data The image data. */ constructor({ cid, alt, mimeType, size, aspectRatio, thumb, fullsize }: ImageData); /** * Get the URL of the image's thumbnail. */ get thumbnailUrl(): string | undefined; /** * Get the URL of the full-size image. */ get url(): string | undefined; }