import { type McpConfigTarget } from "./utils/mcp-configs.js";
interface DevEnvironmentOptions {
    port: string;
    mcpPort?: string;
    portMcp?: string;
    serverCommand: string;
    profileDir: string;
    logFile: string;
    debug?: boolean;
    serversOnly?: boolean;
    commandName: string;
    browser?: string;
    defaultPort?: string;
    framework?: "nextjs" | "svelte" | "other";
    userSetPort?: boolean;
    userSetMcpPort?: boolean;
    tail?: boolean;
    tui?: boolean;
    dateTimeFormat?: "local" | "utc";
    pluginReactScan?: boolean;
    chromeDevtoolsMcp?: boolean;
    disabledMcpConfigs?: McpConfigTarget[];
    debugPort?: number;
    headless?: boolean;
}
export declare function findAvailablePort(startPort: number): Promise<string>;
export declare function createPersistentLogFile(): string;
export declare class DevEnvironment {
    private serverProcess;
    private mcpServerProcess;
    private cdpMonitor;
    private screencastManager;
    private logger;
    private outputProcessor;
    private options;
    private screenshotDir;
    private mcpPublicDir;
    private pidFile;
    private lockFile;
    private spinner;
    private version;
    private isShuttingDown;
    private serverStartTime;
    private healthCheckTimer;
    private tui;
    private portChangeMessage;
    private firstSigintTime;
    private chromeDevtoolsSupported;
    private portDetected;
    private disabledMcpConfigSet;
    constructor(options: DevEnvironmentOptions);
    private checkPortsAvailable;
    private killMcpServer;
    private checkProcessHealth;
    private startHealthCheck;
    private stopHealthCheck;
    private configureMcpConfigs;
    start(): Promise<void>;
    private startServer;
    private acquireLock;
    private releaseLock;
    private detectPortChange;
    private debugLog;
    private showRecentLogs;
    private startMcpServer;
    private waitForServer;
    private detectPackageManagerInDir;
    private installMcpServerDeps;
    private waitForMcpServer;
    private discoverMcpsAfterServerStart;
    private discoverMcpsAfterBrowserStart;
    private initializeD3KLog;
    private logD3K;
    private shareCdpUrlWithChromeDevtools;
    private parseMcpDiscoveryResult;
    private startCDPMonitoringSync;
    private startCDPMonitoring;
    private gracefulShutdown;
    private setupCleanupHandlers;
    private handleShutdown;
}
export declare function startDevEnvironment(options: DevEnvironmentOptions): Promise<void>;
export {};
//# sourceMappingURL=dev-environment.d.ts.map