/** * Environment Variable Extractor * * Detects env vars used in a project from two complementary sources: * 1. Declaration files — .env.example, .env.local, .env (with optional comments) * 2. Source code — process.env.X (JS/TS), os.environ["X"] (Python), * os.Getenv("X") (Go), ENV["X"] (Ruby) * * Variables found in declaration files are marked hasDefault=true when the * declaration line has a non-empty value. Variables found only in source code * are marked required=true (no known default). */ export interface EnvVar { /** Environment variable name, e.g. DATABASE_URL */ name: string; /** Relative path(s) where the variable was found */ files: string[]; /** True when declared in .env.example with a non-empty value */ hasDefault: boolean; /** True when used in source code without a fallback (process.env.X without ?? or ||) */ required: boolean; /** Inline comment from .env.example, if present */ description?: string; } /** * Extract all environment variables referenced or declared in the project. */ export declare function extractEnvVars(filePaths: string[], rootDir: string): Promise; /** * Return a compact summary string for LLM prompts. */ export declare function summarizeEnvVars(vars: EnvVar[]): string; //# sourceMappingURL=env-extractor.d.ts.map