import { CodeBuddyAgent } from '../../agent/codebuddy-agent.js';
/**
 * HTTP Server for Web Interface
 *
 * A simple HTTP server that provides a web interface for Code Buddy.
 * Uses Server-Sent Events (SSE) for real-time streaming.
 */
export interface HttpServerOptions {
    port?: number;
    host?: string;
    agent: CodeBuddyAgent;
}
export declare class HttpServer {
    private static readonly STREAM_TIMEOUT_MS;
    private static readonly MAX_STREAM_ITERATIONS;
    private server;
    private agent;
    private port;
    private host;
    private chatHistory;
    constructor(options: HttpServerOptions);
    /**
     * Start the HTTP server
     */
    start(): Promise<string>;
    /**
     * Stop the server
     */
    stop(): void;
    /**
     * Handle HTTP requests
     */
    private handleRequest;
    /**
     * Serve the main HTML page
     */
    private serveHTML;
    /**
     * Handle chat message (non-streaming)
     */
    private handleChat;
    /**
     * Handle streaming chat message
     */
    private handleStreamChat;
    /**
     * Handle history request
     */
    private handleHistory;
    /**
     * Handle model info/change
     */
    private handleModel;
    /**
     * Read request body
     */
    private readBody;
    /**
     * Generate the HTML page
     */
    private generateHTML;
}
