/** Lazy localhost HTTP server: static artifact serving, index page, SSE live reload. */ /** Delivers a composed feedback message to the live session. false/throw → 503. */ export type FeedbackSender = (markdown: string) => boolean; /** Register (or clear) the feedback sender. Called by the extension per session. */ export declare function setFeedbackSender(fn: FeedbackSender | null): void; /** URL for a given slug (or index). Starts the server if needed. */ export declare function artifactUrl(slug?: string): Promise; /** Push a reload event for a slug to all connected SSE clients. No-op if server isn't running. */ export declare function notifyReload(slug: string): void; /** Refresh review records without reloading the document or losing a draft. */ export declare function notifyAnnotations(slug: string): void; /** Whether the server is currently running (used by `list` to decide whether to include URLs). */ export declare function isRunning(): boolean; /** Current port if the server is running, else null. Does NOT start the server. */ export declare function runningPort(): number | null; /** Start the server if not already running. Returns the port. */ export declare function ensureServer(): Promise; /** Stop the server (used on session shutdown). */ export declare function stopServer(): void;