piclist
Version:
Modified PicGo core, A tool for picture uploading
11 lines (10 loc) • 524 B
TypeScript
/// <reference types="node" />
import { HttpsProxyAgent, HttpProxyAgent } from 'hpagent';
import { IImgInfo } from '../../../types';
export declare function formatPath(info: IImgInfo, format?: string): string;
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;