import Connection from '../connection'; import { HttpRequest, HttpMethods, Schema } from '../types'; /** * API class for Apex REST endpoint call */ export declare class Apex { _conn: Connection; /** * */ constructor(conn: Connection); _baseUrl(): string; /** * @private */ _createRequestParams(method: HttpMethods, path: string, body?: Object, options?: { headers?: HttpRequest['headers']; }): HttpRequest; /** * Call Apex REST service in GET request */ get(path: string, options?: Object): import("../types").StreamPromise; /** * Call Apex REST service in POST request */ post(path: string, body?: Object, options?: Object): import("../types").StreamPromise; /** * Call Apex REST service in PUT request */ put(path: string, body?: Object, options?: Object): import("../types").StreamPromise; /** * Call Apex REST service in PATCH request */ patch(path: string, body?: Object, options?: Object): import("../types").StreamPromise; /** * Call Apex REST service in DELETE request */ delete(path: string, options?: Object): import("../types").StreamPromise; /** * Synonym of Apex#delete() */ del: (path: string, options?: Object) => import("../types").StreamPromise; } export default Apex;