UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

20 lines (19 loc) 703 B
import type { ESLImage } from './esl-image'; export declare const EMPTY_IMAGE = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="; export declare const isEmptyImage: (src: string) => boolean; /** * Describe mods configurations */ export interface ESLImageRenderStrategy { /** Apply image from shadow loader */ apply: (img: ESLImage, shadowImg: HTMLImageElement) => void; /** Clean strategy specific changes from ESLImage */ clear: (img: ESLImage) => void; } /** * Describes object that contains strategies mapping */ export interface ESLImageStrategyMap { [mode: string]: ESLImageRenderStrategy; } export declare const STRATEGIES: ESLImageStrategyMap;