type ScriptAttributes = { [K in keyof T]?: T[K]; }; type AttributeObject = Pick; declare const importScript: (url: string, name: string, attributes?: AttributeObject) => void; export default importScript;