import { UIRectangle } from "./UIRectangle";
import { UIView, UIViewBroadcastEvent } from "./UIView";
export declare class UIImageView extends UIView {
    _sourceKey?: string;
    _defaultSource?: string;
    _fillMode: any;
    _hiddenWhenEmpty: boolean;
    constructor(elementID?: string, viewHTMLElement?: null);
    static fillMode: {
        stretchToFill: string;
        aspectFit: string;
        aspectFill: string;
        center: string;
        aspectFitIfLarger: string;
    };
    get viewHTMLElement(): HTMLImageElement;
    static objectURLFromDataURL(dataURL: string): string;
    static dataURL(url: string | URL, callback: (arg0: string | ArrayBuffer | null) => void): void;
    static dataURLWithMaxSize(URLString: string, maxSize: number, completion: (resultURLString: string) => void): void;
    static dataURLWithSizes(URLString: string, height: number, width: number, completion: (resultURLString: string) => void): void;
    getDataURL(height?: number, width?: number): string;
    get imageSource(): string;
    set imageSource(sourceString: string);
    setImageSource(key: string, defaultString: string): void;
    didReceiveBroadcastEvent(event: UIViewBroadcastEvent): void;
    willMoveToSuperview(superview: UIView): void;
    _setImageSourceFromKeyIfPossible(): void;
    get fillMode(): any;
    set fillMode(fillMode: any);
    get hiddenWhenEmpty(): boolean;
    set hiddenWhenEmpty(hiddenWhenEmpty: boolean);
    didMoveToSuperview(superview: UIView): void;
    layoutSubviews(): void;
    intrinsicContentSize(): UIRectangle;
    intrinsicContentSizeWithConstraints(constrainingHeight?: number, constrainingWidth?: number): UIRectangle;
}
