/** @packageDocumentation * @module Common */ /** * Type of loaded image source: * * "svg" will render svg strings inline with the rest of the DOM * * "url" will render a simple img tag with __url__ as it's source * * "binary" expects a HEX string for the value and will render raw image * * "core-icon" will render an icon bundled with @bentley/ui-core * * "webfont-icon" will render web font icon from provided font-family. When no font-family given, defaults to "bentley-icons-generic-webfont". * @public */ export declare type ImageSourceType = "svg" | "url" | "binary" | "core-icon" | "webfont-icon"; /** Type of raw image format * @public */ export declare type ImageFileFormat = "png" | "jpg" | "jpge"; /** Image data for string based images * @public */ export interface LoadedImage { value: string; sourceType: ImageSourceType; } /** Image data for raw images * @public */ export interface LoadedBinaryImage extends LoadedImage { fileFormat: ImageFileFormat; } /** Image data returned by an [[IImageLoader]] * @public */ export declare type Image = LoadedImage | LoadedBinaryImage; /** Interface for an image loader. * @public */ export interface IImageLoader { /** Function that will load image data */ load: (item: any) => Image | undefined; } //# sourceMappingURL=IImageLoader.d.ts.map