UNPKG

@hubspot/api-client

Version:

NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files

18 lines (17 loc) 715 B
import { RequestContext, HttpMethod } from "./http/http"; export interface BaseServerConfiguration { makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext; } export declare class ServerConfiguration<T extends { [key: string]: string; }> implements BaseServerConfiguration { private url; private variableConfiguration; constructor(url: string, variableConfiguration: T); setVariables(variableConfiguration: Partial<T>): void; getConfiguration(): T; private getUrl; makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext; } export declare const server1: ServerConfiguration<{}>; export declare const servers: ServerConfiguration<{}>[];