/**
 * Strips env vars inherited from an outer Claude Code / Claude Agent SDK
 * session so the wizard's own SDK subprocess starts clean.
 *
 * When `npx @amplitude/wizard` runs inside a Claude Code terminal, Node
 * inherits the outer session's env: `CLAUDECODE=1`, `CLAUDE_CODE_ENTRYPOINT`,
 * `CLAUDE_CODE_OAUTH_TOKEN`, etc. When we then call `@anthropic-ai/claude-agent-sdk`
 * to drive the setup agent, the inner SDK sees those signals and routes
 * auth/headers as if it were still a child of the outer session — which
 * 400s at our LLM gateway.
 *
 * Removing these vars before the inner SDK boots makes it behave like a
 * fresh top-level run.
 *
 * This is destructive (mutates `process.env`), intentional, and idempotent.
 */
export interface SanitizeResult {
    cleared: string[];
}
/**
 * Remove inherited Claude Code / Claude Agent SDK env vars from
 * `process.env` (or the provided object, for tests).
 *
 * Returns the list of keys that were actually present and removed.
 * Pure w.r.t. vars that weren't set — no-op for them.
 *
 * Does NOT touch:
 *   - `ANTHROPIC_API_KEY` — user-intent, handled by `initializeAgent`
 *   - `ANTHROPIC_BASE_URL`, `ANTHROPIC_AUTH_TOKEN` — managed by
 *     `initializeAgent` (set on gateway path, cleared on non-gateway paths)
 */
export declare function sanitizeNestedClaudeEnv(env?: NodeJS.ProcessEnv): SanitizeResult;
