import type { MediaType as EsriApiMediaType } from "../support/esri.js";
import type { Value } from "./Value.js";
/**
 * The type of the media used with {@link MediaInfo.type}.
 *
 * @deprecated Use "json/*" modules instead.
 */
export type MediaType = "image" | "barchart" | "columnchart" | "linechart" | "piechart";
export declare namespace MediaType {
    /**
     * Converts from media type constants used in the Esri JavaScript API to
     * their Portal equivalents.
     *
     * @deprecated Use "json/*" modules instead.
     * @param type The ArcGIS JavaScript API media type.
     */
    function fromEsriApiMediaType(type: string): MediaType;
    /**
     * Converts from Portal media type constants to their Esri JavaScript API
     * equivalents.
     *
     * @deprecated Use "json/*" modules instead.
     * @param type The Portal JSON media type.
     */
    function toEsriApiMediaType(type: string): EsriApiMediaType;
}
/**
 * Defines an image or a chart to be displayed in a pop-up window. See
 * https://developers.arcgis.com/web-map-specification/objects/mediaInfo/ and
 * https://developers.arcgis.com/web-scene-specification/objects/mediaInfo/.
 *
 * @deprecated Use "json/*" modules instead.
 */
export interface MediaInfo {
    /**
     * A string providing the alternate text for the media.
     */
    altText?: string;
    /**
     * A caption describing the media. This can contain a field name enclosed in
     * `{}`, such as `{IMAGE_CAPTION}`.
     */
    caption?: string;
    /**
     * Refresh interval of the layer in minutes. Non-zero value indicates
     * automatic layer refresh at the specified interval. Value of 0 indicates
     * auto refresh is not enabled. If the property does not exist, it's
     * equivalent to having a value of 0. Only applicable when type is set to
     * image.
     */
    refreshInterval?: number;
    /**
     * A title for the media. This can contain a field name enclosed in `{}`,
     * such as `{IMAGE_TITLE}`.
     */
    title?: string;
    /**
     * Defines the type of media. One of the {@link MediaType} constants.
     */
    type?: string;
    /**
     * Contains information about how the image should be retrieved or how the
     * chart should be constructed.
     */
    value?: Value;
}
