import { Command } from "commander"; import express from "express"; import { type SelfSignedCertificate } from "./mkcert.js"; interface CommonCLIOptions { port: string; websocketPort: string; hostname: string; timeout: string; https: boolean; httpsCert?: string; httpsKey?: string; httpsCa?: string; } export type CLIOptions = CommonCLIOptions & TOptions; export declare const createCommand: (name: string, description: string) => Command; export declare const parseCLIOptions: >(cli: Command) => CLIOptions; export declare const createExpressServer: () => express.Express; export declare const loadCertificateFiles: (certificate: SelfSignedCertificate) => Promise<{ cert: Buffer; key: Buffer; ca: Buffer | undefined; }>; export declare const getSelfSignedCertificate: ({ hostname, https, httpsCa, httpsCert, httpsKey, }: Pick) => Promise; export declare const getServerStartedOnString: (protocol: "http" | "https", hostname: string, port: number) => string; export declare const startServers: (app: express.Express, cliOptions: TCLIOptions) => Promise; export declare const getServerEntryHandler: (distDir: string, expectedRelativePaths: string[], exportName?: string) => Promise; export type { SelfSignedCertificate } from "./mkcert.js"; export { default as express } from "express"; //# sourceMappingURL=cli-utils.d.ts.map