import { Maybe, Either } from "../external/sanctuary/Sanctuary"; export declare const LOADER_TYPE_IMAGE = "image"; export declare enum LoaderImageType { URL = "url", } export interface LoaderImageRequest { url: string; __loaderType: string; } export interface LoaderImageResponse { img?: HTMLImageElement; errorEvt?: Event; __loaderType: string; } export declare type LoaderImageStatus = Maybe | Either; export declare type LoaderImageCallback = (resp: Either) => void; export declare class LoaderImage { private _status; __loaderType: string; constructor(_req: Partial, callbackAfterLoad?: LoaderImageCallback); readonly status: LoaderImageStatus; } export declare const loadImagePromise: (_req: Partial) => Promise>; export declare const loadImageFactory: (req: Partial, callback?: LoaderImageCallback) => LoaderImage; export declare const isLoaderImage: (arg: any) => arg is LoaderImage;