/** * Shared agent environment resolution * * Extracts provider, model, and GitHub remote detection into a reusable * function that **throws** on error (no process.exit). Used by both the * headless agent command and the TUI AgentScreen. */ import type { LanguageModel } from 'ai'; import type { AIProvider } from '../ai/providers.js'; import type { ReviewMode } from './types.js'; export interface ResolvedAgentEnv { provider: AIProvider; model: LanguageModel; modelId: string | undefined; owner: string; repo: string; projectRoot: string; reviewMode?: ReviewMode; } /** * Resolve provider, model, and GitHub remote for agent execution. * Throws descriptive errors instead of calling process.exit. */ export declare function resolveAgentEnv(projectRoot: string, options?: { model?: string; }): Promise;