/** * File Server * * Lightweight HTTP server that serves a project directory to headless Chrome. * Optionally injects scripts into index.html on-the-fly (e.g. runtime, bridge). * Framework-agnostic — the caller decides what scripts to inject. */ export interface FileServerOptions { projectDir: string; compiledDir?: string; port?: number; /** Scripts injected into of index.html. Default: none. */ headScripts?: string[]; /** Scripts injected before of index.html. Default: none. */ bodyScripts?: string[]; /** Strip embedded runtime scripts from HTML before injection. Default: true. */ stripEmbeddedRuntime?: boolean; hostname?: string; } export interface FileServerHandle { url: string; port: number; close: () => void; } export declare function createFileServer(options: FileServerOptions): Promise;