import { Platform } from "../../platform/web/Platform.js"; import { BlobHandle } from "../../platform/web/dom/BlobHandle.js"; import type { Attachment, EncryptedFile } from "./types/response"; export declare class MediaRepository { private readonly _homeserver; private readonly _platform; constructor({ homeserver, platform }: { homeserver: string; platform: Platform; }); mxcUrlThumbnail(url: string, width: number, height: number, method: "crop" | "scale"): string | undefined; mxcUrl(url: string): string | undefined; private _parseMxcUrl; downloadEncryptedFile(fileEntry: EncryptedFile, cache?: boolean): Promise; downloadPlaintextFile(mxcUrl: string, mimetype: string, cache?: boolean): Promise; downloadAttachment(content: Attachment, cache?: boolean): Promise; }