import { API, BaseResponse } from './types'; export type RequestHeaders = Record; export type RequestMethod = 'get' | 'post' | 'put' | 'delete'; export default class { private overrideSession?; private method; private config; private actionUrl; private servicePath; private emmiter; private store; private log; constructor(actionUrl: string, instance: API, overrideSession?: string); private buildUrl; private buildHeaders; private sendRequest; execute(body?: { [key: string]: any; }, timeout?: number): Promise | undefined>; withService(servicePath: string): this; withMethod(method: RequestMethod): this; }