import https from 'node:https'; export declare function fetchText(url: string | URL, options?: https.RequestOptions): Promise; export declare function readTextFromStream(readable: NodeJS.ReadableStream, encoding?: BufferEncoding): Promise; export declare function isSecureUrl(url: string | URL): boolean; export declare class FetchError extends Error { statusCode: number | undefined; constructor(message?: string, statusCode?: number); } //# sourceMappingURL=http.d.ts.map