declare class RestfulRequest { readonly baseUrl: string; readonly timeout: number; readonly headers: Record; constructor(baseUrl: string, headers?: Record, timeout?: number); private static handleResponse; get(path: string, params?: Record, headers?: Record, timeout?: number): Promise; post(path: string, data?: Record | string, json?: boolean, headers?: Record, timeout?: number): Promise; private buildUrl; private assembleHeaders; } export { RestfulRequest };