import { Connection, Callback, RestApiOptions } from '../connection'; export class Apex { constructor(conn: Connection); get(path: string, options: RestApiOptions, callback?: Callback): Promise; get(path: string, callback?: Callback): Promise; post(path: string, body: object, options: RestApiOptions, callback?: Callback): Promise; post(path: string, body: object, callback?: Callback): Promise; post(path: string, callback?: Callback): Promise; put(path: string, body: object, options: RestApiOptions, callback?: Callback): Promise; put(path: string, body: object, callback?: Callback): Promise; put(path: string, callback?: Callback): Promise; patch(path: string, body: object, options: RestApiOptions, callback?: Callback): Promise; patch(path: string, body: object, callback?: Callback): Promise; patch(path: string, callback?: Callback): Promise; del(path: string, options: RestApiOptions, callback?: Callback): Promise; del(path: string, callback?: Callback): Promise; delete(path: string, options: RestApiOptions, callback?: Callback): Promise; delete(path: string, callback?: Callback): Promise; }