export = DispatchRequest; /** * @file Dispatch Request * @license Apache Version 2 * @description Functions for dispatching API requests via the axios library. * @param {string} url API endpoint URL * @param {string} action API action * @param {object} payload data to be transmitted to endpoint * @param {typedef.CredentialObj} local_auth the local authorization object * @param {typedef.CredentialObj} remote_auth the remote authoriuzation object * @param {object} customHeaders all the custom header to add to your call * @param {boolean} [getDataVersion] If true the function will return object having result * and dataVersion. * @param {boolean} [compress] If true, compress the data with gzip if its size is bigger than 1024 */ declare function DispatchRequest(url: string, action: string, payload: object, local_auth: typedef.CredentialObj, remote_auth?: typedef.CredentialObj, customHeaders?: object, getDataVersion?: boolean, compress?: boolean): Promise; import typedef = require("./typedef");