UNPKG

mindee

Version:

Mindee Client Library for Node.js

22 lines (21 loc) 627 B
import { ApiRequest } from "./apiRequest"; import { StringDict } from "./stringDict"; /** Base wrapper for API requests. * * @category API Response */ export declare abstract class ApiResponse { /** Initial request sent to the API. */ apiRequest: ApiRequest; /** Raw text representation of the API's response. */ private readonly rawHttp; /** * @param serverResponse JSON response from the server. */ constructor(serverResponse: StringDict); /** * Raw HTTP request sent from server, as a JSON-like structure * @returns The HTTP request */ getRawHttp(): StringDict; }