import { type ModelIntent } from '../agent-config/index.js'; import { type Config } from './schema.js'; export interface ResolvedModelIntent { intent: ModelIntent; model: string; fallbacks: string[]; } export interface ResolvedModelRoute { primary: string; fallbacks: string[]; } export type ModelExecutionRole = 'foreground' | 'work' | 'review' | 'background' | 'understanding' | 'browser'; export declare function resolveEffectiveModelIntents(_config: Config | undefined, agentId: string): Map; export declare function resolveModelIntentRef(config: Config | undefined, agentId: string, intent: ModelIntent): string | undefined; /** * Unified 3-tier + specialist role routing contract: * - `foreground`: `@fast` -> `chat` (low-latency interactive turns & fast signal triage) * - `work`: `chat` with configured fallbacks (durable worker execution) * - `review`: `@review` -> `background` -> `chat` (Tier-1 criterion & claim auditing) * - `background`: `background` -> `@fast` -> `chat` (ambient scouting & digests) * - `understanding`: `@understanding` -> `background` -> `chat` (memory & profile synthesis) * - `browser`: `@browser` -> `@fast` -> `chat` (isolated browser sub-agent loop) */ export declare function resolveModelRouteForRole(_config: Config | undefined, agentId: string | undefined, role: ModelExecutionRole): ResolvedModelRoute; export declare function resolveModelRouteForSelector(config: Config | undefined, agentId: string, selector: string): ResolvedModelRoute; export declare function resolveModelSelector(config: Config, agentId: string, selector: string): string;