UNPKG

@0xtld/tair-node

Version:

A Node.js package for Tair functionality with configuration, core, and helper modules.

46 lines 1.41 kB
import { UrbanProxyElement } from '../types'; import { HttpsProxyAgent } from 'https-proxy-agent'; declare class UrbanProxyConfig { static clientAppName: string; static headers: { accept: string; 'accept-language': string; authorization: string; 'cache-control': string; 'content-type': string; origin: string; pragma: string; priority: string; 'sec-fetch-dest': string; 'sec-fetch-mode': string; 'sec-fetch-site': string; 'sec-fetch-storage-access': string; 'user-agent': string; }; static urls: { accessToken: string; getProxy: string; getProxyList: string; }; } declare class UrbanProxy { private proxyList; private proxy; private accessToken; private session; constructor(); private getAccessToken; private handleBeforeRequest; private isExpired; private handleAfterResponse; private reset; private refreshSession; private authProxy; getProxy(proxy?: UrbanProxyElement | null): Promise<UrbanProxyElement>; getProxyList(): Promise<UrbanProxyElement[]>; getHttpsAgent(proxy: UrbanProxyElement): HttpsProxyAgent<string>; getIp(proxy: UrbanProxyElement): Promise<string>; } export { UrbanProxy, UrbanProxyElement, UrbanProxyConfig }; export default UrbanProxy; //# sourceMappingURL=urban-proxy.d.ts.map