/** * ZCode credential and environment handling. * * Vendored from the reference Python implementation so this package stays * self-contained. The ZCode desktop app stores provider credentials in * `~/.zcode/v2/config.json`; GUI-launched processes don't inherit shell env * vars, so we read the config and inject the active provider's settings into * the subprocess environment. */ /** Credentials extracted from the active provider. */ export interface ZcodeCredentials { ZCODE_MODEL?: string; ZCODE_BASE_URL?: string; ANTHROPIC_API_KEY?: string; } /** Read the active provider's credentials from config.json. Best-effort. */ export declare function loadZcodeCredentials(): ZcodeCredentials; /** * Merge process.env with config credentials. * * Explicit non-empty env vars override config (so `ZCODE_MODEL=foo` works as a * temporary override). Empty-string env vars are treated as unset so they * don't clobber the config value. * * Also self-heals a stale `ZCODE_BASE_URL`: if the env value is the endpoint * of a *different* provider in config (a leftover from switching plans in the * App), revert to the enabled provider's URL. User-defined custom endpoints * are respected. */ export declare function mergeEnvWithCreds(creds: ZcodeCredentials): NodeJS.ProcessEnv; //# sourceMappingURL=credentials.d.ts.map