/**
* @typedef {Object} SimpleRequestOptions
* @public
* @property {object} headers - Object of request headers.
* @property {object} query - Object of request query.
* */
/**
* Options provided to the Salesforce HTTP request
* @typedef {Object} FullRequestOptions
* @public
* @property {string} [method=GET] - HTTP method to use.
* @property {object} headers - Object of request headers.
* @property {object} query - Object request query.
* @property {object} body - Object request body.
*/
/**
* Send a request to salesforce server configured in `state.configuration`.
* @public
* @example
Make a POST request to a custom Salesforce flow
* http.request("/actions/custom/flow/POC_OpenFN_Test_Flow", {
* method: "POST",
* body: { inputs: [{}] },
* });
* @function
* @param {string} path - The Salesforce API endpoint.
* @param {FullRequestOptions} [options] - Configure headers, query and body parameters for the request.
* @state {SalesforceState}
* @returns {Operation}
*/
export function request(path: string, request: any): Operation;
/**
* Send a GET request on salesforce server configured in `state.configuration`.
* @public
* @example Make a GET request to a custom Salesforce flow
* http.get('/actions/custom/flow/POC_OpenFN_Test_Flow');
* @example Make a GET request to a custom Salesforce flow with query parameters
* http.get('/actions/custom/flow/POC_OpenFN_Test_Flow', { query: { Status: 'Active' } });
* @example Make a GET request then map the response
* http.get("/jobs/query/v1/jobs/001XXXXXXXXXXXXXXX/results").then((state) => {
* state.mapping = state.data.map((d) => ({ name: d.name, id: d.extId }));
* return state;
* });
* @function
* @param {string} path - The Salesforce API endpoint.
* @param {SimpleRequestOptions} [options] - Configure headers and query parameters for the request.
* @state {SalesforceState}
* @returns {Operation}
*/
export function get(path: string, options?: SimpleRequestOptions): Operation;
/**
* Send a POST request to salesforce server configured in `state.configuration`.
* @public
* @example POST request to Salesforce
* http.post("/jobs/query", {
* operation: "query",
* query: "SELECT Id, Name FROM Account LIMIT 1000",
* });
* @function
* @param {string} path - The Salesforce API endpoint.
* @param {object} body - A JSON Object request body.
* @param {SimpleRequestOptions} [options] - Configure headers and query parameters for the request.
* @state {SalesforceState}
* @returns {Operation}
*/
export function post(path: string, body: object, options?: SimpleRequestOptions): Operation;
export type SimpleRequestOptions = any;
/**
* Options provided to the Salesforce HTTP request
*/
export type FullRequestOptions = any;