massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / request-light / lib / node / main.d.ts
diff --git a/.config/coc/extensions/node_modules/coc-json/node_modules/request-light/lib/node/main.d.ts b/.config/coc/extensions/node_modules/coc-json/node_modules/request-light/lib/node/main.d.ts
new file mode 100644 (file)
index 0000000..8b577d9
--- /dev/null
@@ -0,0 +1,24 @@
+export interface XHROptions {
+    type?: string;
+    url?: string;
+    user?: string;
+    password?: string;
+    headers?: any;
+    timeout?: number;
+    data?: any;
+    agent?: any;
+    strictSSL?: boolean;
+    responseType?: string;
+    followRedirects?: number;
+}
+export interface XHRResponse {
+    responseText: string;
+    status: number;
+    headers: any;
+}
+export interface XHRRequest {
+    (options: XHROptions): Promise<XHRResponse>;
+}
+export declare function configure(_proxyUrl: string, _strictSSL: boolean): void;
+export declare function xhr(options: XHROptions): Promise<XHRResponse>;
+export declare function getErrorStatusDescription(status: number): string;