// Shared types and interfaces for http and image-source modules.
// Only put platform-agnostic types/interfaces here.
// Circular dependency resolution handling (http <--> image-source)
let _getImage;
export function getImageRequest(arg) {
    if (_getImage) {
        return _getImage(arg);
    }
    return Promise.reject(new Error('No getImage request handler set.'));
}
export function setGetImageRequest(fn) {
    _getImage = fn;
}
//# sourceMappingURL=http-shared.js.map