import { DynamicContentService } from '../dynamic-content/index';
import * as i0 from "@angular/core";
/**
 * Interface to describe a style to lazy load from a url.
 */
export interface StyleURL {
    /** url to file */
    href: string;
    /** id of the HTML element */
    id?: string;
    /** html integrity attribute to verify fetched resources */
    integrity?: string;
    /** html crossOrigin attribute for CORS support. */
    crossOrigin?: 'anonymous' | 'use-credentials' | '';
}
/**
 * Service to lazy load a CSS file
 */
export declare class StyleLazyLoader {
    private readonly dcService;
    private readonly DEFAULT_STYLE_ELEMENT_ID;
    constructor(dcService: DynamicContentService);
    /**
     * Load a new CSS from an absolute URL, if we already HTML element exists with the url, otherwise
     * @param styleUrlConfig object containing CSS File absolute URL to load, integrity and crossOrigin attributes
     * and the styleId id of the dynamic style in the body tag.
     */
    loadStyleFromURL(styleUrlConfig: StyleURL): HTMLLinkElement;
    /**
     * Load a new CSS File
     * @param styleUrlConfig CSS File config containing URL to load, integrity and crossOrigin attributes
     * and the styleId id of the dynamic style in the body tag
     */
    asyncLoadStyleFromDynamicContent(styleUrlConfig: StyleURL): Promise<void>;
    static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoader, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<StyleLazyLoader>;
}
//# sourceMappingURL=style-lazy-loader.service.d.ts.map