/** * Walk upward from startDir looking for a pnpm-workspace.yaml; return the * nearest directory that has one. Falls back to startDir. */ export declare function findRepoRoot(startDir: string): string; /** * Parse a KEY=VALUE .env file into a Map without touching process.env. * Used when we need to load per-workspace secrets into a session- * scoped bag instead of mutating globals. Returns an empty Map if the * file is missing or unreadable. */ export declare function parseDotEnv(p: string): Map; /** * Minimal KEY=VALUE parser. Dedicated dotenv would be overkill for a * one-time read. * * Overwrites empty/undefined parent values but preserves non-empty ones, * so a user's shell export still wins over the on-disk .env. */ export declare function loadDotEnv(p: string): void; /** * Find the .env to load and read it into process.env. Order matches * the config resolver in `config-path.ts`: * 1. Active workspace's .env (`~/.cortex/workspaces//.env`). * 2. Nearest .env walking up from cwd (the repo checkout case). * * Returning after the first hit means shell exports still win — the * loader never overwrites an already-set env var. */ export declare function autoLoadDotEnv(): void; //# sourceMappingURL=dotenv.d.ts.map