UNPKG

correios-webservice

Version:
17 lines (16 loc) 445 B
import { Auth } from "./auth"; interface HttpConfig { baseURL: string; prefix?: string; apiVersion: string; } declare class Http { private auth; private _http; private apiVersion; private baseUrl; constructor(auth: Auth, config: HttpConfig); get<T = any, R = any>(endpoint: string, params?: T, retry?: boolean, apiVersion?: string): Promise<R>; protected authenticate(): Promise<void>; } export { Http };