import type { EcoPagesAppConfig } from '../../../types/internal-types.js'; export interface StaticPreviewHost { start(options: StaticPreviewHostStartOptions): Promise; stop(force?: boolean): Promise; } export interface StaticPreviewHostStartOptions { appConfig: EcoPagesAppConfig; hostname: string; port: number; /** * When true, bind to the next available port if the preferred one is busy. * Should remain false when the port was explicitly configured. */ allowPortFallback?: boolean; }