UNPKG

@cutls/megalodon

Version:

Mastodon API client for node.js and browser

14 lines (13 loc) 451 B
import { HttpsProxyAgent } from 'https-proxy-agent'; import { SocksProxyAgent } from 'socks-proxy-agent'; export type ProxyConfig = { host: string; port: number; auth?: { username: string; password: string; }; protocol: 'http' | 'https' | 'socks4' | 'socks4a' | 'socks5' | 'socks5h' | 'socks'; }; declare const proxyAgent: (proxyConfig: ProxyConfig) => HttpsProxyAgent | SocksProxyAgent; export default proxyAgent;