import "es6-promise/auto"; import "unfetch/polyfill"; /** * Main loader class. * * @export * @class Loader */ export declare class Loader { /** * Run the loader. * * Loads polyfill if needed and bundle. * * @param {boolean} [autorun=false] * @return {Promise} * @memberof Loader */ run(autorun?: boolean): Promise; /** * Script loading. * * @private * @param {string} cacheKey LocalStorage key to save script in. * @param {string} scriptUrl Script's URL. * @param {string} versionUrl Version's URL. * @memberof Loader */ private load; /** * Update script using url; * * @private * @param {string} scriptUrl Script's url. * @param {string} cacheKey Local Storage key to store the script in. * @param {number} version Script version. * @memberof Loader */ private updateScript; /** * Append script to document body. * * @private * @param {string} scriptAsText Script as text. * @param {string} name Goes in data-biggy-script attribute. * @memberof Loader */ private appendScript; }