/**
 * Vite Dev Server (Primary)
 *
 * Starts Vite as the primary dev server on the user-facing port.
 * Serves frontend assets natively and proxies API/WebSocket requests
 * to the Bun backend server.
 */
import type { ViteDevServer } from 'vite';
import type { Logger } from '../../../types';
export interface ViteAssetServerResult {
    server: ViteDevServer;
    port: number;
}
export interface StartViteAssetServerOptions {
    rootDir: string;
    logger: Logger;
    workbenchPath?: string;
    port?: number;
    backendPort: number;
    /** User-defined route mount paths from createApp({ router }) */
    routePaths?: string[];
    /** Live tunnel hostname to add to Vite's allowedHosts */
    liveHostname?: string;
}
/**
 * Find an available port starting from the preferred port.
 * Tries incrementing ports up to maxAttempts times.
 *
 * Exported so the dev command can pre-resolve the Vite port before
 * starting the Bun backend (env vars like AGENTUITY_BASE_URL need
 * the real port before Bun initializes CORS).
 */
export declare function findAvailablePort(preferredPort: number, host?: string, maxAttempts?: number): Promise<number>;
/**
 * Start Vite asset server on a dynamically-chosen port
 * Returns the server instance and the actual port number
 */
export declare function startViteAssetServer(options: StartViteAssetServerOptions): Promise<ViteAssetServerResult>;
//# sourceMappingURL=vite-asset-server.d.ts.map