UNPKG

mindee

Version:

Mindee Client Library for Node.js

18 lines (17 loc) 579 B
import { StringDict } from "../../parsing/stringDict.js"; export declare abstract class BaseResponse { /** * Raw text representation of the API's response. */ private readonly rawHttp; /** * @param serverResponse JSON response from the server. */ protected constructor(serverResponse: StringDict); /** * Raw HTTP request sent from server, as a JSON-like structure * @returns The HTTP request */ getRawHttp(): StringDict; } export type ResponseConstructor<T extends BaseResponse> = new (serverResponse: StringDict) => T;