import { URL } from 'url'; import { RequestOptions } from 'http'; import { SearchParams, Authorization, HttpMethod } from '../..'; /** * @ignore */ export declare class Parser { private baseUrl; constructor(baseUrl: string); searchParamsToString(params: SearchParams): string; formUrl({ subUrl, params, auth }: { subUrl: string; params?: SearchParams; auth?: Authorization; }): URL; /** * Content type defaults to **application/json** */ formRequestOptions(url: URL, httpMethod: keyof typeof HttpMethod, { contentType, accessToken, accept }: { contentType?: string; accessToken?: string; accept?: string; }): RequestOptions; generateBoundary(): string; }