UNPKG

md-html-to-pdf

Version:

CLI tool for converting Markdown files or Html files to PDF.

13 lines (12 loc) 560 B
/// <reference types="node" /> import { Server } from "http"; /** * Serve a directory on a random port using a HTTP server and the serve-handler package. * * @returns a promise that resolves with the server instance once the server is ready and listening. */ export declare const serveDirectory: (basedir: string, port: number) => Promise<Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>; /** * Close the given server instance asynchronously. */ export declare const closeServer: (server: Server) => Promise<unknown>;