import { AxiosRequestConfig, Method } from "axios";
declare class RestClient {
private key;
private secret;
private baseURL;
constructor(options: {
key: string;
secret: string;
baseURL?: string;
});
/**
* Calls api from the razorpay for given service
* @example
"/fund_accounts/validations", "POST", {id: "account_id"}
* @param {service} url - url of the service
* @param {method} method - method (GET, UPDATE, DELETE, POST, PATCH)
* @param {object} params - params to be send in the API (Optional)
* @param {AxiosRequestConfig} options - axios config object (Optional)
*/
load(url: string, method?: Method, params?: AxiosRequestConfig["data"] | AxiosRequestConfig["params"], options?: AxiosRequestConfig): Promise;
}
export default RestClient;