/** * Auth profile -> CLI subprocess env var injection. * * Resolves per-agent auth profile references to environment variables * suitable for injecting into CLI subprocess environments. */ import type { RemoteClawConfig } from "../config/config.js"; import type { AuthProfileStore } from "./types.js"; /** * Map a provider ID to the primary environment variable name used by CLI agents. * * Returns `undefined` for providers with no known env var mapping. */ export declare function resolveProviderEnvVarName(provider: string): string | undefined; /** * Return the number of auth profiles configured for an agent. * * - `auth: false` or `undefined` -> 0 * - `auth: "profile-id"` -> 1 * - `auth: ["id1", "id2"]` -> N */ export declare function resolveAuthProfileCount(cfg: RemoteClawConfig, agentId: string): number; /** * Resolve per-agent auth profile(s) to env vars for CLI subprocess injection. * * - `auth: false` -> no injection (returns `undefined`) * - `auth: "profile-id"` -> resolve single profile, inject as env var * - `auth: ["id1", "id2"]` -> persistent cooldown-aware round-robin, inject selected profile * - `auth: undefined` -> no injection (returns `undefined`) * * Missing or invalid profiles log a warning and return `undefined` * (fall-through to next credential precedence level). */ export declare function resolveAuthEnv(params: { cfg: RemoteClawConfig; agentId: string; store?: AuthProfileStore; }): Promise | undefined>;