/// import { IncomingMessage, Agent } from 'http'; import { http, https } from "follow-redirects"; import { UrlWithStringQuery } from "url"; export declare type FstArg = T extends (arg1: infer U, ...args: any[]) => any ? U : any; export declare type SndArg = T extends (arg1: any, arg2: infer U, ...args: any[]) => any ? U : any; export declare type HttpsOpts = FstArg; export declare type HttpOpts = FstArg; export declare function fileURLToPath(x: string): string; export declare function sleep(ms: number): Promise; export declare function ensurePathExists(targetPath: string): void; export declare function getPipePath(pipeName: string): string; export declare function checkIfFileExists(filePath: string): boolean; export declare function getTimestampString(): string; export declare function isWindowsOS(): boolean; export declare function getCurrentSelection(mode: string): Promise; export declare function getAgent(endpoint: UrlWithStringQuery): Agent; export declare function httpsGet(url: string, cb: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void, res: IncomingMessage) => void): Promise; export declare function httpsGetJson(url: string): Promise;