//#region src/preview-server/preview-server.d.ts
interface OutputConfig {
  serveHtml: boolean;
  servePdf: boolean;
  htmlPath?: string;
  pdfPath?: string;
}
/**
 * Manages the HTTP server, SSE connections, and content serving for live preview.
 */
declare class PreviewServer {
  private readonly port;
  private readonly config;
  private readonly log;
  private pdfContent;
  private sseClients;
  private httpServer;
  constructor(port: number, config: OutputConfig, log: (msg: string) => void);
  start(): Promise<void>;
  loadContent(): Promise<void>;
  stop(): Promise<void>;
  private createExpressApp;
  private handleRoot;
  private handleHtml;
  private handleHtmlRaw;
  private handlePdf;
  private handlePdfRaw;
  private handleSseConnection;
  private createHtmlViewerHtml;
  private createPdfViewerHtml;
  private notifyClients;
}
//#endregion
export { OutputConfig, PreviewServer };
//# sourceMappingURL=preview-server.d.ts.map