piclist
Version:
Modified PicGo core, A tool for picture uploading
9 lines (8 loc) • 406 B
TypeScript
import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent';
import { IImgInfo } from '../../../types';
export declare function extractInfo(info: IImgInfo): Promise<{
body?: Buffer;
contentType?: string;
contentEncoding?: string;
}>;
export declare function getProxyAgent(proxy: string | undefined, sslEnabled: boolean, rejectUnauthorized: boolean): HttpProxyAgent | HttpsProxyAgent | undefined;