export declare function loadScript(url: string, attr?: { [key: string]: string; }): Promise;