UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

25 lines (24 loc) 921 B
import { HttpClient, DownloadProgressCallback } from '../type'; import { Fs } from '../../fs/type'; export declare class NodeHttpClient implements HttpClient { private fs; private timeout; private headers; private defaultTimeout; private defaultHeaders; constructor(fs: Fs, timeout?: number, headers?: Record<string, string>); download(downloadUrl: string, targetPath: string, options?: { onProgress?: DownloadProgressCallback; headers?: Record<string, string>; timeout?: number; }): Promise<void>; get(requestUrl: string, options?: { headers?: Record<string, string>; timeout?: number; }): Promise<{ data: ArrayBuffer; headers: Record<string, string>; status: number; }>; } export declare function newHttpClient(fs: Fs, timeout?: number, headers?: Record<string, string>, customClient?: HttpClient): HttpClient;