import { discoverCliSystemAiConfigs } from "./system-ai.js"; import type { SessionProvider, SessionSnapshot, SystemAiConfig, WandConfig } from "./types.js"; export interface SessionAiContext { provider: SessionProvider; model?: string; thinkingEffort: SessionSnapshot["thinkingEffort"]; inheritEnv?: boolean; systemAi?: SystemAiConfig; } /** * Resolve the provider from every representation used by current and legacy * sessions. Older persisted sessions may not have the top-level provider, but * still identify Codex through structuredState, runner, or command. */ export declare function resolveSessionProvider(snapshot: Pick): SessionProvider; /** Build the provider-specific settings used by session-adjacent AI actions. */ export declare function resolveSessionAiContext(snapshot: Pick, config: Pick): SessionAiContext; /** Build the source order for Wand-owned AI features such as titles. */ export declare function resolveSystemAiContext(snapshot: Parameters[0], config: Parameters[1] & Pick): SessionAiContext; /** Build the AI context for quick-commit actions from their global preferences. */ export declare function resolveCommitAiContext(snapshot: Pick, config: Pick, discoverApis?: typeof discoverCliSystemAiConfigs): SessionAiContext;