/** * Wraps a promise in a timeout, allowing the promise to reject if not resolve with a specific period of time * @param {integer} ms - milliseconds to wait before rejecting promise if not resolved * @param {Promise} promise to monitor * @example * promiseTimeout(1000, fetch('https://courseof.life/johndoherty.json')) * .then(function(cvData){ * alert(cvData); * }) * .catch(function(){ * alert('request either failed or timed-out'); * }); * @returns {Promise} resolves as normal if not timed-out, otherwise rejects */ export declare function promiseTimeout(ms: number, promise: Promise): Promise;