/** * Environment Service * * Manages environment profiles and validates code compatibility * across different runtime environments (production, CI, local, etc.) */ import type { EnvironmentProfile, EnvironmentConfig, EnvironmentCheckResult, AutoDetectionResult } from "../types/environment.js"; /** * Service for managing environment configurations and runtime constraints. * * Tracks environment-specific settings, validates configurations, * and auto-detects runtime environments from project files. */ export declare class EnvironmentService { private projectRoot; private configPath; /** * @param projectRoot - Root directory of the project */ constructor(projectRoot: string); /** * Load environment configuration */ loadConfig(): Promise; /** * Save environment configuration */ saveConfig(config: EnvironmentConfig): Promise; /** * Auto-detect environments from project files */ autoDetect(): Promise; /** * Detect environment from package.json */ private detectFromPackageJson; /** * Detect environment from Dockerfile */ private detectFromDockerfile; /** * Detect environment from GitHub Actions */ private detectFromGitHubActions; /** * Detect from deployment configs (Vercel, Netlify, etc.) */ private detectFromDeploymentConfigs; /** * Check code compatibility with environment profiles */ checkCompatibility(changedFiles: string[]): Promise; /** * Parse version string to number (e.g., "18.x" -> 18) */ private parseVersion; /** * Add or update environment profile */ upsertEnvironment(profile: EnvironmentProfile): Promise; /** * Remove environment profile */ removeEnvironment(name: string): Promise; /** * Get specific environment profile */ getEnvironment(name: string): Promise; /** * List all environments */ listEnvironments(): Promise; } //# sourceMappingURL=environment-service.d.ts.map