import { type IncomingMessage, type ServerResponse } from 'node:http'; export type StaticServer = { port: number; close: () => Promise; }; export type StaticRoute = (req: IncomingMessage, res: ServerResponse) => boolean; export type StaticServerOptions = { /** Listen here instead of an OS-assigned port. `helix dev` prints a stable URL; everything else takes 0. */ port?: number; route?: StaticRoute; }; export declare function startStaticServer(root: string, fallbackMounts?: Record, mountPrefix?: string, options?: StaticServerOptions): Promise;