UNPKG

fnbr

Version:

A library to interact with Epic Games' Fortnite HTTP and XMPP services

37 lines (36 loc) 771 B
import Base from '../Base'; import type Client from '../Client'; import type { ImageData } from '../../resources/structs'; /** * Represents an image */ declare class Image extends Base { /** * The image's url */ url: string; /** * The image's width */ width?: number; /** * The image's height */ height?: number; /** * The image's file extension (usually 'png' or 'jpeg' / 'jpg') */ fileExtension: string; /** * @param client The main client * @param data The image's data */ constructor(client: Client, data: ImageData); /** * Downloads the image * @throws {AxiosError} */ download(): Promise<Buffer>; toString(): string; } export default Image;