import { Resource } from './resource'; import type { Link } from './links'; import type { UrlString } from '../types'; /** * LeafResource represents any {@link Resource} without links (e.g. fonts, images, videos). * * It basically contains a Blob and a URL, and does nothing special. * * @category Resources */ export declare class LeafResource extends Resource { private _blob; private _url; constructor(blob: Blob, url: UrlString); get url(): UrlString; get blob(): Blob; /** * An empty list. A leaf resource has zero links by definition. */ get links(): Link[] & []; static fromBlob({ blob, url }: { blob: Blob; url: UrlString; }): Promise; }