2018-01-07 04:13:11 +01:00
|
|
|
declare function escape(s: string): string;
|
|
|
|
declare function unescape(s: string): string;
|
2019-01-22 05:38:16 +01:00
|
|
|
declare module 'duo_web_sdk';
|
2019-06-24 17:07:26 +02:00
|
|
|
|
|
|
|
// From: https://github.com/TooTallNate/node-https-proxy-agent/issues/27
|
|
|
|
declare module 'https-proxy-agent' {
|
|
|
|
import * as https from 'https'
|
|
|
|
|
|
|
|
namespace HttpsProxyAgent {
|
|
|
|
interface HttpsProxyAgentOptions {
|
|
|
|
host: string
|
|
|
|
port: number
|
|
|
|
secureProxy?: boolean
|
|
|
|
headers?: {
|
|
|
|
[key: string]: string
|
|
|
|
}
|
|
|
|
[key: string]: any
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
|
|
|
|
class HttpsProxyAgent extends https.Agent {
|
|
|
|
constructor(opts: string)
|
|
|
|
constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions)
|
|
|
|
}
|
|
|
|
|
|
|
|
export = HttpsProxyAgent
|
|
|
|
}
|