import { CommonContentClientConfig } from '../config/CommonContentClientConfig'; import { ImageMeta, VideoMeta } from './MediaMeta'; /** * @hidden * Base class for image or video resources. */ export declare abstract class Media { protected config: CommonContentClientConfig; /** * Metadata about the Media object */ _meta: ImageMeta | VideoMeta; /** * Default host name to use when constructing a URL to the resource. * Your application may override this value with a branded host name in the SDK configuration. */ defaultHost: string; /** * Name of the account to use when constructing a URL to the resource. */ endpoint: string; /** * Name of the media object to use when constructing a URL to the resource. */ name: string; /** * ID of the media object */ id: string; /** * Mime type of the media object */ mimeType: string | undefined; constructor(data: any, config: CommonContentClientConfig); /** * Returns the hostname that should be used to load this media resource. * The hostname will use the staging and media host overrides if specified * otherwise it will use the defaultHost provided by the delivery API. * @param secure */ getHost(secure: boolean): string; /** * Export media object to JSON */ toJSON(): any; }