export default function loadScript(src: string, callback?: (e?: Error) => void): Promise;