import type { EffectiveAgentConfig } from '../../agent-config/index.js'; import type { ModelManager } from './manager.js'; export declare function resolveTurnModelRefs(modelManager: ModelManager, conversationId: string, effective?: EffectiveAgentConfig, checkCredentials?: boolean): { configured: string; selected: string; refs: string[]; useSessionModel: boolean; }; export declare class TaskModelPreflightError extends Error { readonly code: 'provider_setup_required' | 'provider_auth_invalid' | 'task_model_unavailable'; readonly modelRef: string; readonly provider?: string | undefined; constructor(code: 'provider_setup_required' | 'provider_auth_invalid' | 'task_model_unavailable', modelRef: string, provider?: string | undefined); } /** Resolve the configured background candidates without sending a model request. */ export declare function resolveAvailableTaskModels(refs: string[], selected: string): Promise<{ ref: string; model: import("@earendil-works/pi-ai/dist/types.js").Model; }[]>;