import { EventEmitter } from '../../stencil-public-runtime';
import { CrossoriginType, DecodingType, ReferrerpolicyType } from './meta/types';
import { LoadingType } from "../../type/loading";
import { MdsImgEventDetail } from './meta/event-detail';
/**
* @part media - The native `
` that shows the picture
* @category content
*/
export declare class MdsImg {
private host;
imageConsumptionLoaded: boolean;
imageError: boolean;
private storedConsumption;
/**
* The consumption the page applies, the one mds-pref-consumption publishes, read in render so
* the image follows a change; the stored choice stands in on a page without the controller. It
* used to be read once, on load, from the storage only (#826).
*/
private get consumptionMode();
private image;
private srcsetConsumptionData?;
private t;
/**
* Specifies an alternate text for an image. An empty `alt` marks the image as decorative, left
* out by assistive technologies; without `alt` the image is named after its file
*/
alt: string;
/**
* Fetches the image with CORS, as the `crossorigin` attribute of `
`: a third-party image
* can then be used with canvas, if its site allows it. Unset, the image is fetched without CORS
*/
readonly crossorigin?: CrossoriginType;
/**
* How the browser decodes the picture, as the `decoding` attribute of `
`: `async` apart
* from the rest of the page, which then shows without waiting for it, as a large picture lower
* on the page can; `sync` with it; `auto` as the browser chooses. Unset, the browser chooses
*/
readonly decoding?: DecodingType;
/**
* The height of the picture, in pixels, as the `height` attribute of `
`. With `width`, its
* ratio gives the host its box before the component hydrates, as a native `
` reserves its
* room before the picture loads (hydrated.css, where the browser supports typed `attr()`)
*/
readonly height?: string;
/**
* Specifies whether a browser should load an image immediately
* or to defer loading of images until some conditions are met.
*/
readonly loading?: LoadingType;
/**
* Specifies which referrer information to use when fetching an image, as the `referrerpolicy`
* attribute of `
`. Unset, the policy of the page applies
*/
readonly referrerpolicy?: ReferrerpolicyType;
/**
* One or more strings separated by commas, indicating a set of source sizes.
* https://medium.com/@MRWwebDesign/responsive-images-the-sizes-attribute-and-unexpected-image-sizes-882a2eadb6db
* @example '(max-width: 600px) 480px, 960px'
*/
readonly sizes?: string;
/**
* Specifies the path to the image
*/
readonly src?: string;
/**
* Specifies a list of image files to use in different situations.
* Defines multiple sizes of the same image, allowing the browser
* to select the appropriate image source.
* @example 'photo-480.jpg 480w, photo-960.jpg 960w'
*/
readonly srcset?: string;
/**
* Specifies a list of image files to use in different situations: comma-separated, each file
* followed by the consumption level it is for (`low`, `medium`, `high`), so the component picks
* the image source that matches the consumption configuration.
* @example 'photo-bw-1x.jpg low, photo-1x.jpg medium, photo-2x.jpg high'
*/
readonly srcsetConsumption?: string;
/**
* The width of the picture, in pixels, as the `width` attribute of `
`. With `height`, its
* ratio gives the host its box before the component hydrates
*/
readonly width?: string;
/**
* Emits when the image is not loaded
*/
loadErrorEvent: EventEmitter;
/**
* Emits when the image is successfully loaded
*/
loadSuccessEvent: EventEmitter;
srcsetConsumptionHandler(newValue?: string | null): void;
srcHandler(): void;
private onSuccess;
private onError;
private formatConsumptionData;
private autoAltName;
private readonly handleConsumptionLoadClick;
componentWillLoad(): void;
private hostRole;
private renderMedia;
render(): any;
}