/// import { Readable } from "stream"; export interface IURLHandler { /** * Implement the handle method to fetch the contents of the URL * and return an HTML representation * @param {URL} url URL that needs to be handled * @param callback and return an in this callback */ stream(url: URL, callback: (url: URL, htmlstream?: Readable, err?: Error) => void): void; cancel(host: string): void; } export default class HTTPURLHandler implements IURLHandler { private hittpoptions; constructor(); stream(url: URL, callback: (url: URL, htmlstream?: Readable, err?: Error) => void): void; cancel(host: string): void; }