/** * Aborts (client side) the XHR corresponding to the given ID if it still exists. * * This will throw an error if the loader can't be found. * * @method abort * @global * @memberof bbn.fn * * @example * ```javascript * bbn.fn.post('my/script', {a: 1, b: 2}); * let requestId = bbn.fn.getRequestId('my/script', {a: 1, b: 2}); * if (requestId) { * bbn.fn.abort(requestId); * } * ``` * * @param {String} requestId An ID generated by getRequestId * * @returns {undefined} */ export default function abort(requestId: any): void;