import type { Server as HTTPOnlyServer, IncomingMessage as HTTPRequest, ServerResponse as HTTPResponse } from 'http'; import type { Server as HTTPSServer } from 'https'; import type { FilePath, HTTPSOptions } from '@atlaspack/types-internal'; import type { FileSystem } from '@atlaspack/types-internal'; type CreateHTTPServerOpts = { listener?: (arg1: HTTPRequest, arg2: HTTPResponse) => void; host?: string; } & ({ https: HTTPSOptions | boolean | null | undefined; inputFS: FileSystem; outputFS: FileSystem; cacheDir: FilePath; } | Record); export type HTTPServer = HTTPOnlyServer | HTTPSServer; export declare function createHTTPServer(options: CreateHTTPServerOpts): Promise<{ stop: () => Promise; server: HTTPServer; }>; export {};