/// import { RequestInfo, RequestInit } from 'node-fetch'; import { URL } from 'url'; import { Response, NextFunction } from 'express'; import { BaseHttpConnector, EventConfiguration } from 'reshuffle-base-connector'; export interface HttpConnectorConfigOptions { authKey?: string; authScript?: string; } export interface HttpConnectorEventOptions { method: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'; path: string; } export default class HttpConnector extends BaseHttpConnector { on(options: HttpConnectorEventOptions, handler: any, eventId?: string): EventConfiguration; handle(req: any, res: Response, next: NextFunction): Promise; onStop(): void; fetch(url: RequestInfo, options?: RequestInit): Promise; fetchWithRetries(url: string, options?: RequestInit, retry?: Record): Promise; fetchWithTimeout(url: string, options: RequestInit, ms: number): Promise; formatURL(components: Record): string; parseURL(url: string): URL; }