import type { Server } from "node:http"; /** Sidecar comments file: uxloom.project.json → uxloom.project.comments.json */ export declare function commentsPathFor(projectPath: string): string; interface EditOutcome { status: number; payload: unknown; } /** * Validate one edit op strictly, apply it to the project file, and * re-validate the whole project with parseProject BEFORE writing — on any * failure nothing is written. Returns the HTTP outcome; the actual viewer * refresh rides on the file watcher, not on this response. */ export declare function applyEditOp(projectPath: string, raw: string): EditOutcome; /** * Create, wire up, and start the preview server (pass port 0 for an * ephemeral port). Returns the http server; closing it also stops the * file watcher. runPreview() wraps this with CLI ergonomics. */ export declare function createPreviewServer(projectPath: string, port: number): Server; export declare function runPreview(fileArg?: string): void; export {};