import { APIAttachment } from "../api"; import { Client } from "../Client"; import { BaseObject } from "./BaseObject"; export type AttachmentArgs = [ options?: { max_side?: number; size?: number; width?: number; height?: number; }, allowAnimation?: boolean, fallback?: string ]; export type AttachmentBucket = "attachments" | "avatars" | "backgrounds" | "banners" | "emojis" | "icons"; export declare class Attachment extends BaseObject { constructor(client: Client, data: APIAttachment); /** Original file name. */ get name(): string; /** MIME type of this file. */ get contentType(): string; /** File size in bytes. */ get size(): number; /** Parsed file metadata. */ get metadata(): { type: "File"; } | { type: "Text"; } | { type: "Image"; width: number; height: number; } | { type: "Video"; width: number; height: number; } | { type: "Audio"; }; /** Bucket this attachment was uploaded to. */ get bucket(): AttachmentBucket; /** Generate a URL to this attachment with optional parameters. */ generateURL(...args: AttachmentArgs): string; /** Generate a link to download this attachment. */ generateDownloadURL(): string; }