type StringMap = Record; export declare const findScript: (url: string, attributes?: StringMap) => HTMLScriptElement | null; export declare const removeScript: (url: string) => void; export interface ScriptElement { url: string; attributes?: StringMap; onSuccess: () => void; onError: () => void; } export declare const insertScriptElement: ({ url, attributes, onSuccess, onError }: ScriptElement) => void; export declare const getDefaultPromiseImplementation: () => PromiseConstructor; export declare const validateArguments: (options: unknown, PromisePonyfill?: unknown) => void; export declare const objectToQueryString: (params: StringMap) => string; export interface AttachScriptListenersI { script: HTMLScriptElement; onSuccess: () => void; onError: () => void; } export declare const attachScriptListeners: ({ script, onSuccess, onError }: AttachScriptListenersI) => void; export {};