/** * Daemon HTTP Server * * Localhost-only HTTP server with bearer token auth. * Routes POST requests to /api/{action} and dispatches to handlers. * Manages idle timer for auto-shutdown. */ export interface StartServerOptions { port: number; token: string; url: string; /** * Absolute path to the project directory. Used as the confinement boundary * for any browser-supplied path passed through the daemon API. Defaults to * `process.cwd()` for back-compat with existing callers. */ projectRoot?: string; onShutdown: () => void; /** * Synchronous hook fired inside the listen() callback BEFORE the start * promise resolves. Use this to write the daemon state file so it is * durable before any external client can find the listening port. */ onListening?: () => void; } /** * Start the daemon HTTP server. * Binds to 127.0.0.1 (localhost only) on the specified port. */ export declare function startServer(options: StartServerOptions): Promise; /** * Shut down the daemon: close browser, close HTTP server, call shutdown callback. */ export declare function shutdown(): Promise; //# sourceMappingURL=server.d.ts.map