import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class ScriptService { private _document; constructor(_document: any); private scriptsLoaders; private _loadScript; /** * Injects script from given url to target place in DOM * This method loads script from same url once. * * @param url Url of the external script to be loaded * @param attributes Attribute list to be added to the script element * @param targetEl Target element for the placing script tag. It can be a selector or a element reference */ loadScript(url: string, attributes?: { [s: string]: string; }, targetEl?: HTMLElement | string): Observable; /** * Injects script from given url to target place in DOM * If you call this method for same url multiple times, it will inject same code to document multiple times. * * @param url Url of the external script to be loaded * @param attributes Attribute list to be added to the script element * @param targetEl Target element for the placing script tag. It can be a selector or a element reference */ runScript(url: string, attributes?: { [s: string]: string; }, targetEl?: HTMLElement | string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }