UNPKG

shirosaki-napcatsdk

Version:

全新的,省心的,NapCatQQ SDK

19 lines (18 loc) 581 B
import { type anyobject } from "@ceale/util"; import { MessageSegment } from "../MessageSegment"; export declare class Image extends MessageSegment { urlOrData: string | Buffer; summary?: string | undefined; constructor(urlOrData: string | Buffer, summary?: string | undefined); static fromJSON(json: anyobject): Image; toJSON(): { type: string; data: { file: string; summary: string | undefined; }; }; getData(): Promise<Buffer<ArrayBufferLike>>; clone(): Image; equals(other: Image): boolean; }