import { TotoControllerConfig } from "../TotoAPIController"; export declare class TotoAPI { protected apiName: string; protected authToken: string; protected config: TotoControllerConfig; constructor(apiName: string, config: TotoControllerConfig, authToken?: string); protected get(request: TotoAPIRequest, ResponseClass: TotoAPIResponseConstructor): Promise; protected post(request: TotoAPIRequest, ResponseClass: TotoAPIResponseConstructor): Promise; protected put(request: TotoAPIRequest, ResponseClass: TotoAPIResponseConstructor): Promise; protected delete(request: TotoAPIRequest, ResponseClass: TotoAPIResponseConstructor): Promise; /** * Calls the specified endpoint * * @param request the request to send * @returns the response in JSON */ private call; } export declare class TotoAPIRequest { path: string; cid: string; body?: any; constructor(path: string, body?: any, cid?: string); } export interface TotoAPIResponseConstructor { fromParsedHTTPResponseBody(body: any): T; }