UNPKG

portone-api-v2

Version:
16 lines (15 loc) 554 B
import { PortOneClient } from './client'; import type { AxiosRequestConfig } from 'axios'; export declare class PortOneRequest { private readonly portOne; private axios; constructor(portOne: PortOneClient); protected request<T>(config: RequestConfig): Promise<import("axios").AxiosResponse<T, any>>; private setConfig; protected setQuery(url: string, query: Record<string, any>): string; } interface RequestConfig extends AxiosRequestConfig { method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; url: string; } export {};