/// 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>; /** * Close the given server instance asynchronously. */ export declare const closeServer: (server: Server) => Promise;