import type { ScanUsageOptions, ExitResult } from '../config/types.js'; /** * Scans the codebase for environment variable usage and compares it with * the selected environment file (.env or .env.example). * * This function performs the following: * - Scans the codebase for used environment variables * - Strips out usages found in commented code * - Detects missing variables, unused variables, duplicates, and secrets * - Determines which file to compare against based on CLI flags and config * - Optionally auto-fixes missing keys, duplicate keys, and .gitignore entries * - Validates usage patterns for specific frameworks (Next.js, Vite, etc.) * - Outputs results in JSON or console format * - Returns a boolean indicating whether the process should exit with an error * * @param {ScanUsageOptions} opts - Scan configuration options * @returns {Promise} Whether the caller should exit with a non-zero code. */ export declare function scanUsage(opts: ScanUsageOptions): Promise; //# sourceMappingURL=scanUsage.d.ts.map