import { type McpConfigTarget } from "./utils/mcp-configs.js";
/**
 * Patterns for identifying orphaned MCP-related processes to clean up on startup.
 *
 * IMPORTANT: This list must NOT include ".d3k/chrome-profiles" or any pattern
 * that would match Chrome instances from OTHER running d3k instances.
 * Each d3k instance handles its own profile cleanup via killExistingChromeWithProfile().
 *
 * @see cleanupOrphanedPlaywrightProcesses
 */
export declare const ORPHANED_PROCESS_CLEANUP_PATTERNS: readonly ["ms-playwright/mcp-chrome", "mcp-server-playwright"];
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;
    withAgent?: string;
}
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 checkForCommonIssues;
    private startMcpServer;
    private waitForServer;
    private detectPackageManagerInDir;
    private installMcpServerDeps;
    private waitForMcpServer;
    private initializeD3KLog;
    private logD3K;
    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