import type { Context } from '../context.js';
import type { MiddlewareHostingOptions } from '../runtime/hosting/types.js';
import type { StartupProgress } from '../runtime/terminal/progress.js';
import type { DevProxyTransport } from '../vite/dev-proxy.js';
export interface CreateServerOptions {
    /** CLI-only proxy transport; SDK retains existing listener ownership. */
    devProxy?: DevProxyTransport;
    /** Client-facing Vite port; zero selects an ephemeral port. */
    port?: number;
    /** Opens the book in the browser after listen. */
    open?: boolean;
    /** Client-facing Vite binding, independent from an MCP listener. */
    host?: string | boolean;
    /** SDK listeners share middleware lifecycle without Vite-owned process handlers. */
    middleware?: MiddlewareHostingOptions;
    /** Internal observer of real startup work; absent is inert. */
    progress?: StartupProgress;
    /**
     * One-shot fresh generation: the client server re-optimizes its dependencies
     * instead of reusing the cache it owns, and the catalog cache is not restored.
     */
    fresh?: boolean;
}
/**
 * Creates the two Vite dev servers the dev mode runs on: one dedicated to story
 * collection (`collecting: true`) and the client-facing one.
 *
 * They are created sequentially on purpose, so each gets a freshly evaluated
 * `vite.config.js` — creating the collecting one second breaks HMR in Nuxt.
 */
export declare function createViteServers(ctx: Context, options: CreateServerOptions): Promise<{
    nodeServer: import("vite").ViteDevServer;
    server: import("vite").ViteDevServer;
    viteConfigFile: string;
}>;
//# sourceMappingURL=vite-servers.d.ts.map