/** * Caches and provides any load results, Loaded either by name from CDN or directly by URL. */ export declare class CDNLoader { /** * Internal response cache */ private responseCache; /** * CDN prefix to prepend to src */ private cdnPrefix; /** * @returns {boolean} clarify whether the prefix has been resolved or not. */ get isPrefixResolved(): boolean; /** * @returns {boolean} clarify whether the prefix is pending or not. */ get isPrefixPending(): boolean; /** * @returns promise, which will be resolved with CDN prefix, once set. */ getCdnPrefix(): Promise; /** * Sets CDN prefix to load source. * Resolves deferred promise with the provided CDN prefix. * If the prefix is falsy, reject instead. * @param prefix - CDN prefix. * @returns {void} */ setCdnPrefix(prefix: string): void; /** * Asynchronously tries to load * @param href The location of the SVG to load * @returns Promise of the SVG body */ private loadContent; /** * Tries to load an src either by src or by provided URL * @param src name or Source location. * @returns Promise which will be resolved with response body */ load(src: string): Promise; }