export declare class Json { private static absCall; /** * @static * @param {string} url - full path to POST to * @param {object} body - JSON object to post * @param {boolean} sendCookies - Whether or not to send the XMLHttpRequest with credentials or not * @param {number} [timeout] - optional timeout in milliseconds * @return {Promise} - if the server responds the response will be returned here */ static post(url: string, body: object, sendCookies?: boolean, timeout?: number): Promise; /** * @static * @param {string} url - full path to the json * @param {boolean} sendCookies - Whether or not to send the XMLHttpRequest with credentials or not * @param {number} [timeout] - optional timeout in milliseconds * @return {Promise} - resolves with parsed JSON */ static fetch(url: string, sendCookies?: boolean, timeout?: number): Promise; }